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.
|
Short class definition. More...
#include <spatial_bounding_box.hpp>
Classes | |
struct | BoundingBoxParameters |
struct | BoundingBoxVariables |
Public Types | |
typedef array_1d< double, 3 > | PointType |
typedef ModelPart::NodeType | NodeType |
typedef ModelPart::NodesContainerType | NodesContainerType |
typedef NodesContainerType::Pointer | NodesContainerTypePointer |
typedef BeamMathUtils< double > | BeamMathUtilsType |
typedef Quaternion< double > | QuaternionType |
Public Member Functions | |
Type Definitions | |
KRATOS_CLASS_POINTER_DEFINITION (SpatialBoundingBox) | |
Pointer definition of SpatialBoundingBox. More... | |
Life Cycle | |
SpatialBoundingBox () | |
Default constructor. More... | |
SpatialBoundingBox (Parameters CustomParameters) | |
SpatialBoundingBox (const PointType &rLowerPoint, const PointType &rUpperPoint) | |
SpatialBoundingBox (const PointType &rCenter, const double &rRadius) | |
SpatialBoundingBox (ModelPart &rModelPart, const double &rRadius, double factor=0) | |
virtual SpatialBoundingBox & | operator= (SpatialBoundingBox const &rOther) |
Assignment operator. More... | |
SpatialBoundingBox (SpatialBoundingBox const &rOther) | |
Copy constructor. More... | |
virtual | ~SpatialBoundingBox () |
Destructor. More... | |
Operations | |
virtual void | UpdateBoxPosition (const double &rCurrentTime) |
virtual bool | IsInside (const PointType &rPoint, double &rCurrentTime, double Radius=0) |
virtual bool | IsInside (const PointType &rPoint) |
virtual bool | IsInside (BoundingBoxParameters &rValues, const ProcessInfo &rCurrentProcessInfo) |
virtual void | GetParametricDirections (BoundingBoxParameters &rValues, Vector &rT1, Vector &rT2) |
Access | |
void | SetUpperPoint (PointType &rUpperPoint) |
void | SetLowerPoint (PointType &rLowerPoint) |
void | SetVelocity (PointType &rVelocity) |
void | SetAngularVelocity (PointType &rAngularVelocity) |
void | SetDimension (int dimension) |
void | SetAxisymmetric () |
void | SetRigidBodyCenter (NodeType::Pointer pCenter) |
virtual double | GetRadius () |
virtual double | GetRadius (const PointType &rPoint) |
virtual PointType | GetVelocity () |
virtual PointType | GetCenter () |
virtual PointType | GetCenter (const PointType &rPoint) |
std::vector< PointType > | GetHoles (ModelPart &rModelPart) |
Compute inside holes. More... | |
void | GetVertices (std::vector< PointType > &rVertices, const double &rCurrentTime, const unsigned int &rDimension) |
Compute vertices. More... | |
void | GetTriangularFaces (DenseMatrix< unsigned int > &rFaces, const unsigned int &rDimension) |
void | GetQuadrilateralFaces (DenseMatrix< unsigned int > &rFaces, const unsigned int &rDimension) |
virtual void | CreateBoundingBoxBoundaryMesh (ModelPart &rModelPart, int linear_partitions=4, int angular_partitions=4) |
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... | |
Protected Attributes | |
Protected member Variables | |
NodeType::Pointer | mpRigidBodyCenter |
bool | mRigidBodyCenterSupplied |
BoundingBoxVariables | mBox |
Protected Operations | |
void | MapToLocalFrame (QuaternionType &rQuaternion, BoundingBoxVariables &rBox) |
PointType | GetBoxDisplacement (const double &rCurrentTime) |
PointType | GetBoxDeltaDisplacement (const double &rCurrentTime, const double &rPreviousTime) |
void | ComputeContactTangent (BoundingBoxParameters &rValues, const ProcessInfo &rCurrentProcessInfo) |
NodeType::Pointer | CreateNode (ModelPart &rModelPart, PointType &rPoint, const unsigned int &rNodeId) |
void | CalculateOrthonormalBase (PointType &rDirectionVectorX, PointType &rDirectionVectorY, PointType &rDirectionVectorZ) |
static unsigned int | GetMaxNodeId (ModelPart &rModelPart) |
static unsigned int | GetMaxElementId (ModelPart &rModelPart) |
Short class definition.
Detail class definition.
typedef NodesContainerType::Pointer Kratos::SpatialBoundingBox::NodesContainerTypePointer |
typedef array_1d<double, 3> Kratos::SpatialBoundingBox::PointType |
|
inline |
Default constructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Copy constructor.
|
inlinevirtual |
Destructor.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
Reimplemented in Kratos::CompoundNosesBoundingBox.
Compute inside holes.
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinevirtual |
Reimplemented in Kratos::SphereBoundingBox, and Kratos::PlaneBoundingBox.
|
inline |
|
inlinevirtual |
Reimplemented in Kratos::CompoundNosesBoundingBox.
|
inline |
|
inlinevirtual |
|
inline |
Compute vertices.
|
inlinevirtual |
Turn back information as a string.
Reimplemented in Kratos::TubeBoundingBox, Kratos::SphereBoundingBox, Kratos::PlaneBoundingBox, Kratos::CylinderBoundingBox, Kratos::CompoundNosesBoundingBox, and Kratos::CircleBoundingBox.
|
inlinevirtual |
Kratos::SpatialBoundingBox::KRATOS_CLASS_POINTER_DEFINITION | ( | SpatialBoundingBox | ) |
Pointer definition of SpatialBoundingBox.
|
inlineprotected |
|
inlinevirtual |
Assignment operator.
|
inlinevirtual |
Print object's data.
Reimplemented in Kratos::TubeBoundingBox, Kratos::SphereBoundingBox, Kratos::PlaneBoundingBox, Kratos::CylinderBoundingBox, Kratos::CompoundNosesBoundingBox, and Kratos::CircleBoundingBox.
|
inlinevirtual |
Print information about this object.
Reimplemented in Kratos::TubeBoundingBox, Kratos::SphereBoundingBox, Kratos::PlaneBoundingBox, Kratos::CylinderBoundingBox, Kratos::CompoundNosesBoundingBox, and Kratos::CircleBoundingBox.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Kratos::PlaneBoundingBox, and Kratos::CompoundNosesBoundingBox.
|
protected |
|
protected |
|
protected |