Changeset 750cff for src/documentation/constructs
- Timestamp:
- Oct 31, 2011, 5:13:52 PM (14 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, 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:
- 5982c5
- Parents:
- 19bc74
- Location:
- src/documentation/constructs
- Files:
-
- 5 added
- 11 edited
-
actions.dox (modified) (1 diff)
-
atoms.dox (added)
-
bondgraph.dox (modified) (1 diff)
-
constructs.dox (modified) (2 diffs)
-
descriptors.dox (modified) (1 diff)
-
fragmentation.dox (modified) (1 diff)
-
linearalgebra.dox (added)
-
logger.dox (added)
-
molecules.dox (added)
-
observers_observables.dox (modified) (1 diff)
-
parsers.dox (modified) (1 diff)
-
randomnumbers.dox (modified) (1 diff)
-
serialization.dox (modified) (1 diff)
-
shapes.dox (modified) (1 diff)
-
tesselation.dox (modified) (1 diff)
-
world.dox (added)
Legend:
- Unmodified
- Added
- Removed
-
src/documentation/constructs/actions.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page actions Actions 16 * 17 * Actions are Command patterns (http://en.wikipedia.org/wiki/Command_pattern) 18 * to allow for undoing and redoing. Each specific Action derives from this 19 * class to implement a certain functionality. There is a lot of preprocessor 20 * magic implemented for making this as easy as possible. In effect you only 21 * have to create three files of which only one actually contains more than a 22 * few lines, namely the code of the Action itself. 23 * 24 * Each Action has thus three types of functionalty: do, undo, and redo. 25 * 26 * The ActionRegistry contains a prototype of each Action under its token 27 * such that an instance can be retrieved by knowing this token. 28 * 29 * Each Action obtains its parameter from a central ValueStorage such that 30 * they are independent of where the parameter originated from: a command line 31 * parameter, a value entered in a graphical dialog or given via the keyboard 32 * in a terminal. That's why each begins with a function call to 33 * getParametersfromValueStorage() to fill its internal Action::params 34 * structure. 35 * 36 * Also there is a regression test (\ref regression-test) for each Action to 37 * check that it always behaves the same no matter how much the code 38 * implementing actually has changed. 39 * 40 * \section actions-add To add a new action ... 41 * 42 * The following steps have to be done for adding a new action: 43 * -# Create three new files .cpp, .def, and .hpp 44 * -# Add the files to \b src/Actions/Makefile.am. 45 * -# Add the name of the Action to \b src/Actions/GlobalListOfActions.hpp 46 * such that the ActionRegistry knows about it and can instantiate a 47 * prototype. 48 * 49 * 50 * \date 2011-10-31 51 * 52 */ -
src/documentation/constructs/bondgraph.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page bondgraph BondGraph 16 * 17 * The BondGraph class contains the knowledge of when two atoms are bonded and 18 * when not. At this moment it either uses a sum of covalent bond radii or an 19 * externally given bond table that gives typical bond lengths per element. 20 * 21 * The BondGraph's main working horse is the BondGraph::CreateAdjacency() 22 * function. It is strongly connected to the following graph actions: 23 * - GraphCreateAdjacencyAction 24 * - GraphSubgraphDissectionAction 25 * 26 * Therein, the bond structure is recognized again from scratch or/and the 27 * molecules afterwards represent disconnected subgraphs. 28 * 29 * In terms of graph theory the bond graph is an undirected graph with the 30 * bond degree as its weight. Bonds are respresented by edges, the atoms 31 * represent nodes. 32 * 33 * 34 * \date 2011-10-31 35 * 36 */ -
src/documentation/constructs/constructs.dox
r19bc74 r750cff 7 7 8 8 /** 9 * \file constructs 9 * \file constructs.dox 10 10 * 11 11 * Created on: Oct 11, 2011 … … 14 14 15 15 16 /* 17 * \page constructs "List of various rigid constructs"16 /** 17 * \page constructs List of various rigid constructs 18 18 * 19 19 * The following constructs are present and should be known to you as an alphabetical list: 20 20 * 21 * \li \subpage actions 22 * \li \subpage linearalgebra 23 * \li \subpage bondgraph 24 * \li \subpage descriptors 25 * \li \subpage fragmentation 26 * \li \subpage observers 27 * \li \subpage parsers 28 * \li \subpage randomnumbers 29 * \li \subpage serialization 30 * \li \subpage shapes 31 * \li \subpage tesselation 32 * \li \subpage world 21 * \li \ref actions 22 * \li \ref atom 23 * \li \ref linearalgebra 24 * \li \ref bondgraph 25 * \li \ref descriptors 26 * \li \ref fragmentation 27 * \li \ref molecule 28 * \li \ref observers 29 * \li \ref parsers 30 * \li \ref randomnumbers 31 * \li \ref serialization 32 * \li \ref shapes 33 * \li \ref tesselation 34 * \li \ref world 33 35 * 34 36 * Note that the most important construct is the \subpage world "World" whose functions 35 37 * should absolutely be known. 36 38 * 39 * 40 * \date 2011-10-31 41 * 37 42 */ -
src/documentation/constructs/descriptors.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page descriptors Descriptors 16 * 17 * Descriptors help you to select a specific subset of a given array of 18 * elements. For the moment these elements are either instances of atom 19 * or molecule that the \ref world offers. 20 * 21 * They mostly work as an argument to either obtain a specific iterator 22 * over the elements (that silently skips all non-matching ones) or 23 * a subset. 24 * 25 * Note that the following boolean operators on descriptors work: 26 * - or 27 * - and 28 * - not 29 * 30 * Hence, these descriptors are very mighty. A typical use would be as follows: 31 * \code 32 * World::getInstance().getAllAtoms(AtomByType(1) && AtomByShape(Sphere(Vector(0,0,0), 2.))); 33 * \endcode 34 * which would return an AtomComposite of all hydrogen (Z=1) atoms within a 35 * sphere of radius 2. centered at (0,0,0). 36 * 37 * Or you may obtain iterators over a selection and use them in a loop as this: 38 * \code 39 * World::MoleculeIterator iter = World::getInstance().getMoleculeIter(MoleculeByFormula(Formula("H2O"))); 40 * World::MoleculeIterator enditer = World::getInstance().moleculeEnd(); 41 * std::cout << "List of all water molecules:" << std::endl; 42 * for (; iter != enditer; ++iter) 43 * std:cout << (*iter)->getId() << std::endl; 44 * \endcode 45 * 46 * \note There is difference between Selection and Descriptor. A 47 * Descriptor is just a predicate() that selects among a given list. The current 48 * Selection (of atoms/molecules) is a Descriptor \a applied to a the total 49 * list of all atoms/molecules. Hence, a selection refers to a subset where 50 * the Descriptor is just the condition that selects such a subset. 51 * 52 * \subsection descriptors-atom Atom Descriptors 53 * 54 * The following descriptors are present for atoms: 55 * - by id: AtomById() 56 * - of currently selected molecule(s): AtomsByMoleculeSelection() 57 * - currently selected atoms: AtomsBySelection() 58 * - within a Shape: AtomByShape() 59 * - of specific element: AtomByType() 60 * 61 * \subsection descriptors-molecule Molecule Descriptors 62 * 63 * The following descriptors are present for molecules: 64 * - by formula: MoleculeByFormula() 65 * - by id: MoleculeById() 66 * - by name: MoleculeByName() 67 * - of currently selected atoms: MoleculesByAtomSelection() 68 * - by order of creation: MoleculeByOrder() (i.e. -1 is the last one, 1 is the 69 * first ever created, ...) 70 * - by pointer: MoleculeByPtr MoleculeByPtr() 71 * - currently selected molecules: MoleculesBySelection() 72 * 73 * 74 * \date 2011-10-31 75 * 76 */ -
src/documentation/constructs/fragmentation.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page fragmentation Fragmentation 16 * 17 * Fragmentation contains all routines that are required to split a given 18 * molecular system into fragments. This is part of the so-called BOSSANOVA 19 * (Bond Order diSSection in an ANOVA-like fashion) approach to get linear 20 * scaling complexity for ab-initio quantum chemistry methods. 21 * 22 * The class Fragmentation contains with Fragmentation::FragmentMolecule() 23 * the main routine that dissect a given system and stores the fragments 24 * as configuration files. 25 * 26 * After these have been treated with a supported ab-initio solver, the 27 * energies and forces can be put together via \b joiner to approximation 28 * to the total energy and forces of the whole molecular system. Later, 29 * \b analyzer additionally gives data on how good this approximation has 30 * worked out in plotable format. 31 * 32 * 33 * \date 2011-10-31 34 * 35 */ -
src/documentation/constructs/observers_observables.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page observers Observers and Observables 16 * 17 * The Observer/Observerable mechanism is crucial to let different and 18 * independent components know about changes among one another. E.g. when an 19 * the element of an atom changes, the GUI (\ref graphical) needs to know 20 * about this change to plot the atom with a different color or shape. 21 * 22 * The Observer/Observerable mechanism is basically just a call-back: A 23 * class announces itself as Observable with having a specific interface 24 * of functions. Observer may signOn() to this class and have a specific 25 * function (update()) be called whenever a change occurs in the Observable 26 * class. 27 * 28 * Note that additionally an Observable may have various \a channels and 29 * Observers may signOn() to just such a channel to get a very specific 30 * update. E.g. a LinkedCell class needs to know when the position of an 31 * atom changes but it does not need to know about changes of element or 32 * velocity, ... These updates are called \a Notifications. 33 * 34 * As an example: 35 * \code 36 * World::getInstance().signOn(this, World::getInstance().getChannel(World::AtomInserted)); 37 * \endcode 38 * Here, in the constructor of GLWorldView the class signs on to atoms 39 * being inserted into the World such that it can add these onto the display 40 * as well. Notifications are received via recieveNotifications(), e.g. 41 * which you have to implement for an Observer class 42 * \code 43 * switch (notification->getChannelNo()) { 44 * case World::AtomInserted: 45 * { 46 * const atom *_atom = World::getInstance().lastChanged<atom>(); 47 * emit atomInserted(_atom); 48 * break; 49 * } 50 * \endcode 51 * Here, we just switch over all events that we process and care about (note 52 * that we only get called for those for which we have subscribed) and proceed. 53 * 54 * \note There is a complete logging mechanism available for this. However, 55 * it has to be compiled via a specific switch (\ref install). So, when 56 * you need to know why your function isn't notified, that's the way to 57 * find out. 58 * 59 * Be wary of where the update occurs: while the World tells you about new 60 * or destroyed atoms, only the atom itself tells you when its position has 61 * changed! 62 * 63 * \section observers-world Observers and the World 64 * 65 * The World, containing the arrays of all atoms and molecules, is a bit 66 * special with these observers. E.g. when you request a non-const array 67 * of atoms you receive an ObservedIterator. That is one where automatically 68 * it is assumed that you changed something and hence update() is called 69 * after you stepped over one of its elements. 70 * 71 * Thus, use const-iterators and arrays whenever possible, first to avoid 72 * this overhead, but second to avoid making pain-in-the-ass, hard-to-find 73 * mistakes. 74 * 75 * Also, the world stores specific information about what changed in the 76 * template function World::lastChanged() where it might contain reference 77 * to an atom that is about to be destroyed or just added. 78 * 79 * 80 * \date 2011-10-31 81 * 82 */ -
src/documentation/constructs/parsers.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page parsers Format Parsers 16 * 17 * Format Parsers load or save information about the World (i.e. all atoms, 18 * contained bonds, ...) in a specific file format. 19 * 20 * All parsers derive from FormatParser and all available instances of 21 * FormatParser's are stored in a FormatParserStorage such that they can be 22 * retrieved with simply knowing the associated token. 23 * 24 * We have this storage as the FormatParser may also contain extra information 25 * per atom (...AtomDataContainer or alikes) which should be copied when an 26 * atom is copied. Hence, as soon as a FormatParser is accessed once it sits 27 * in the Storage and accumulates all information. Therefore, every parser 28 * instance is unique per type throughout the run of the program. 29 * 30 * A specific parser can be obtained from the FormatParserStorage just by 31 * knowing the correct keyword such as this: 32 * \code 33 * ParserTypes type = FormatParserStorage::getInstance().getTypeFromName("xyz"); 34 * FormatParserInterface &parser = FormatParserStorage::getInstance().get(type); 35 * \endcode 36 * 37 * Associated to the FormatParser's is also the ChangeTracker (\ref observers) 38 * that observers the World and tells all parsers on program exit whether 39 * to save or not (i.e. whether any changes occurred). FormatParser_common 40 * makes sure that each FormatParser signUp()s to this ChangeTracker. 41 * 42 * Important is also the concept of a Parameter here. A Parameter is a value 43 * of a certain type with a given valid range or set of valid values. There 44 * ContinuousValue and DiscreteValue template classes that are subsequently 45 * joined with a name to give a ContinuousParameter and DiscreteParameter to 46 * be stored via a unifying ParameterInterface into a ParameterStorage. Such 47 * an instance each of the FormatParser's contains. Therein extra information 48 * such as a basis set, unit length, energy cutoff or other parser-specific 49 * parameters are stored. 50 * 51 * Various actions (WorldInputAction, WorldOuputAction, AtomSaveSelectedAtomsAction, 52 * MoleculeSaveSelectedAction) use the parser to load or store atoms or to 53 * control the behavior of storage (ParserSetOutputFormatAction, ...) 54 * 55 * \section parsers-add To add a new parser ... 56 * 57 * The following tasks are necessary: 58 * -# think of unique brief name for your parser, e.g. "xyz" and add to 59 * \b ParserTypes.def. This will inform FormatParserStorage of your new parser. 60 * (Again there is some preprocessor magic for instanting all ...) 61 * -# Implement a FormatParserTraits specialization with some common stuff to 62 * your parsers 63 * \code 64 * template<> 65 * struct FormatParserTrait<name> 66 * { 67 * //!> Name of the parser 68 * static const std::string name; 69 * //!> suffix of the files the parser understands to read and write 70 * static const std::string suffix; 71 * //!> ParserTypes enumeration for the parser 72 * static const enum ParserTypes type; 73 * }; 74 * \endcode 75 * where \a name is the name unique name of your parser, e.g. \a xyz. 76 * -# Create all these static variables with matching contents. 77 * -# Implement a FormatParser specialization 78 * \code 79 * template <> 80 * class FormatParser< name > : virtual public FormatParserInterface, public FormatParser_common 81 * { 82 * ... 83 * }; 84 * \endcode 85 * where \a name is again the name of your parser. FormatParser_common 86 * contains some functionality common to all Parsers where FormatParserInterface 87 * is the interface where load() and save() are defined. This allows for storage 88 * in FormatParserRegistry. 89 * -# implement FormatParserInterface::load() and FormatParserInterface::save(). 90 * -# implement FormatParser_common::AtomInserted() and 91 * FormatParser_common::AtomRemoved() 92 * 93 * 94 * \date 2011-10-31 95 */ -
src/documentation/constructs/randomnumbers.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page randomnumbers Random Number Generation 16 * 17 * There is a factory for random number generators present. This implementation 18 * has been necessary due to lack of a common interface on the side of the 19 * boost::random programmer. Hence, we added a RandomNumberInterface for both 20 * engine and distribution and a factory for both and finally the conglomerate 21 * for combining both into a single RandomNumberGenerator. 22 * 23 * Whereever random numbers should be picked with a varying distribution or 24 * even better a user-controlled one, this RandomNumberGenerator should be 25 * used, e.g. as this 26 * \code 27 * RandomNumberGenerator &random = RandomNumberGeneratorFactory::getInstance().makeRandomNumberGenerator(); 28 * const double rng_min = random.min(); 29 * const double rng_max = random.max(); 30 * \endcode 31 * This returns a reference to a random number generator instance. And also we obtain 32 * its RandomNumberGenerator::min() and RandomNumberGenerator::max() values. 33 * Then, we may create random values as simple as this: 34 * \code 35 * double random_value = (random()/((rng_max-rng_min)/2.) - 1.); 36 * \endcode 37 * which creates a random value within [-1,1]. Note that random() here is 38 * RandomNumberGenerator::operator() and not some global function. 39 * 40 * \note Do not necessarily use the random number generation when just a uniform 41 * distribution is required. The implementation is especially designed to allow 42 * the user control over the random number distribution. E.g. when filling the void 43 * space in a simulation box with molecules he may choose a discrete distribution 44 * with a small number of values to have a few, but random orientations of the 45 * molecules (MoleculeFillVoidWithMoleculeAction()). 46 * 47 * \date 2011-10-31 48 * 49 */ -
src/documentation/constructs/serialization.dox
r19bc74 r750cff 14 14 * Author: heber 15 15 */ 16 17 /** \page serialization Serialization 18 * 19 * Serialization is a mighty concept. The is only possible within an object- 20 * oriented framework. The member variables of a class make up its internal 21 * state. By storing this state, creating another instance and restoring 22 * the variables to this state, we may in essence clone the instance. However, 23 * we obtain additional control as to the moment of restoration because the 24 * internal state is stored temporarily. To allow for this storage all of 25 * these variables have to be \e serialized. 26 * 27 * Serialization refers to putting one after another into a writable form 28 * (e.g. convert to string and write into a stringstream) and eventually 29 * in reverse order to read them one by one from this writable form and 30 * cast them back into their original type. 31 * 32 * Here, this is done via boost::serialization. 33 * 34 * \attention The serialization headers do not mingle well with \b MemDebug.hpp. 35 * Hence, place them before MemDebug.hpp as they do funny stuff with the 36 * new() operator. 37 * 38 * Serialization is so powerful because the stored state can be stored to 39 * disk, transfered to another thread or even to another computer. If received 40 * by a compatible code, the instance is recreated and computation can be 41 * continued elsewhere. 42 * 43 * For the moment we use it for creating an undo state within the Action's. 44 * I.e. we store the state of all instances that are modified by an Action's 45 * doings and may in Action::performUndo() just re-create the unmodified 46 * instance by loading them from the serializing archive. 47 * 48 * \section serialization-add How to make your class serializable. 49 * 50 * \subsection serialization-add-simple The simple case 51 * 52 * All you need to do with your newly created class foo is this: 53 * \code 54 * class foo { 55 * ... 56 * private: 57 * friend class boost::serialization::access; 58 * template<class Archive> 59 * void serialize(Archive & ar, const unsigned int version) const 60 * { 61 * ar & content; 62 * } 63 * ... 64 * double content; 65 * }; 66 * \endcode 67 * This will implement a serialization function for both directions for the 68 * member variable content. I.e. we may now store a class instance as this: 69 * \code 70 * #include <boost/archive/text_oarchive.hpp> 71 * std::stringstream stream; 72 * boost::archive::text_oarchive oa(stream); 73 * oa << diagonal; 74 * \endcode 75 * This will store the state of the class in the stringstream \a stream. 76 * Getting the instance back is then as easy as 77 * \code 78 * #include <boost/archive/text_iarchive.hpp> 79 * boost::archive::text_iarchive ia(stream); 80 * RealSpaceMatrix *newm; 81 * ia >> newm; 82 * \endcode 83 * 84 * \subsection serialization-add-complicated The more complicated case 85 * 86 * It gets trickier when load and store need to be done differently, e.h. 87 * \code 88 * class foo { 89 * ... 90 * private: 91 * friend class boost::serialization::access; 92 * // serialization 93 * template<class Archive> 94 * void save(Archive & ar, const unsigned int version) const 95 * { 96 * ar & content; 97 * } 98 * template<class Archive> 99 * void load(Archive & ar, const unsigned int version) 100 * { 101 * ar & content; 102 * createViews(); 103 * } 104 * BOOST_SERIALIZATION_SPLIT_MEMBER() 105 * ... 106 * } 107 * \endcode 108 * Here, we split serialize() function into distinct load() and save() because 109 * we have to call an additional function to fully re-store the instance, i.e. 110 * it creates some internal reference arrays (Views) in a specific manner. 111 * 112 * The serialize functions can also be added externally, i.e. outside of the 113 * scope of the class, but can then access only public members (except we 114 * again make it a friend). 115 * 116 * 117 * \date 2011-10-31 118 */ -
src/documentation/constructs/shapes.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page shapes Shapes 16 * 17 * Shapes are present for denoting a specific region of the simulation domain. 18 * There are three types present: 19 * - Sphere 20 * - Ellipsoid 21 * - Cuboid 22 * 23 * Note that both may be modified (shrink/grow, rotate, morph) via an arbitrary 24 * matrix. 25 * 26 * The shapes are for the moment only used within \ref descriptors to specify 27 * a specific subset of atoms, here that reside in a certain region of the 28 * simulation domain. 29 * 30 * \todo There is a certain relation between Tesselation and Shape. Hence, later 31 * Tesselation shall itself be a Shape, i.e. that describes a certain region in 32 * space, here via a tesselated mesh. 33 * 34 * Again, Shapes can be joined via boolean operators: 35 * - add 36 * - or 37 * - not 38 * 39 * And thus are a very powerful concept. 40 * 41 * E.g. a shape can be used like this 42 * \code 43 * Cuboid(Vector(0,0,0), Vector(2,2,2)) && !Sphere(Vector(1,1,1), 1.) 44 * \endcode 45 * which would be match any object within the cuboid from (0,0,0) to (2,2,2) 46 * that is not in the unit sphere at (1,1,1). 47 * 48 * 49 * \date 2011-10-31 50 * 51 */ -
src/documentation/constructs/tesselation.dox
r19bc74 r750cff 12 12 * Author: heber 13 13 */ 14 15 /** \page tesselation Tesselation 16 * 17 * Tesselation is a first step towards recognizing molecular surfaces. 18 * 19 * Within the code it is used for calculating correlation functions with regard 20 * to such a surface. 21 * 22 * \section tesselation-procedure 23 * 24 * In the tesselation all atoms act as possible hindrance to a rolling sphere 25 * that moves in from infinity. whenever it rests uniquely on three distinct 26 * points (atoms) a triangle is created. The algorithm continues by flipping the 27 * sphere over one of the triangle's edges to eventually obtain a closed, 28 * tesselated surface of the molecule. 29 * 30 * \note This mesh is different to the usual sense of a molecular surface as 31 * atoms are directly located on it. Normally, one considers a so-called 32 * Van-der-Waals sphere around the atoms and tesselates over these. However, 33 * the mesh can easily be modified and even expanded to match the other 34 * (although the code for that is not yet fully implemented). 35 * 36 * \section tesselation-extension 37 * 38 * The main problem for extending the mesh to match with the normal sense is 39 * that triangles may suddenly intersect others when we have the case of a non- 40 * convex mesh (which is rather the normal case). And this has to be 41 * specifically treated. Also, it is not sure whether the procedure of 42 * expanding our current surface is optimal and one should not start on a 43 * different set of nodes created from virtual points resting on the 44 * van-der-Waals spheres. 45 * 46 * \date 2011-10-31 47 * 48 */
Note:
See TracChangeset
for help on using the changeset viewer.
