Changeset e9b8bb for src/boundary.cpp
- Timestamp:
- Aug 6, 2008, 9:02:01 AM (16 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 5e0d1f
- Parents:
- d7e30c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/boundary.cpp
rd7e30c re9b8bb 151 151 }; 152 152 153 void BoundaryTriangleSet::GetNormalVector( vector &NormalVector)153 void BoundaryTriangleSet::GetNormalVector(Vector &NormalVector) 154 154 { 155 155 // get normal vector … … 211 211 Boundaries *BoundaryPoints = new Boundaries [NDIM]; // first is alpha, second is (r, nr) 212 212 BoundariesTestPair BoundaryTestPair; 213 vector AxisVector, AngleReferenceVector, AngleReferenceNormalVector;213 Vector AxisVector, AngleReferenceVector, AngleReferenceNormalVector; 214 214 double radius, angle; 215 215 // 3a. Go through every axis … … 233 233 while (Walker->next != mol->end) { 234 234 Walker = Walker->next; 235 vector ProjectedVector;235 Vector ProjectedVector; 236 236 ProjectedVector.CopyVector(&Walker->x); 237 237 ProjectedVector.ProjectOntoPlane(&AxisVector); … … 316 316 // construct the vector of each side of the triangle on the projected plane (defined by normal vector AxisVector) 317 317 { 318 vector SideA, SideB, SideC, SideH;318 Vector SideA, SideB, SideC, SideH; 319 319 SideA.CopyVector(&left->second.second->x); 320 320 SideA.ProjectOntoPlane(&AxisVector); … … 394 394 GreatestDiameter[i] = 0.; 395 395 double OldComponent, tmp, w1, w2; 396 vector DistanceVector, OtherVector;396 Vector DistanceVector, OtherVector; 397 397 int component, Othercomponent; 398 398 for(int axis=0;axis<NDIM;axis++) { // regard each projected plane … … 470 470 double PyramidVolume = 0.; 471 471 double G,h; 472 vector x,y;472 Vector x,y; 473 473 double a,b,c; 474 474 475 475 // 1. calculate center of gravity 476 476 *out << endl; 477 vector *CenterOfGravity = mol->DetermineCenterOfGravity(out);477 Vector *CenterOfGravity = mol->DetermineCenterOfGravity(out); 478 478 479 479 // 2. translate all points into CoG … … 578 578 clustervolume = ClusterVolume; 579 579 double *GreatestDiameter = GetDiametersOfCluster(out, BoundaryPoints, mol, IsAngstroem); 580 vector BoxLengths;580 Vector BoxLengths; 581 581 int repetition[NDIM] = {1, 1, 1}; 582 582 int TotalNoClusters = 1; … … 755 755 class BoundaryPointSet *peak = NULL; 756 756 double SmallestAngle, TempAngle; 757 vector NormalVector, VirtualNormalVector, CenterVector, TempVector, PropagationVector;757 Vector NormalVector, VirtualNormalVector, CenterVector, TempVector, PropagationVector; 758 758 LineMap::iterator LineChecker[2]; 759 759 do {
Note:
See TracChangeset
for help on using the changeset viewer.