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.
Classes | Public Types | Public Member Functions | List of all members
Kratos::CustomFunctionsCalculator< TDim > Class Template Reference

#include <custom_functions.h>

Collaboration diagram for Kratos::CustomFunctionsCalculator< TDim >:

Public Types

typedef ModelPart::ElementsContainerType::iterator ElementIterator
 
typedef ModelPart::NodesContainerType::iterator NodeIterator
 
typedef ModelPart::NodesContainerType NodesArrayType
 

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (CustomFunctionsCalculator)
 
 CustomFunctionsCalculator ()
 
virtual ~CustomFunctionsCalculator ()
 Calculator. More...
 
void CalculatePressureGradient (ModelPart &r_model_part)
 Default calculator. More...
 
bool AssessStationarity (ModelPart &r_model_part, const double &tol)
 
double CalculateDomainVolume (ModelPart &r_fluid_model_part)
 
void CalculateTotalHydrodynamicForceOnParticles (ModelPart &r_dem_model_part, array_1d< double, 3 > &force)
 
void CalculateTotalHydrodynamicForceOnFluid (ModelPart &r_fluid_model_part, array_1d< double, 3 > &instantaneous_force, array_1d< double, 3 > &mean_force)
 
double CalculateGlobalFluidVolume (ModelPart &r_fluid_model_part)
 
template<class matrix_T >
double determinant (boost::numeric::ublas::matrix_expression< matrix_T > const &mat_r)
 
const DenseMatrix< doubleInverse (const DenseMatrix< double > &m)
 
void CopyValuesFromFirstToSecond (ModelPart &r_model_part, const Variable< double > &origin_variable, const Variable< double > &destination_variable)
 
void CopyValuesFromFirstToSecond (ModelPart &r_model_part, const Variable< array_1d< double, 3 >> &origin_variable, const Variable< array_1d< double, 3 >> &destination_variable)
 
void SetValueOfAllNotes (ModelPart &r_model_part, const double &value, const Variable< double > &destination_variable)
 
void SetValueOfAllNotes (ModelPart &r_model_part, const array_1d< double, 3 > &value, const Variable< array_1d< double, 3 >> &destination_variable)
 

Member Typedef Documentation

◆ ElementIterator

◆ NodeIterator

◆ NodesArrayType

Constructor & Destructor Documentation

◆ CustomFunctionsCalculator()

template<std::size_t TDim>
Kratos::CustomFunctionsCalculator< TDim >::CustomFunctionsCalculator ( )
inline

◆ ~CustomFunctionsCalculator()

template<std::size_t TDim>
virtual Kratos::CustomFunctionsCalculator< TDim >::~CustomFunctionsCalculator ( )
inlinevirtual

Calculator.

Member Function Documentation

◆ AssessStationarity()

template<std::size_t TDim>
bool Kratos::CustomFunctionsCalculator< TDim >::AssessStationarity ( ModelPart r_model_part,
const double tol 
)
inline

◆ CalculateDomainVolume()

template<std::size_t TDim>
double Kratos::CustomFunctionsCalculator< TDim >::CalculateDomainVolume ( ModelPart r_fluid_model_part)
inline

◆ CalculateGlobalFluidVolume()

template<std::size_t TDim>
double Kratos::CustomFunctionsCalculator< TDim >::CalculateGlobalFluidVolume ( ModelPart r_fluid_model_part)
inline

◆ CalculatePressureGradient()

template<std::size_t TDim>
void Kratos::CustomFunctionsCalculator< TDim >::CalculatePressureGradient ( ModelPart r_model_part)
inline

Default calculator.

◆ CalculateTotalHydrodynamicForceOnFluid()

template<std::size_t TDim>
void Kratos::CustomFunctionsCalculator< TDim >::CalculateTotalHydrodynamicForceOnFluid ( ModelPart r_fluid_model_part,
array_1d< double, 3 > &  instantaneous_force,
array_1d< double, 3 > &  mean_force 
)
inline

◆ CalculateTotalHydrodynamicForceOnParticles()

template<std::size_t TDim>
void Kratos::CustomFunctionsCalculator< TDim >::CalculateTotalHydrodynamicForceOnParticles ( ModelPart r_dem_model_part,
array_1d< double, 3 > &  force 
)
inline

◆ CopyValuesFromFirstToSecond() [1/2]

template<std::size_t TDim>
void Kratos::CustomFunctionsCalculator< TDim >::CopyValuesFromFirstToSecond ( ModelPart r_model_part,
const Variable< array_1d< double, 3 >> &  origin_variable,
const Variable< array_1d< double, 3 >> &  destination_variable 
)
inline

◆ CopyValuesFromFirstToSecond() [2/2]

template<std::size_t TDim>
void Kratos::CustomFunctionsCalculator< TDim >::CopyValuesFromFirstToSecond ( ModelPart r_model_part,
const Variable< double > &  origin_variable,
const Variable< double > &  destination_variable 
)
inline

◆ determinant()

template<std::size_t TDim>
template<class matrix_T >
double Kratos::CustomFunctionsCalculator< TDim >::determinant ( boost::numeric::ublas::matrix_expression< matrix_T > const &  mat_r)
inline

◆ Inverse()

template<std::size_t TDim>
const DenseMatrix<double> Kratos::CustomFunctionsCalculator< TDim >::Inverse ( const DenseMatrix< double > &  m)
inline

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<std::size_t TDim>
Kratos::CustomFunctionsCalculator< TDim >::KRATOS_CLASS_POINTER_DEFINITION ( CustomFunctionsCalculator< TDim >  )

◆ SetValueOfAllNotes() [1/2]

template<std::size_t TDim>
void Kratos::CustomFunctionsCalculator< TDim >::SetValueOfAllNotes ( ModelPart r_model_part,
const array_1d< double, 3 > &  value,
const Variable< array_1d< double, 3 >> &  destination_variable 
)
inline

◆ SetValueOfAllNotes() [2/2]

template<std::size_t TDim>
void Kratos::CustomFunctionsCalculator< TDim >::SetValueOfAllNotes ( ModelPart r_model_part,
const double value,
const Variable< double > &  destination_variable 
)
inline

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