xplorSimulation |
index |
simulation based on an XPLOR backend.
constructor:
XplorSimulation(clone=False):
create a new xplor process and associated XplorSimulation object. If
the optional clone argument is True, the atomic coordinates and PSF
information of the XplorSimulation associated with the
simulation.currentSimulation() are mirrored in the new
object. Otherwise, the object will have no atoms or PSF information.
Methods:
This objects contains all of the methods of the simulation.Simulation
class. In addition, it contains the following:
type() - returns the string "XplorSimulation"
potList() - return the potList.PotList of potential terms which are
evaluated when the SCRIpting XPLOR energy term is active.
scriptingIndex() - index into XPLOR renr array corresponding to
SCRIpting term.
wrap() - return the associated xplorWrap.XplorWrap object. This
member is not usually needed.
deleteAtoms(selection,
noSync=False) - delete atoms specified by the given (string)
atom selection. Specify noSync=True for a
performance improvement, but it requires the
caller to call the syncFrom() method before
manipulating any atom information on the C++
side.
addAtom(atomName,residueNum,residueName,
chemicalType="",
segmentName="",
mass=10.,
pos=None,
isPseudo=False) - add a single atom to this XplorSimulation with
the specified atomName, residueNum, residueName,
segmentName and mass. If pos is specified it is
also set. The isPeudo flag specifies whether or
not the atom will be selected with the PSEUdo atom
selection keyword. Do note that currently pseudo
atoms are identified by residue name, so that if
isPseudo=True is specified in this call, all atoms
with the given residueName will be identified as
PSEUDO. The created atom is returned as an
atom.Atom.
data() - return a XplorSimData object (described below)
containing per-XplorSimulation information.
The following method with this name from the underlying
xplorWrap.XplorWrap object.
command(cmd, names)
fastCommand(cmd, names)
shell()
disableOutput()
enableOutpu()
The following routines synchronize simulation values to/from xplor. They
are not usually needed.
initFrom() - initialize quantities from XPLOR
syncFrom() - copy all information from XPLOR to C++ data structures
syncAtomIDFrom()
syncPosFrom()
syncVelFrom()
syncFricFrom()
syncChargeFrom()
syncMassFrom()
syncTo() - copy modified coordinates, etc. variables to xplor
The following static function is also defined:
getXplorSimulation(sim=None) - given a simulation, determine the associated
XplorSimulation. If simulation is None, use
simulation.currentSimulation.
The XplorSimData class
Methods:
residueTypeSystems() - return list of type systems (strings)
residueTypes(system) - given a system (string), return a list of
defined residues types.
residueTypeIsVariant(system,
resType) - given a system and residue type, return
bool describing whether or not the residue
type is a variant.
residueTypeAdd(system,
type,
isVariant=false) - add a residue type of given system,
optionally specifying if it is a variant
residue type.
residueTypesClear() - clear the residue types database.
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
Classes | ||||||||||||||||||||||||||||||||||
|
Functions | ||
|
Data | ||
orig_LD_LIBRARY_PATH = '/home/schwitrs/lib/Linux_x86_64:/home/schwitrs/lib/Linux_x86_64::/usr/local/lib:/usr/local/lib' psfTemplate = '\nstructure\nPSF\n\n 1 !NTITLE\n REMARKS addD... 0 !NGRP\n 0 0 0\nend \n' |