![]() |
KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Utility class to find an entity of a mesh based on a location. More...
#include <brute_force_point_locator.h>
Public Member Functions | |
Type Definitions | |
| KRATOS_CLASS_POINTER_DEFINITION (BruteForcePointLocator) | |
| Pointer definition of BruteForcePointLocator. More... | |
Life Cycle | |
| BruteForcePointLocator (ModelPart &rModelPart) | |
| Default constructor. More... | |
| virtual | ~BruteForcePointLocator ()=default |
| Destructor. More... | |
Operations | |
| int | FindNode (const Point &rThePoint, const Globals::Configuration configuration=Globals::Configuration::Initial, const double DistanceThreshold=1e-6) const |
| This function finds a node based on a location. More... | |
| int | FindElement (const Point &rThePoint, Vector &rShapeFunctionValues, const Globals::Configuration configuration=Globals::Configuration::Initial, const double LocalCoordTol=1e-6) const |
| This function finds an element based on a location. More... | |
| int | FindCondition (const Point &rThePoint, Vector &rShapeFunctionValues, const Globals::Configuration configuration=Globals::Configuration::Initial, const double LocalCoordTol=1e-6) const |
| This function finds a condition based on a location. More... | |
Input and output | |
| virtual std::string | Info () const |
| Turn back information as a string. More... | |
| virtual void | PrintInfo (std::ostream &rOStream) const |
| Print information about this object. More... | |
| virtual void | PrintData (std::ostream &rOStream) const |
| Print object's data. More... | |
Utility class to find an entity of a mesh based on a location.
Based on the location of a point, the corresponding entity (node, element or condition) in a mesh is found and it's id is returned
|
inlineexplicit |
Default constructor.
|
virtualdefault |
Destructor.
| int Kratos::BruteForcePointLocator::FindCondition | ( | const Point & | rThePoint, |
| Vector & | rShapeFunctionValues, | ||
| const Globals::Configuration | configuration = Globals::Configuration::Initial, |
||
| const double | LocalCoordTol = 1e-6 |
||
| ) | const |
This function finds a condition based on a location.
| rThePoint | the location to search |
| rShapeFunctionValues | vector containing the shape-function values for the given point |
| configuration | search the Initial or Current configuration |
| LocalCoordTol | tolerance local-coordinates for IsInside |
| int Kratos::BruteForcePointLocator::FindElement | ( | const Point & | rThePoint, |
| Vector & | rShapeFunctionValues, | ||
| const Globals::Configuration | configuration = Globals::Configuration::Initial, |
||
| const double | LocalCoordTol = 1e-6 |
||
| ) | const |
This function finds an element based on a location.
| rThePoint | the location to search |
| rShapeFunctionValues | vector containing the shape-function values for the given point |
| configuration | search the Initial or Current configuration |
| LocalCoordTol | tolerance local-coordinates for IsInside |
| int Kratos::BruteForcePointLocator::FindNode | ( | const Point & | rThePoint, |
| const Globals::Configuration | configuration = Globals::Configuration::Initial, |
||
| const double | DistanceThreshold = 1e-6 |
||
| ) | const |
This function finds a node based on a location.
| rThePoint | the location to search |
| configuration | search the Initial or Current configuration |
| DistanceThreshold | threshold for the distance |
|
inlinevirtual |
Turn back information as a string.
| Kratos::BruteForcePointLocator::KRATOS_CLASS_POINTER_DEFINITION | ( | BruteForcePointLocator | ) |
Pointer definition of BruteForcePointLocator.
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.