schrodinger.application.desmond.packages.energygroup module¶
-
exception
schrodinger.application.desmond.packages.energygroup.
EnergyGroupError
¶ Bases:
Exception
-
class
schrodinger.application.desmond.packages.energygroup.
EnergyGroupBase
¶ Bases:
object
Its subclasses work with
EnergyFacade
to perform energy group calculations.The subclass instance should have the following public attributes: -
key
: immutable and iterable. It is used as the key to retrievecalculation result from cache inEnergyFacade
kwargs
:dict
. It is the keyword arguments forget_energies
.
Its roles include: - store and validate the parameters - retrieve result from the cache in
EnergyFacade
-
getResult
(result)¶ Retrieve and format the result from the cache in
EnergyFacade
-
class
schrodinger.application.desmond.packages.energygroup.
Energy
(_, molecule_number, type, type2)¶ Bases:
schrodinger.application.desmond.packages.energygroup.EnergyGroupBase
Analyzer for energy group calculation with single molecule selection. The pre-defined energy groups are (see COMPONENT_LIST)
- Selected molecule
- All atoms - group 1, 3, 4, 5
- Solute atoms - group 1
- Membrane atoms - group 1
- Solvent atoms - group 1
-
TYPE_MAP
= {'Angle': 'angle', 'Bond': 'stretch', 'Coulomb': 'elec', 'Torsion': 'dihedral', 'Total': 'Total', 'vdW': 'vdw'}¶
-
COMPONENT_LIST
= ['Self', 'Other', 'Solute', 'Membrane', 'Solvent']¶
-
class
schrodinger.application.desmond.packages.energygroup.
InteractionEnergy
(_, asl1, asl2)¶ Bases:
schrodinger.application.desmond.packages.energygroup.EnergyGroupBase
Analyzer for interaction energy group calculation.
-
class
schrodinger.application.desmond.packages.energygroup.
Bulk
(cms_model, type)¶ Bases:
schrodinger.application.desmond.packages.energygroup.EnergyGroupBase
Analyzer for material science energy group calculation
-
MAX_GROUPS
= 870¶
-
OPTIONS
= {'VOLUME', 'COHES_E', 'INTRA_E', 'TOTAL_E', 'SOL_PARAM', 'PRESSURE_TENSOR', 'DENSITY', 'SPECIFIC_HEAT', 'HEAT_VAP'}¶
-
getResult
(result)¶ Retrieve and format the result from the cache in
EnergyFacade
-
getCfgParams
(cfg_file)¶ Parameters: cfg_file – path to the simulation configuration file
-
parseEnergies
(tmp_dir, num_groups)¶ Parse results of material science energy group calculaiton
Return type: dict
-
-
class
schrodinger.application.desmond.packages.energygroup.
SliceParams
(first, interval, last)¶ Bases:
tuple
-
first
¶ Alias for field number 0
-
interval
¶ Alias for field number 1
-
last
¶ Alias for field number 2
-
-
class
schrodinger.application.desmond.packages.energygroup.
EnergyComponent
¶ Bases:
object
Class for storing different energy components
-
add
(term, val)¶
-
elec
¶
-
vdw
¶
-
-
schrodinger.application.desmond.packages.energygroup.
temp_dir
()¶
-
schrodinger.application.desmond.packages.energygroup.
get_energies
(sim_cfg, tr_path, cms_model, slicing, mol_num=None, asls=None, groups=None, max_groups=870, parse=<function _parse_energies>)¶ Calculate energies between groups of atoms specified by ASL selections, list of list of AIDs, or molecule number. Note there should be no overlap between any pair of the atom groups.
Parameters: parse (callable) – parser for the energy-group output data file Return type: (c{list} of c{float}s, c{list} of EnergyComponent
)Returns: simulation times, and various energies for each frame See
EnergyFacade
for other arguments
-
class
schrodinger.application.desmond.packages.energygroup.
EnergyFacade
(sim_cfg, tr_path, cms_model, slicing)¶ Bases:
object
A helper class to manage energy group calculations. Different energy group calculations have different input/output formats. All these details are hidden by using this class and the subclasses of
EnergyGroupBase
.To get full control over the energy group calculation, call
get_energies
directly.-
get
(ene)¶
-