/*************************************************************************** tmd_mod.cpp - description ------------------- begin : Tue Sep 18 13:46:28 2007 copyright : (C) 2002 by Cavalli Andrea email : cavalli@bioc.unizh.ch **************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include #include #include using namespace Almost; using namespace TMD; int MoleculesNode::id_counter = 0; template<> inline string to_string(const ConstraintCollection &){ return ""; } template<> inline string to_string(const MDB &){ return ""; } template<> inline string to_string(const MoleculesTree &){ return ""; } template<> inline string to_string(const Protein & protein){ return ""; } extern "C" { void init_tmd(){ //declarations here Module mod = Module("tmd","Torsion Angle Molecular Dynamics"); Class >(mod.self(),"tmd_options") .def_attribute("kind",&EnergyOptions< double >::kind,FFDoc::kind) .def_attribute("elec",&EnergyOptions::elec,FFDoc::elec) .def_attribute("elec_cutoff",&EnergyOptions::elec_cutoff,FFDoc::elec_cutoff) .def_attribute("vdw",&EnergyOptions::vdw,FFDoc::vdw) .def_attribute("vdw_cutoff",&EnergyOptions::vdw_cutoff,FFDoc::vdw_cutoff) .def_attribute("solv",&EnergyOptions::solv,FFDoc::solv) .def_attribute("solv_ignore_h",&EnergyOptions::solv_ignore_h,FFDoc::solv_ignore_h) .def_attribute("geometry",&EnergyOptions::geometry,RunDoc::geometry) .def_attribute("Lx",&EnergyOptions::Lx,RunDoc::Lx) .def_attribute("Ly",&EnergyOptions::Ly,RunDoc::Ly) .def_attribute("Lz",&EnergyOptions::Lz,RunDoc::Lz) .def_attribute("vect",&EnergyOptions::vect,RunDoc::vect) .def_attribute("cut_on",&EnergyOptions::cut_on,FFDoc::cut_on) .def_attribute("cut_off",&EnergyOptions::cut_off,FFDoc::cut_off) .def_attribute("cut_nb",&EnergyOptions::cut_nb,FFDoc::cut_nb) .def_attribute("alpha",&EnergyOptions::alpha,FFDoc::alpha) .def_attribute("e_zero",&EnergyOptions::e_zero,FFDoc::e_zero) .def_attribute("e_14",&EnergyOptions::e_14,FFDoc::e_14) .def_attribute("eps",&EnergyOptions::eps,FFDoc::eps) .def_attribute("r_water",&EnergyOptions::r_water,FFDoc::r_water) .def_attribute("rgbmax",&EnergyOptions::rgbmax,"Undocumented") .def_attribute("fsmax",&EnergyOptions::fsmax,"Undocumented") .def_attribute("eps_water",&EnergyOptions::eps_water,"Undocumented") .def_attribute("offset",&EnergyOptions::offset,"Undocumented") .def_attribute("surftens",&EnergyOptions::surftens,"Undocumented") .def_attribute("nsmooth",&EnergyOptions::nsmooth,"Undocumented") .def_attribute("memb_width",&EnergyOptions::memb_width,"Undocumented") .def_attribute("elec_strength",&EnergyOptions::elec_strength,"Undocumented") .def_method("energy_options",&TmdOptions::energy_options) .def_attribute("trj",&TmdOptions::trj,"Undocumented") .def_attribute("rst",&TmdOptions::rst,"Undocumented") .def_attribute("log",&TmdOptions::log,"Undocumented") .def_attribute("dat",&TmdOptions::dat,"Undocumented") .def_attribute("steps",&TmdOptions::steps,"Undocumented") .def_attribute("nprint",&TmdOptions::nprint,"Undocumented") .def_attribute("nsave",&TmdOptions::nsave,"Undocumented") .def_attribute("nupdate",&TmdOptions::nupdate,"Undocumented") .def_attribute("temp",&TmdOptions::temp,"Undocumented") .def_attribute("time_step",&TmdOptions::time_step,"Undocumented") .def_attribute("tau",&TmdOptions::tau,"Undocumented") .def_attribute("seed",&TmdOptions::seed,"Undocumented") .def_attribute("ene_accuracy",&TmdOptions::ene_accuracy,"Undocumented") ; Class >(mod.self(),"tree") .def_method("run",&MoleculesTree::run) .def_method("cont",&MoleculesTree::cont) .def_method("anneal",&MoleculesTree::anneal) .def_method("set_cc",&MoleculesTree::set_cc) .def_method("unset_cc",&MoleculesTree::unset_cc) .def_method("mini",&MoleculesTree::mini) .def_method("const_mini",&MoleculesTree::const_mini) .def_method("scan",&MoleculesTree::scan); ; ; mod .def_const("C19",(int)EnergyOptions::C19) .def_const("C22",(int)EnergyOptions::C22) .def_const("AMBER",(int)EnergyOptions::AMBER) .def_const("NONE",(int)EnergyOptions::NONE) .def_const("SASA",(int)EnergyOptions::SASA) .def_const("EEF1",(int)EnergyOptions::EEF1) .def_const("IMM1",(int)EnergyOptions::IMM1) .def_const("GB",(int)EnergyOptions::GB) .def_const("GB2",(int)EnergyOptions::GB2) .def_const("OFF",(int)EnergyOptions::OFF) .def_const("RDIE",(int)EnergyOptions::RDIE) .def_const("CDIE",(int)EnergyOptions::CDIE) .def_const("LJ",(int)EnergyOptions::LJ) .def_const("SHIFT",(int)EnergyOptions::SHIFT) .def_const("SWITCH",(int)EnergyOptions::SWITCH) .def_const("TRUNC",(int)EnergyOptions::TRUNC) .def_const("PLAIN",(int)EnergyOptions::PLAIN) .def_const("CUBIC",(int)EnergyOptions::CUBIC) .def_const("SSE",(int)EnergyOptions::SSE) ; } }