Relax One Region, Keep the Rest Fixed

A common modeling problem is local: one part of a molecule needs to relax, but the surrounding structure should stay where it is. Running an ordinary minimization on the whole structure may move regions you intended to preserve. In SAMSON, you can handle this by freezing the atoms you want to hold fixed, then unfreezing only the part you want to minimize.

This is useful when adjusting a local region in the context of a larger molecular structure. The key is to distinguish selection from freezing: selecting atoms does not, by itself, mean that only those atoms will move during interactive minimization. Frozen atoms remain fixed; the atoms you unfreeze are free to respond during minimization.

A careful freeze–unfreeze workflow

  1. Decide what should stay fixed. Select the whole molecule, or leave the selection empty if you want to freeze the entire document.
  2. Freeze that region. Choose Edit > Freeze. The selected atoms—or the whole document when nothing is selected—are fixed in place.
  3. Choose the region to relax. Select the part of the molecule you want to minimize. Then choose Edit > Unfreeze. This unfreezes only the atoms in the current selection.
  4. Start interactive minimization. Choose Edit > Minimize, or press Z. The interactive minimizer uses the Universal Force Field (UFF). The frozen atoms are not minimized, and their positions stay fixed.
  5. Stop and restore the structure. When you are done, choose Edit > Minimize again to stop. To unfreeze the rest of the system, select the molecule or leave the selection empty, then choose Edit > Unfreeze.

During interactive minimization, SAMSON also lets you use Move editors to move nodes and the Add editor to add atoms or assets. If you use these tools as part of the same editing session, keep track of which atoms are frozen so you know which parts are allowed to move during minimization.

Two selection details that prevent confusion

First, minimizing a selection is not always the same as minimizing only the selected atoms. When minimizing a selection without freezing, SAMSON considers the whole connected component containing that selection. For example, selecting one atom can cause the connected molecule to be considered. Freezing the surrounding atoms is the method described here for restricting movement to a chosen part.

Second, an empty selection has a specific role in the freeze workflow: Edit > Freeze with nothing selected freezes the whole document. The same idea is useful when you want to unfreeze the whole system at the end. Frozen atoms are shown with a dark blue overlay in the viewport, which gives you a visual cue to check before starting.

Interactive minimization preferences in SAMSON
The Minimize preferences let you adjust options for interactive minimization. By default, all molecules in the active document are included.

Before you begin, it is worth checking the Minimize section in Interface > Preferences > Editors > Minimize. By default, the interactive minimizer minimizes all molecules in the active document. If your goal is to minimize a single molecule, the documentation describes turning off Include all atoms in the document and selecting the molecule. That is a separate setting from freezing atoms for a local minimization, so check both the minimizer scope and the frozen-state overlay when the result is not what you expected.

This workflow gives you a practical way to let one region relax while keeping its surroundings fixed. It does not replace choosing an appropriate modeling setup for every scientific question: for simulator-based workflows where you need to choose a force field and state updater, use SAMSON’s modeling and simulation tools instead.

For the complete instructions and related workflows, see the SAMSON minimization documentation.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.

Comments are closed.