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.
Public Member Functions | List of all members
Kratos::FieldUtility Class Reference

#include <field_utility.h>

Inheritance diagram for Kratos::FieldUtility:
Collaboration diagram for Kratos::FieldUtility:

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (FieldUtility)
 
 FieldUtility ()
 Default constructor. More...
 
 FieldUtility (SpaceTimeSet::Pointer p_sts, VectorField< 3 >::Pointer p_vector_field)
 
virtual ~FieldUtility ()
 Destructor. More...
 
void MarkNodesInside (ModelPart &r_model_part, const ProcessInfo &r_current_process_info)
 
double EvaluateFieldAtPoint (const double &time, const array_1d< double, 3 > &coor, RealField::Pointer formula)
 
array_1d< double, 3 > EvaluateFieldAtPoint (const double &time, const array_1d< double, 3 > &coor, VectorField< 3 >::Pointer formula)
 
virtual void ImposeFieldOnNodes (Variable< double > &destination_variable, const double default_value, RealField::Pointer formula, ModelPart &r_model_part, const ProcessInfo &r_current_process_info, const bool recalculate_domain)
 
virtual void ImposeFieldOnNodes (Variable< array_1d< double, 3 > > &destination_variable, const array_1d< double, 3 > default_value, VectorField< 3 >::Pointer formula, ModelPart &r_model_part, const ProcessInfo &r_current_process_info, const bool recalculate_domain)
 
virtual void ImposeFieldOnNodes (ModelPart &r_model_part, const VariablesList &variables_to_be_imposed)
 
virtual void ImposeFieldOnNodes (ModelPart &r_model_part, const Variable< array_1d< double, 3 > > &variable_to_be_imposed)
 
Input and output
virtual std::string Info () const
 Turn back information as a stemplate<class T, std::size_t dim> tring. 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 r_variables

template<class T, std::size_t dim>

RealField::Pointer mFormula
 
SpaceTimeSet::Pointer mDomain
 
VectorField< 3 >::Pointer mpVectorField
 
std::vector< boolmIsInArray
 

Constructor & Destructor Documentation

◆ FieldUtility() [1/2]

Kratos::FieldUtility::FieldUtility ( )
inline

Default constructor.

◆ FieldUtility() [2/2]

Kratos::FieldUtility::FieldUtility ( SpaceTimeSet::Pointer  p_sts,
VectorField< 3 >::Pointer  p_vector_field 
)
inline

◆ ~FieldUtility()

virtual Kratos::FieldUtility::~FieldUtility ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ EvaluateFieldAtPoint() [1/2]

double Kratos::FieldUtility::EvaluateFieldAtPoint ( const double time,
const array_1d< double, 3 > &  coor,
RealField::Pointer  formula 
)
inline

◆ EvaluateFieldAtPoint() [2/2]

array_1d<double, 3> Kratos::FieldUtility::EvaluateFieldAtPoint ( const double time,
const array_1d< double, 3 > &  coor,
VectorField< 3 >::Pointer  formula 
)
inline

◆ ImposeFieldOnNodes() [1/4]

void Kratos::FieldUtility::ImposeFieldOnNodes ( ModelPart r_model_part,
const Variable< array_1d< double, 3 > > &  variable_to_be_imposed 
)
virtual

Reimplemented in Kratos::FluidFieldUtility.

◆ ImposeFieldOnNodes() [2/4]

void Kratos::FieldUtility::ImposeFieldOnNodes ( ModelPart r_model_part,
const VariablesList variables_to_be_imposed 
)
virtual

Reimplemented in Kratos::FluidFieldUtility.

◆ ImposeFieldOnNodes() [3/4]

virtual void Kratos::FieldUtility::ImposeFieldOnNodes ( Variable< array_1d< double, 3 > > &  destination_variable,
const array_1d< double, 3 >  default_value,
VectorField< 3 >::Pointer  formula,
ModelPart r_model_part,
const ProcessInfo r_current_process_info,
const bool  recalculate_domain 
)
inlinevirtual

◆ ImposeFieldOnNodes() [4/4]

virtual void Kratos::FieldUtility::ImposeFieldOnNodes ( Variable< double > &  destination_variable,
const double  default_value,
RealField::Pointer  formula,
ModelPart r_model_part,
const ProcessInfo r_current_process_info,
const bool  recalculate_domain 
)
inlinevirtual

◆ Info()

virtual std::string Kratos::FieldUtility::Info ( ) const
inlinevirtual

Turn back information as a stemplate<class T, std::size_t dim> tring.

Reimplemented in Kratos::FluidFieldUtility.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::FieldUtility::KRATOS_CLASS_POINTER_DEFINITION ( FieldUtility  )

◆ MarkNodesInside()

void Kratos::FieldUtility::MarkNodesInside ( ModelPart r_model_part,
const ProcessInfo r_current_process_info 
)
inline

◆ PrintData()

virtual void Kratos::FieldUtility::PrintData ( std::ostream &  rOStream) const
inlinevirtual

Print object's data.

Reimplemented in Kratos::FluidFieldUtility.

◆ PrintInfo()

virtual void Kratos::FieldUtility::PrintInfo ( std::ostream &  rOStream) const
inlinevirtual

Print information about this object.

Reimplemented in Kratos::FluidFieldUtility.

Member Data Documentation

◆ mDomain

SpaceTimeSet::Pointer Kratos::FieldUtility::mDomain
protected

◆ mFormula

RealField::Pointer Kratos::FieldUtility::mFormula
protected

◆ mIsInArray

std::vector<bool> Kratos::FieldUtility::mIsInArray
protected

◆ mpVectorField

VectorField<3>::Pointer Kratos::FieldUtility::mpVectorField
protected

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