Changeset f6bd32 for src/Actions


Ignore:
Timestamp:
Jun 11, 2010, 7:22:37 PM (15 years ago)
Author:
Frederik Heber <heber@…>
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, Candidate_v1.7.0, 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:
980dd6
Parents:
6866aa
Message:

Case 'o' is now handled by CommandLineUI.

  • As of now, multiple "--offset" do not work. Hence, we invented new --convex-file and --nonconvex-file.
Location:
src/Actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MapOfActions.cpp

    r6866aa rf6bd32  
    108108  DescriptionMap["bin-start"] = "start of the first bin";
    109109  DescriptionMap["bin-width"] = "width of the bins";
     110  DescriptionMap["convex-file"] = "filename of the non-convex envelope";
    110111  DescriptionMap["distance"] = "distance in space";
    111112  DescriptionMap["distances"] = "list of three of distances in space, one for each axis direction";
     
    121122  DescriptionMap["molecule-by-id"] = "index of a molecule";
    122123  DescriptionMap["molecule-by-name"] = "name of a molecule";
     124  DescriptionMap["nonconvex-file"] = "filename of the non-convex envelope";
    123125  DescriptionMap["order"] = "order of a discretization, dissection, ...";
    124126  DescriptionMap["output-file"] = "name of the output file";
     
    209211  TypeMap["bin-start"] = Double;
    210212  TypeMap["bin-width"] = Double;
     213  TypeMap["convex-file"] = String;
    211214  TypeMap["distance"] = Double;
    212215  TypeMap["distances"] = Vector;
     
    221224  TypeMap["molecule-by-id"] = Molecule;
    222225  TypeMap["molecule-by-name"] = Molecule;
     226  TypeMap["nonconvex-file"] = String;
    223227  TypeMap["order"] = Integer;
    224228  TypeMap["output-file"] = String;
     
    246250//  generic.insert("change-molname");
    247251        generic.insert("change-element");
    248 //  generic.insert("convex-envelope");
     252  generic.insert("convex-envelope");
    249253        generic.insert("default-molname");
    250254        generic.insert("depth-first-search");
     
    275279  generic.insert("verlet-integrate");
    276280        generic.insert("version");
    277 //      // list of generic values
    278 //  generic.insert("distance");
    279 //  generic.insert("distances");
    280 //  generic.insert("element");
    281     generic.insert("input");
    282 //  generic.insert("length");
    283281
    284282    // positional arguments
    285     inputfile.insert("input");
     283  generic.insert("input");
     284  inputfile.insert("input");
    286285
    287286    // hidden arguments
     
    291290  generic.insert("bin-start");
    292291  generic.insert("bin-width");
     292  generic.insert("convex-file");
    293293  generic.insert("distance");
    294294  generic.insert("DoRotate");
     
    302302  generic.insert("molecule-by-id");
    303303  generic.insert("molecule-by-name");
     304  generic.insert("nonconvex-file");
    304305  generic.insert("order");
    305306  generic.insert("output-file");
  • src/Actions/TesselationAction/ConvexEnvelopeAction.cpp

    r6866aa rf6bd32  
    1919#include "atom.hpp"
    2020#include "boundary.hpp"
     21#include "config.hpp"
    2122#include "linkedcell.hpp"
    2223#include "log.hpp"
     
    5455  molecule * mol = NULL;
    5556  bool Success = false;
     57  config *configuration = World::getInstance().getConfig();
    5658
    5759  dialog->queryMolecule(NAME, &mol, MapOfActions::getInstance().getDescription(NAME));
    58   dialog->queryString("output", &filenameConvex, MapOfActions::getInstance().getDescription("output"));
    59   dialog->queryString("output", &filenameNonConvex, MapOfActions::getInstance().getDescription("output"));
     60  dialog->queryString("convex-file", &filenameConvex, MapOfActions::getInstance().getDescription("convex-file"));
     61  dialog->queryString("nonconvex-file", &filenameNonConvex, MapOfActions::getInstance().getDescription("nonconvex-file"));
    6062
    6163  if(dialog->display()) {
     
    7072    FindNonConvexBorder(mol, TesselStruct, LCList, 50., filenameNonConvex.c_str());
    7173    //RemoveAllBoundaryPoints(TesselStruct, mol, argv[argptr]);
    72     ConvexizeNonconvexEnvelope(TesselStruct, mol, filenameConvex.c_str());
     74    const double volumedifference = ConvexizeNonconvexEnvelope(TesselStruct, mol, filenameConvex.c_str());
     75    const double clustervolume = VolumeOfConvexEnvelope(TesselStruct, configuration);
     76    DoLog(0) && (Log() << Verbose(0) << "The tesselated volume area is " << clustervolume << " " << (configuration->GetIsAngstroem() ? "angstrom" : "atomiclength") << "^3." << endl);
     77    DoLog(0) && (Log() << Verbose(0) << "The non-convex tesselated volume area is " << clustervolume-volumedifference << " " << (configuration->GetIsAngstroem() ? "angstrom" : "atomiclength") << "^3." << endl);
    7378    delete(TesselStruct);
    7479    delete(LCList);
Note: See TracChangeset for help on using the changeset viewer.