Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MMLJLibrary.cc
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file core/scoring/mm/MMLJLibary.cc
11 /// @brief Molecular mechanics lj library
12 /// @author P. Douglas Renfrew (renfrew@unc.edu)
13 
14 // Unit headers
16 
17 // Project headers
20 #include <basic/Tracer.hh>
21 
22 // Utility headers
23 #include <utility/vector1.hh>
24 #include <utility/keys/Key2Tuple.hh>
25 #include <utility/pointer/access_ptr.hh>
26 #include <utility/pointer/owning_ptr.hh>
27 #include <utility/pointer/ReferenceCount.hh>
28 
29 // Numeric headers
30 // AUTO-REMOVED #include <numeric/conversions.hh>
31 
32 // C++ headers
33 #include <string>
34 #include <map>
35 
36 //Auto Headers
37 namespace core {
38 namespace scoring {
39 namespace mm {
40 
41 /// @details Auto-generated virtual destructor
43 
44 using basic::T;
45 using basic::Error;
46 using basic::Warning;
47 
48 static basic::Tracer TR("core.mm.MMLJLibrary");
49 
50 /// @details Constructs a MMLJLibrary instance from a filename string and constant access pointer to an MMAtomTypeSet
53 ):
54  // hard coding these here for now
55 // nblist_dis2_cutoff_XX_( 60.0 ),
56 // nblist_dis2_cutoff_XH_( 60.0 ),
57 // nblist_dis2_cutoff_HH_( 60.0 )
58 // TESTING THESE
59  nblist_dis2_cutoff_XX_( 72.25 ),
60  nblist_dis2_cutoff_XH_( 3.19 ),
61  nblist_dis2_cutoff_HH_( 19.36 )
62 {
63  // set the MM atom type set
65 
66  // add the lj params
67  for( Size i = 1; i <= mm_atom_set_->n_atomtypes(); ++i )
68  {
69 
70  // get lj radius and well depth
71  Real radius = (*mm_atom_set_)[ i ].lj_radius();
72  Real wdepth = (*mm_atom_set_)[ i ].lj_wdepth();
73  Real radius_3b = (*mm_atom_set_)[ i ].lj_three_bond_radius();
74  Real wdepth_3b = (*mm_atom_set_)[ i ].lj_three_bond_wdepth();
75 
76  // add to correct library
77  mm_lj_library_.push_back( mm_lj_param_set( radius, wdepth ) );
78  mm_lj_three_bond_library_.push_back( mm_lj_param_set( radius_3b, wdepth_3b ) );
79  }
80 
81  // print number lj params added
82  TR << "MM lj sets added: " << mm_lj_library_.size() << std::endl;
83 }
84 
85 } // namespace mm
86 } // namespace scoring
87 } // namespace core