20 #ifndef OST_MM_FORCE_FIELD_HH
21 #define OST_MM_FORCE_FIELD_HH
27 #include <boost/shared_ptr.hpp>
28 #include <boost/unordered_map.hpp>
36 namespace ost {
namespace mol{
namespace mm{
60 template <
typename DS>
73 Forcefield(): gen_pairs_(true), fudge_LJ_(1.0),fudge_QQ_(1.0) { }
96 const String& type2)
const;
100 const String& type3)
const;
105 const String& type4)
const;
110 const String& type4)
const;
116 const String& type5)
const;
122 bool pair=
false)
const;
166 const String& ff_main_name,
167 const String& ff_n_ter_name,
168 const String& ff_c_ter_name,
169 const String& ff_two_ter_name);
172 const String& old_atom_name,
173 const String& new_atom_name);
186 hydrogen_constructors_[residue_name] = p;
202 return (atom_renaming_ff_specific_.find(res_name)
203 != atom_renaming_ff_specific_.end());
210 String AtomTypesToKeyword(std::vector<String>&
types,
bool allow_reordering =
true)
const;
218 boost::unordered_map<String, Real> atom_masses_;
219 boost::unordered_map<String, BuildingBlockPtr> building_blocks_;
220 boost::unordered_map<String, BlockModifierPtr> block_modifiers_;
223 boost::unordered_map<String,InteractionPtr> bonds_;
224 boost::unordered_map<String,InteractionPtr> angles_;
225 boost::unordered_map<String,InteractionPtr> lj_14_pairs_;
226 boost::unordered_map<String,InteractionPtr> constraints_;
227 boost::unordered_map<String,InteractionPtr> cmaps_;
228 boost::unordered_map<String,InteractionPtr> implicit_genborn_;
229 boost::unordered_map<String,InteractionPtr> ljs_;
230 boost::unordered_map<String,std::vector<InteractionPtr> > dihedrals_;
231 boost::unordered_map<String,std::vector<InteractionPtr> > improper_dihedrals_;
233 boost::unordered_map<String, AtomRenamingType> atom_renaming_ff_specific_;
234 boost::unordered_map<String, ResidueNamesPtr> res_renaming_ff_specific_;
236 boost::unordered_map<String, HydrogenConstructorPtr> hydrogen_constructors_;
237 boost::unordered_map<String, String> standard_n_termini_;
238 boost::unordered_map<String, String> standard_c_termini_;
std::vector< InteractionPtr > GetImpropers(const String &type1, const String &type2, const String &type3, const String &type4) const
void AddResidueRenamingRule(const String &name, const String &ff_main_name, const String &ff_n_ter_name, const String &ff_c_ter_name, const String &ff_two_ter_name)
InteractionPtr GetImplicitGenborn(const String &type1) const
String GetResidueRenamingTwoTer(const String &name) const
BlockModifierPtr GetBlockModifier(const String &modifier_name) const
void AddBlockModifier(const String &modifier_name, BlockModifierPtr p)
InteractionPtr GetBond(const String &type1, const String &type2) const
std::vector< InteractionPtr > GetDihedrals(const String &type1, const String &type2, const String &type3, const String &type4) const
BuildingBlockPtr GetBuildingBlock(const String &name) const
bool HasAtomRenamingRules(const String &res_name) const
String GetAtomType(const String &res_name, const String &atom_name) const
void AddImproper(InteractionPtr p)
void AddCMap(InteractionPtr p)
void SetFudgeLJ(Real f_lj)
BlockModifierPtr GetCTerModifier(const String &res_name, const String &ter_name="") const
void SetFudgeQQ(Real f_qq)
String GetResidueRenamingCTer(const String &name) const
String GetResidueRenamingNTer(const String &name) const
String GetResidueRenamingMain(const String &name) const
void AddImplicitGenborn(InteractionPtr p)
void SetStandardNTer(const String &res_name, const String &ter_name)
std::vector< String > GetBuildingBlockNames() const
static ForcefieldPtr Load(const String &filename)
BlockModifierPtr GetNTerModifier(const String &res_name, const String &ter_name="") const
HydrogenConstructorPtr GetHydrogenConstructor(const String &name) const
InteractionPtr GetLJ(const String &type) const
void AddAngle(InteractionPtr p)
void AddDihedral(InteractionPtr p)
Real GetMass(const String &type) const
void SetStandardCTer(const String &res_name, const String &ter_name)
void AddLJ(InteractionPtr p)
void Save(const String &filename)
void AddConstraint(InteractionPtr p)
InteractionPtr GetLJ(const String &type1, const String &type2, bool pair=false) const
void AssignFFSpecificNames(ost::mol::EntityHandle &handle, bool reverse=false) const
String GetAtomRenaming(const String &res_name, const String &atom_name) const
void AddBond(InteractionPtr p)
void AddMass(const String &type, Real mass)
const AtomRenamingType & GetAtomRenamingRules(const String &res_name) const
InteractionPtr GetCMap(const String &type1, const String &type2, const String &type3, const String &type4, const String &type5) const
void AddBuildingBlock(const String &name, BuildingBlockPtr p)
void SetGenPairs(bool gen_pairs)
void AddAtomRenamingRule(const String &res_name, const String &old_atom_name, const String &new_atom_name)
void AddLJPair(InteractionPtr p)
InteractionPtr GetAngle(const String &type1, const String &type2, const String &type3) const
void AddHydrogenConstructor(const String &residue_name, HydrogenConstructorPtr p)
InteractionPtr GetConstraint(const String &type1, const String &type2)
std::vector< std::pair< String, String > > AtomRenamingType
boost::shared_ptr< BuildingBlock > BuildingBlockPtr
boost::shared_ptr< BlockModifier > BlockModifierPtr
boost::shared_ptr< ost::mol::mm::Forcefield > ForcefieldPtr
boost::shared_ptr< HydrogenConstructor > HydrogenConstructorPtr
boost::shared_ptr< Interaction > InteractionPtr
boost::shared_ptr< ResidueNames > ResidueNamesPtr
bool Contains(const String &name)
ResidueNames(String a, String b, String c, String d)