Revisão | 21b0560e9ac05758193a0a34216973030d202862 (tree) |
---|---|
Hora | 2011-01-06 19:28:39 |
Autor | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
'// ToDo: rotate' is added.
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/MolDS/trunk@40 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -61,6 +61,8 @@ private: | ||
61 | 61 | string messageCOM; |
62 | 62 | string messageCOMTitleAU; |
63 | 63 | string messageCOMTitleAng; |
64 | + string messageStartPrincipalAxes; | |
65 | + string messageDonePrincipalAxes; | |
64 | 66 | string messagePrincipalAxes; |
65 | 67 | string messagePrincipalAxesTitleAU; |
66 | 68 | string messagePrincipalAxesTitleAng; |
@@ -100,6 +102,8 @@ Molecule::Molecule(){ | ||
100 | 102 | this->messageCOM = "\tCenter of Mass:\n"; |
101 | 103 | this->messageCOMTitleAU = "\t\t| x [a.u.] | y[a.u.] | z[a.u.] |\n"; |
102 | 104 | this->messageCOMTitleAng = "\t\t| x [angst.] | y[angst.] | z[angst.] |\n"; |
105 | + this->messageStartPrincipalAxes = "********** START: Principal Axes Analysis **********\n"; | |
106 | + this->messageDonePrincipalAxes = "********** DONE: Principal Axes Analysis ***********\n\n\n"; | |
103 | 107 | this->messagePrincipalAxes = "\tPrincipal Axes:\n"; |
104 | 108 | this->messagePrincipalAxesTitleAU = "\t\t| inertia moments [a.u.] | x [a.u.] | y[a.u.] | z[a.u.] | (normalized)\n"; |
105 | 109 | this->messagePrincipalAxesTitleAng = "\t\t| inertia moments [g*angust**2/mol] | x [angst.] | y[angst.] | z[angst.] | (not normalized)\n"; |
@@ -318,6 +322,8 @@ void Molecule::SetInertiaTensorOrigin(double x, double y, double z){ | ||
318 | 322 | |
319 | 323 | void Molecule::CalcPrincipalAxes(){ |
320 | 324 | |
325 | + cout << this->messageStartPrincipalAxes; | |
326 | + | |
321 | 327 | if(this->inertiaTensorOrigin == NULL){ |
322 | 328 | if(!this->wasCalculatedCOMXyz){ |
323 | 329 | this->CalcCOMXyz(); |
@@ -343,8 +349,9 @@ void Molecule::CalcPrincipalAxes(){ | ||
343 | 349 | this->FreeInertiaTensorMoments(inertiaTensor, inertiaMoments); |
344 | 350 | throw ex; |
345 | 351 | } |
346 | - | |
347 | 352 | this->FreeInertiaTensorMoments(inertiaTensor, inertiaMoments); |
353 | + | |
354 | + cout << this->messageDonePrincipalAxes; | |
348 | 355 | |
349 | 356 | } |
350 | 357 |
@@ -456,6 +463,9 @@ void Molecule::Rotate(){ | ||
456 | 463 | } |
457 | 464 | |
458 | 465 | this->OutputRotatingConditions(); |
466 | + | |
467 | + // ToDo: rotate | |
468 | + | |
459 | 469 | cout << this->messageDoneRotate; |
460 | 470 | } |
461 | 471 |