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.
|
Auxiliary utility to compute the drag force and the moment around a given point. More...
#include <drag_and_moment_utilities.h>
Public Member Functions | |
Life Cycle | |
DragAndMomentUtilities () | |
Constructor. More... | |
~DragAndMomentUtilities () | |
Destructor. More... | |
Operations | |
std::tuple< array_1d< double, 3 >, array_1d< double, 3 > > | CalculateBodyFittedDragAndMoment (ModelPart &rModelPart, array_1d< double, 3 > rReferencePoint) |
std::tuple< array_1d< double, 3 >, array_1d< double, 3 > > | CalculateEmbeddedDragAndMoment (ModelPart &rModelPart, array_1d< double, 3 > rReferencePoint) |
Input and output | |
std::string | Info () const |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
Type Definitions | |
typedef Geometry< Node > | GeometryType |
typedef IntegrationPoint< 3 > | IntegrationPointType |
typedef std::vector< IntegrationPointType > | IntegrationPointsArrayType |
KRATOS_CLASS_POINTER_DEFINITION (DragAndMomentUtilities) | |
Pointer definition of DragAndMomentUtilities. More... | |
Auxiliary utility to compute the drag force and the moment around a given point.
Add description here.
typedef std::vector<IntegrationPointType> Kratos::DragAndMomentUtilities::IntegrationPointsArrayType |
|
inline |
Constructor.
|
inline |
Destructor.
std::tuple< array_1d< double, 3 >, array_1d< double, 3 > > Kratos::DragAndMomentUtilities::CalculateBodyFittedDragAndMoment | ( | ModelPart & | rModelPart, |
array_1d< double, 3 > | rReferencePoint | ||
) |
Computes the integral of the pressure stress term normal projection over the conditions of the given modelpart and the base moment.
rModelPart | reference to the model part in where the drag is to be computed |
std::tuple< array_1d< double, 3 >, array_1d< double, 3 > > Kratos::DragAndMomentUtilities::CalculateEmbeddedDragAndMoment | ( | ModelPart & | rModelPart, |
array_1d< double, 3 > | rReferencePoint | ||
) |
Computes the integral of the Cauchy stress term normal projection in the given modelpart elements.
rModelPart | reference to the model part in where the drag is to be computed |
std::string Kratos::DragAndMomentUtilities::Info | ( | ) | const |
Turn back information as a string.
Kratos::DragAndMomentUtilities::KRATOS_CLASS_POINTER_DEFINITION | ( | DragAndMomentUtilities | ) |
Pointer definition of DragAndMomentUtilities.
void Kratos::DragAndMomentUtilities::PrintData | ( | std::ostream & | rOStream | ) | const |
Print object's data.
void Kratos::DragAndMomentUtilities::PrintInfo | ( | std::ostream & | rOStream | ) | const |
Print information about this object.