| 149 |
|
return nGlobalRigidBodies_; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
< |
int getNGlobalConstraints(); |
| 152 |
> |
/** Returns the number of global bonds */ |
| 153 |
> |
unsigned int getNGlobalBonds(){ |
| 154 |
> |
return nGlobalBonds_; |
| 155 |
> |
} |
| 156 |
> |
|
| 157 |
> |
/** Returns the number of global bends */ |
| 158 |
> |
unsigned int getNGlobalBends() { |
| 159 |
> |
return nGlobalBends_; |
| 160 |
> |
} |
| 161 |
> |
|
| 162 |
> |
/** Returns the number of global torsions */ |
| 163 |
> |
unsigned int getNGlobalTorsions() { |
| 164 |
> |
return nGlobalTorsions_; |
| 165 |
> |
} |
| 166 |
> |
|
| 167 |
> |
/** Returns the number of global inversions */ |
| 168 |
> |
unsigned int getNGlobalInversions() { |
| 169 |
> |
return nGlobalInversions_; |
| 170 |
> |
} |
| 171 |
> |
|
| 172 |
> |
unsigned int getNGlobalConstraints() { |
| 173 |
> |
if (!hasNGlobalConstraints_) calcNConstraints(); |
| 174 |
> |
return nGlobalConstraints_; |
| 175 |
> |
} |
| 176 |
|
/** |
| 177 |
|
* Returns the number of local molecules. |
| 178 |
|
* @return the number of local molecules |
| 204 |
|
return nTorsions_; |
| 205 |
|
} |
| 206 |
|
|
| 207 |
< |
/** Returns the number of local torsions */ |
| 207 |
> |
/** Returns the number of local inversions */ |
| 208 |
|
unsigned int getNInversions() { |
| 209 |
|
return nInversions_; |
| 210 |
|
} |
| 512 |
|
void calcNdf(); |
| 513 |
|
void calcNdfRaw(); |
| 514 |
|
void calcNdfTrans(); |
| 515 |
+ |
void calcNConstraints(); |
| 516 |
|
|
| 517 |
|
/** |
| 518 |
|
* Adds molecule stamp and the total number of the molecule with |
| 543 |
|
int nGlobalIntegrableObjects_; /**< number of integrable objects in this system */ |
| 544 |
|
int nGlobalRigidBodies_; /**< number of rigid bodies in this system (GLOBAL) */ |
| 545 |
|
int nGlobalFluctuatingCharges_;/**< number of fluctuating charges in this system (GLOBAL) */ |
| 546 |
< |
|
| 547 |
< |
|
| 546 |
> |
int nGlobalBonds_; /**< number of bonds in the system */ |
| 547 |
> |
int nGlobalBends_; /**< number of bends in the system */ |
| 548 |
> |
int nGlobalTorsions_; /**< number of torsions in the system */ |
| 549 |
> |
int nGlobalInversions_; /**< number of inversions in the system */ |
| 550 |
> |
int nGlobalConstraints_; /**< number of constraints in the system */ |
| 551 |
> |
bool hasNGlobalConstraints_; |
| 552 |
> |
|
| 553 |
|
/// Degress of freedom |
| 554 |
|
int ndf_; /**< number of degress of freedom (excludes constraints) (LOCAL) */ |
| 555 |
|
int ndfLocal_; /**< number of degrees of freedom (LOCAL, excludes constraints) */ |