class MM::ParameterSet

Defined in:

mm/param_set.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_charmm(*paths : Path | String) : self #

[View source]

Instance Method Detail

def <<(angle_t : AngleType) : self #

[View source]
def <<(atom : AtomType) : self #

[View source]
def <<(bond_t : BondType) : self #

[View source]
def <<(dihedral_t : DihedralType) : self #

[View source]
def <<(improper_t : ImproperType) : self #

[View source]
def <<(patch : Patch) : self #

[View source]
def <<(residue : ResidueType) : self #

[View source]
def [](angle : Chem::Angle) : AngleType #

Returns the angle parameter type associated with angle. Raises KeyError if the parameter does not exists.

It uses the typenames of the involved atoms as key to fetch the parameter type. Raises ArgumentError if any atom does not have a assigned type (nil).


[View source]
def [](bond : Chem::Bond) : BondType #

Returns the bond parameter type associated with bond. Raises KeyError if the parameter does not exists.

It uses the typenames of the involved atoms as key to fetch the parameter type. Raises ArgumentError if any atom does not have a assigned type (nil).


[View source]
def [](dihedral : Chem::Dihedral) : DihedralType #

Returns the dihedral parameter type associated with dihedral. Raises KeyError if the parameter does not exists.

It uses the typenames of the involved atoms as key to fetch the parameter type. Raises ArgumentError if any atom does not have a assigned type (nil).


[View source]
def [](improper : Chem::Improper) : ImproperType #

Returns the improper parameter type associated with improper. Raises KeyError if the parameter does not exists.

It uses the typenames of the involved atoms as key to fetch the parameter type. Raises ArgumentError if any atom does not have a assigned type (nil).


[View source]
def []?(angle : Chem::Angle) : AngleType | Nil #

Returns the angle parameter type associated with angle if exists, else nil.

It uses the typenames of the involved atoms as key to fetch the parameter type. Raises ArgumentError if any atom does not have a assigned type (nil).


[View source]
def []?(bond : Chem::Bond) : BondType | Nil #

Returns the bond parameter type associated with bond if exists, else nil.

It uses the typenames of the involved atoms as key to fetch the parameter type. Raises ArgumentError if any atom does not have a assigned type (nil).


[View source]
def []?(dihedral : Chem::Dihedral) : DihedralType | Nil #

Returns the dihedral parameter type associated with dihedral if exists, else nil.

It uses the typenames of the involved atoms as key to fetch the parameter type. Raises ArgumentError if any atom does not have a assigned type (nil).


[View source]
def []?(improper : Chem::Improper) : ImproperType | Nil #

Returns the improper parameter type associated with improper if exists, else nil.

It uses the typenames of the involved atoms as key to fetch the parameter type. Raises ArgumentError if any atom does not have a assigned type (nil).


[View source]
def angle?(typenames : Tuple(String, String, String)) : AngleType | Nil #

[View source]
def angles : Array::View(AngleType) #

[View source]
def atom?(name : String) : AtomType | Nil #

[View source]
def atoms : Array::View(AtomType) #

[View source]
def bond?(typenames : Tuple(String, String)) : BondType | Nil #

[View source]
def bonds : Array::View(BondType) #

[View source]
def detect_missing(top : Chem::Topology) : Array(C) #

[View source]
def dihedral?(typenames : Tuple(String | Nil, String, String, String | Nil)) : DihedralType | Nil #

[View source]
def dihedrals : Array::View(DihedralType) #

[View source]
def fuzzy_search(angle : Chem::Angle) : Array(AngleType) #

[View source]
def fuzzy_search(bond : Chem::Bond) : Array(BondType) #

[View source]
def fuzzy_search(dihedral : Chem::Dihedral) : Array(DihedralType) #

[View source]
def fuzzy_search(improper : Chem::Improper) : Array(ImproperType) #

[View source]
def improper?(typenames : Tuple(String, String | Nil, String | Nil, String)) : ImproperType | Nil #

[View source]
def impropers : Array::View(ImproperType) #

[View source]
def patch?(name : String) : Patch | Nil #

[View source]
def patches : Array::View(Patch) #

[View source]
def residue?(name : String) : ResidueType | Nil #

[View source]
def residues : Array::View(ResidueType) #

[View source]
def to_prm(output : IO | Path | String) : Nil #

[View source]