📄 coor.h
字号:
coordinate list. The remaining coordinates will be automatically generated. The default is no followed coordinate. This option is usually used to set the initial search direction for a transition state optimization, where it is used in conjunction with the mode_following keyword read by the EFCOpt class. <dt><tt>fixed</tt><dd> Gives a SetIntCoor object that specifies the internal coordinates that will be fixed. The default is no fixed coordinates. <dt><tt>watched</tt><dd> Gives a SetIntCoor object that specifies internal coordinates that will be printed out whenever the coordinates are changed. The default is none. <dt><tt>have_fixed_values</tt><dd> If true, then values for the fixed coordinates must be given in fixed and an attempt will be made to displace the initial geometry to the given fixed values. The default is false. <dt><tt>extra_bonds</tt><dd> This is only read if the generator keyword is not given. It is a vector of atom numbers, where elements \f$(i-1)\times 2 + 1\f$ and \f$i\times 2\f$ specify the atoms which are bound in extra bond \f$i\f$. The extra_bonds keyword should only be needed for weakly interacting fragments, otherwise all the needed bonds will be found. <dt><tt>generator</tt><dd> Specifies an IntCoorGen object that creates simple, redundant internal coordinates. If this keyword is not given, then a vector giving extra bonds to be added is read from extra_bonds and this is used to create an IntCoorGen object. <dt><tt>decouple_bonds</tt><dd> Automatically generated internal coordinates are linear combinations of possibly any mix of simple internal coordinates. If decouple_bonds is true, an attempt will be made to form some of the internal coordinates from just stretch simple coordinates. The default is false. <dt><tt>decouple_bends</tt><dd> This is like decouple_bonds except it applies to the bend-like coordinates. The default is false. <dt><tt>max_update_disp</tt><dd> The maximum displacement to be used in the displacement to fixed internal coordinates values. Larger displacements will be broken into several smaller displacements and new coordinates will be formed for each of these displacments. This is only used when fixed and have_fixed_values are given. The default is 0.5. <dt><tt>max_update_steps</tt><dd> The maximum number of steps permitted to convert internal coordinate displacements to cartesian coordinate displacements. The default is 100. <dt><tt>update_bmat</tt><dd> Displacements in internal coordinates are converted to a cartesian displacements interatively. If there are large changes in the cartesian coordinates during conversion, then recompute the \f$B\f$ matrix, which is using to do the conversion. The default is false. <dt><tt>only_totally_symmetric</tt><dd> If a simple test reveals that an internal coordinate is not totally symmetric, then it will not be added to the internal coordinate list. The default is true. <dt><tt>simple_tolerance</tt><dd> The internal coordinates are formed as linear combinations of simple, redundant internal coordinates. Coordinates with coefficients smaller then simple_tolerance will be omitted. The default is 1.0e-3. <dt><tt>cartesian_tolerance</tt><dd> The tolerance for conversion of internal coordinate displacements to cartesian displacements. The default is 1.0e-12. <dt><tt>form:print_simple</tt><dd> Print the simple internal coordinates. The default is false. <dt><tt>form:print_variable</tt><dd> Print the variable internal coordinates. The default is false. <dt><tt>form:print_constant</tt><dd> Print the constant internal coordinates. The default is false. <dt><tt>form:print_molecule</tt><dd> Print the molecule when forming coordinates. The default is false. <dt><tt>scale_bonds</tt><dd> Obsolete. The default value is 1.0. <dt><tt>scale_bends</tt><dd> Obsolete. The default value is 1.0. <dt><tt>scale_tors</tt><dd> Obsolete. The default value is 1.0. <dt><tt>scale_outs</tt><dd> Obsolete. The default value is 1.0. <dt><tt>symmetry_tolerance</tt><dd> Obsolete. The default is 1.0e-5. <dt><tt>coordinate_tolerance</tt><dd> Obsolete. The default is 1.0e-7. </dl> */ IntMolecularCoor(const Ref<KeyVal>&); virtual ~IntMolecularCoor(); void save_data_state(StateOut&); /** Actually form the variable and constant internal coordinates from the simple internal coordinates. */ virtual void form_coordinates(int keep_variable=0) =0; /** Like to_cartesians(), except all internal coordinates are considered, not just the variable ones. */ virtual int all_to_cartesian(const Ref<Molecule> &,RefSCVector&internal); /** Like to_internal(), except all internal coordinates are considered, not just the variable ones. */ virtual int all_to_internal(const Ref<Molecule> &,RefSCVector&internal); /** These implement the virtual functions inherited from MolecularCoor. */ virtual RefSCDimension dim(); virtual int to_cartesian(const Ref<Molecule> &,const RefSCVector&internal); virtual int to_internal(RefSCVector&internal); virtual int to_cartesian(RefSCVector&cartesian,RefSCVector&internal); virtual int to_internal(RefSCVector&internal,RefSCVector&cartesian); virtual int to_cartesian(RefSymmSCMatrix&cart,RefSymmSCMatrix&internal); virtual int to_internal(RefSymmSCMatrix&internal,RefSymmSCMatrix&cart); virtual void print(std::ostream& =ExEnv::out0()) const; virtual void print_simples(std::ostream& =ExEnv::out0()) const; virtual void print_variable(std::ostream& =ExEnv::out0()) const; virtual void print_constant(std::ostream& =ExEnv::out0()) const; int nconstrained();};// ////////////////////////////////////////////////////////////////////////** The SymmMolecularCoor class derives from IntMolecularCoor. It providesa unique set of totally symmetric internal coordinates. Giving anMolecularEnergy object a coor is usually the best way to optimize amolecular structure. However, for some classes of moleculesSymmMolecularCoor doesn't work very well. For example, enediyne can causeproblems. In these cases, cartesian coordinates (obtained by not givingthe MolecularEnergy object the coor keyword) might be better or you canmanually specify the coordinates that the SymmMolecularCoor object useswith the variable keyword (see the IntMolecularCoor class description). */class SymmMolecularCoor: public IntMolecularCoor{ protected: // true if coordinates should be changed during optimization int change_coordinates_; // true if hessian should be transformed too (should always be true) int transform_hessian_; // max value for the condition number if coordinates can be changed double max_kappa2_; void init(); public: SymmMolecularCoor(Ref<Molecule>&mol); SymmMolecularCoor(StateIn&); /** The KeyVal constructor. <dl> <dt><tt>change_coordinates</tt><dd> If true, the quality of the internal coordinates will be checked periodically and if they are beginning to become linearly dependent a new set of internal coordinates will be computed. The default is false. <dt><tt>max_kappa2</tt><dd> A measure of the quality of the internal coordinates. Values of the 2-norm condition, \f$\kappa_2\f$, larger than max_kappa2 are considered linearly dependent. The default is 10.0. <dt><tt>transform_hessian</tt><dd> If true, the hessian will be transformed every time the internal coordinates are formed. The default is true. </dl> */ SymmMolecularCoor(const Ref<KeyVal>&); virtual ~SymmMolecularCoor(); void save_data_state(StateOut&); /** Actually form the variable and constant internal coordinates from simple internal coordinates. */ void form_coordinates(int keep_variable=0); /// Form the approximate hessian. void guess_hessian(RefSymmSCMatrix&hessian); /// Invert the hessian. RefSymmSCMatrix inverse_hessian(RefSymmSCMatrix&); /** This overrides MoleculeCoor's change_coordinates and might transform to a new set of coordinates. */ Ref<NonlinearTransform> change_coordinates(); void print(std::ostream& =ExEnv::out0()) const;};// ////////////////////////////////////////////////////////////////////////** The RedundMolecularCoor class provides a redundant set of simpleinternal coordinates. */class RedundMolecularCoor: public IntMolecularCoor{ public: RedundMolecularCoor(Ref<Molecule>&mol); RedundMolecularCoor(StateIn&); /// The KeyVal constructor. RedundMolecularCoor(const Ref<KeyVal>&); virtual ~RedundMolecularCoor(); void save_data_state(StateOut&); /** Actually form the variable and constant internal coordinates from the simple internal coordinates. */ void form_coordinates(int keep_variable=0); /// Form the approximate hessian. void guess_hessian(RefSymmSCMatrix&hessian); /// Invert the hessian. RefSymmSCMatrix inverse_hessian(RefSymmSCMatrix&);};// ////////////////////////////////////////////////////////////////////////** The CartMolecularCoor class implements Cartesian coordinates in a way suitable for use in geometry optimizations. CartMolecularCoor is a SavableState has StateIn and KeyVal constructors. CartMolecularCoor is derived from MolecularCoor. */class CartMolecularCoor: public MolecularCoor{ private: protected: RefSCDimension dim_; // the number of atoms x 3 /// Initializes the dimensions. virtual void init(); public: CartMolecularCoor(Ref<Molecule>&mol); CartMolecularCoor(StateIn&); /// The KeyVal constructor. CartMolecularCoor(const Ref<KeyVal>&); virtual ~CartMolecularCoor(); void save_data_state(StateOut&); /// These implement the virtual functions inherited from MolecularCoor. virtual RefSCDimension dim(); virtual int to_cartesian(const Ref<Molecule>&,const RefSCVector&internal); virtual int to_internal(RefSCVector&internal); virtual int to_cartesian(RefSCVector&cartesian,RefSCVector&internal); virtual int to_internal(RefSCVector&internal,RefSCVector&cartesian); virtual int to_cartesian(RefSymmSCMatrix&cart,RefSymmSCMatrix&internal); virtual int to_internal(RefSymmSCMatrix&internal,RefSymmSCMatrix&cart); virtual void print(std::ostream& =ExEnv::out0()) const; virtual void print_simples(std::ostream& =ExEnv::out0()) const; void guess_hessian(RefSymmSCMatrix&hessian); RefSymmSCMatrix inverse_hessian(RefSymmSCMatrix&);};}#endif// Local Variables:// mode: c++// c-file-style: "CLJ"// End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -