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.
List of all members
Kratos::ForceAndTorqueUtils Class Reference

#include <force_and_torque_utils.h>

Collaboration diagram for Kratos::ForceAndTorqueUtils:

Static Public Member Functions

Operations
static array_1d< double, 3 > SumForce (const ModelPart &rModelPart, const Variable< array_1d< double, 3 >> &rForceVariable)
 
static std::array< array_1d< double, 3 >, 2 > SumForceAndTorque (const ModelPart &rModelPart, const Variable< array_1d< double, 3 >> &rForceVariable, const Variable< array_1d< double, 3 >> &rTorqueVariable)
 
static std::array< array_1d< double, 3 >, 2 > ComputeEquivalentForceAndTorque (const ModelPart &rModelPart, const array_1d< double, 3 > &rReferencePoint, const Variable< array_1d< double, 3 >> &rForceVariable, const Variable< array_1d< double, 3 >> &rTorqueVariable)
 

Member Function Documentation

◆ ComputeEquivalentForceAndTorque()

std::array< array_1d< double, 3 >, 2 > Kratos::ForceAndTorqueUtils::ComputeEquivalentForceAndTorque ( const ModelPart rModelPart,
const array_1d< double, 3 > &  rReferencePoint,
const Variable< array_1d< double, 3 >> &  rForceVariable,
const Variable< array_1d< double, 3 >> &  rTorqueVariable 
)
static

Reduce total force and moment exerted by the model part on a reference point

Parameters
rModelPartmodel part containing all nodes to perform the sum on
rReferencePointreference point for computing moments
rForceVariablenodal force variable to be summed up (example: REACTION)
rTorqueVariablenodal torque variable to be summed up (example: MOMENT)

◆ SumForce()

array_1d< double, 3 > Kratos::ForceAndTorqueUtils::SumForce ( const ModelPart rModelPart,
const Variable< array_1d< double, 3 >> &  rForceVariable 
)
static

Sum forces on all nodes

Parameters
rModelPartmodel part containing all nodes to perform the sum on
rForceVariablenodal force variable to be summed up (example: REACTION)
Note
this function is identical to VariableUtils::SumHistoricalVariable} and calls it internally

◆ SumForceAndTorque()

std::array< array_1d< double, 3 >, 2 > Kratos::ForceAndTorqueUtils::SumForceAndTorque ( const ModelPart rModelPart,
const Variable< array_1d< double, 3 >> &  rForceVariable,
const Variable< array_1d< double, 3 >> &  rTorqueVariable 
)
static

Sum forces and torques on all nodes

Parameters
rModelPartmodel part containing all nodes to perform the sum on
rForceVariablenodal force variable to be summed up (example: REACTION)
rTorqueVariablenodal torque variable to be summed up (example: MOMENT)

The documentation for this class was generated from the following files: