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::VelocityField Class Reference

#include <velocity_field.h>

Inheritance diagram for Kratos::VelocityField:
Collaboration diagram for Kratos::VelocityField:

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (VelocityField)
 
 VelocityField ()
 Default constructor. More...
 
virtual ~VelocityField ()
 Destructor. More...
 
void Evaluate (const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &vector, const int i_thread=0) override
 
void CalculateTimeDerivative (const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &deriv, const int i_thread=0) override
 
void CalculateGradient (const double time, const array_1d< double, 3 > &coor, array_1d< array_1d< double, 3 >, 3 > &gradient, const int i_thread=0) override
 
void CalculateGradient (const double time, const array_1d< double, 3 > &coor, DenseVector< double > &gradient_x, DenseVector< double > &gradient_y, DenseVector< double > &gradient_z, const int i_thread)
 
double CalculateDivergence (const double time, const array_1d< double, 3 > &coor, const int i_thread=0) override
 
void CalculateRotational (const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &rot, const int i_thread=0) override
 
void CalculateLaplacian (const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &lapl, const int i_thread=0) override
 
virtual void CalculateMaterialAcceleration (const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &accel, const int i_thread=0)
 
virtual void CalculateConvectiveDerivative (const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &accel, const int i_thread=0)
 
virtual void CalculateAccelerationFollowingTheParticle (const double time, const array_1d< double, 3 > &coor, array_1d< double, 3 > &accel, const array_1d< double, 3 > &particle_vel, const int i_thread)
 
virtual void UpdateCoordinates (const double time, const array_1d< double, 3 > &coor, const int i_thread=0)
 
virtual void LockCoordinates (const int i_thread=0)
 
virtual void UnlockCoordinates (const int i_thread=0)
 
void Evaluate (const double time, const DenseVector< double > &coor, DenseVector< double > &result, const int i_thread=0) override
 
void CalculateTimeDerivative (const double time, const DenseVector< double > &coor, DenseVector< double > &result, const int i_thread=0) override
 
double CalculateDivergence (const double time, const DenseVector< double > &coor, const int i_thread=0) override
 
void CalculateRotational (const double time, const DenseVector< double > &coor, DenseVector< double > &result, const int i_thread=0) override
 
void CalculateLaplacian (const double time, const DenseVector< double > &coor, DenseVector< double > &result, const int i_thread=0) override
 
virtual void CalculateMaterialAcceleration (const double time, const DenseVector< double > &coor, DenseVector< double > &result, const int i_thread=0)
 
virtual void CalculateConvectiveDerivative (const double time, const DenseVector< double > &coor, DenseVector< double > &result, const int i_thread=0)
 
void ImposeFieldOnNodes (ModelPart &r_model_part, const VariablesList &variables_to_be_imposed) override
 
virtual void ImposeVelocityOnNodes (ModelPart &r_model_part, const Variable< array_1d< double, 3 > > &container_variable)
 
virtual void UpdateCoordinates (const double time, const DenseVector< double > &coor, const int i_thread=0)
 
Input and output
virtual std::string Info () const override
 Turn back information as a stemplate<class T, std::size_t dim> tring. More...
 
virtual void PrintInfo (std::ostream &rOStream) const override
 Print information about this object. More...
 
virtual void PrintData (std::ostream &rOStream) const override
 Print object's data. More...
 
- Public Member Functions inherited from Kratos::VectorField< 3 >
 KRATOS_CLASS_POINTER_DEFINITION (VectorField)
 
 VectorField ()
 Default constructor. More...
 
 VectorField (RealFunction &u_x, RealFunction &u_y, RealFunction &u_z)
 
virtual ~VectorField ()
 Destructor. More...
 
virtual void ResizeVectorsForParallelism (const int n_threads)
 

Protected Member Functions

Protected Access
virtual double U0 (const int i_thread=0)
 
virtual double U1 (const int i_thread=0)
 
virtual double U2 (const int i_thread=0)
 
virtual double U0DT (const int i_thread=0)
 
virtual double U0D0 (const int i_thread=0)
 
virtual double U0D1 (const int i_thread=0)
 
virtual double U0D2 (const int i_thread=0)
 
virtual double U1DT (const int i_thread=0)
 
virtual double U1D0 (const int i_thread=0)
 
virtual double U1D1 (const int i_thread=0)
 
virtual double U1D2 (const int i_thread=0)
 
virtual double U2DT (const int i_thread=0)
 
virtual double U2D0 (const int i_thread=0)
 
virtual double U2D1 (const int i_thread=0)
 
virtual double U2D2 (const int i_thread=0)
 
virtual double U0DTDT (const int i_thread=0)
 
virtual double U0DTD0 (const int i_thread=0)
 
virtual double U0DTD1 (const int i_thread=0)
 
virtual double U0DTD2 (const int i_thread=0)
 
virtual double U0D0D0 (const int i_thread=0)
 
virtual double U0D0D1 (const int i_thread=0)
 
virtual double U0D0D2 (const int i_thread=0)
 
virtual double U0D1D1 (const int i_thread=0)
 
virtual double U0D1D2 (const int i_thread=0)
 
virtual double U0D2D2 (const int i_thread=0)
 
virtual double U1DTDT (const int i_thread=0)
 
virtual double U1DTD0 (const int i_thread=0)
 
virtual double U1DTD1 (const int i_thread=0)
 
virtual double U1DTD2 (const int i_thread=0)
 
virtual double U1D0D0 (const int i_thread=0)
 
virtual double U1D0D1 (const int i_thread=0)
 
virtual double U1D0D2 (const int i_thread=0)
 
virtual double U1D1D1 (const int i_thread=0)
 
virtual double U1D1D2 (const int i_thread=0)
 
virtual double U1D2D2 (const int i_thread=0)
 
virtual double U2DTDT (const int i_thread=0)
 
virtual double U2DTD0 (const int i_thread=0)
 
virtual double U2DTD1 (const int i_thread=0)
 
virtual double U2DTD2 (const int i_thread=0)
 
virtual double U2D0D0 (const int i_thread=0)
 
virtual double U2D0D1 (const int i_thread=0)
 
virtual double U2D0D2 (const int i_thread=0)
 
virtual double U2D1D1 (const int i_thread=0)
 
virtual double U2D1D2 (const int i_thread=0)
 
virtual double U2D2D2 (const int i_thread=0)
 

Constructor & Destructor Documentation

◆ VelocityField()

Kratos::VelocityField::VelocityField ( )
inline

Default constructor.

◆ ~VelocityField()

virtual Kratos::VelocityField::~VelocityField ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ CalculateAccelerationFollowingTheParticle()

void Kratos::VelocityField::CalculateAccelerationFollowingTheParticle ( const double  time,
const array_1d< double, 3 > &  coor,
array_1d< double, 3 > &  accel,
const array_1d< double, 3 > &  particle_vel,
const int  i_thread 
)
virtual

◆ CalculateConvectiveDerivative() [1/2]

void Kratos::VelocityField::CalculateConvectiveDerivative ( const double  time,
const array_1d< double, 3 > &  coor,
array_1d< double, 3 > &  accel,
const int  i_thread = 0 
)
virtual

◆ CalculateConvectiveDerivative() [2/2]

void Kratos::VelocityField::CalculateConvectiveDerivative ( const double  time,
const DenseVector< double > &  coor,
DenseVector< double > &  result,
const int  i_thread = 0 
)
virtual

◆ CalculateDivergence() [1/2]

double Kratos::VelocityField::CalculateDivergence ( const double  time,
const array_1d< double, 3 > &  coor,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ CalculateDivergence() [2/2]

double Kratos::VelocityField::CalculateDivergence ( const double  time,
const DenseVector< double > &  coor,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ CalculateGradient() [1/2]

void Kratos::VelocityField::CalculateGradient ( const double  time,
const array_1d< double, 3 > &  coor,
array_1d< array_1d< double, 3 >, 3 > &  gradient,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ CalculateGradient() [2/2]

void Kratos::VelocityField::CalculateGradient ( const double  time,
const array_1d< double, 3 > &  coor,
DenseVector< double > &  gradient_x,
DenseVector< double > &  gradient_y,
DenseVector< double > &  gradient_z,
const int  i_thread 
)

◆ CalculateLaplacian() [1/2]

void Kratos::VelocityField::CalculateLaplacian ( const double  time,
const array_1d< double, 3 > &  coor,
array_1d< double, 3 > &  lapl,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ CalculateLaplacian() [2/2]

void Kratos::VelocityField::CalculateLaplacian ( const double  time,
const DenseVector< double > &  coor,
DenseVector< double > &  result,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ CalculateMaterialAcceleration() [1/2]

void Kratos::VelocityField::CalculateMaterialAcceleration ( const double  time,
const array_1d< double, 3 > &  coor,
array_1d< double, 3 > &  accel,
const int  i_thread = 0 
)
virtual

◆ CalculateMaterialAcceleration() [2/2]

void Kratos::VelocityField::CalculateMaterialAcceleration ( const double  time,
const DenseVector< double > &  coor,
DenseVector< double > &  result,
const int  i_thread = 0 
)
virtual

◆ CalculateRotational() [1/2]

void Kratos::VelocityField::CalculateRotational ( const double  time,
const array_1d< double, 3 > &  coor,
array_1d< double, 3 > &  rot,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ CalculateRotational() [2/2]

void Kratos::VelocityField::CalculateRotational ( const double  time,
const DenseVector< double > &  coor,
DenseVector< double > &  result,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ CalculateTimeDerivative() [1/2]

void Kratos::VelocityField::CalculateTimeDerivative ( const double  time,
const array_1d< double, 3 > &  coor,
array_1d< double, 3 > &  deriv,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ CalculateTimeDerivative() [2/2]

void Kratos::VelocityField::CalculateTimeDerivative ( const double  time,
const DenseVector< double > &  coor,
DenseVector< double > &  result,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ Evaluate() [1/2]

void Kratos::VelocityField::Evaluate ( const double  time,
const array_1d< double, 3 > &  coor,
array_1d< double, 3 > &  vector,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ Evaluate() [2/2]

void Kratos::VelocityField::Evaluate ( const double  time,
const DenseVector< double > &  coor,
DenseVector< double > &  result,
const int  i_thread = 0 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ ImposeFieldOnNodes()

void Kratos::VelocityField::ImposeFieldOnNodes ( ModelPart r_model_part,
const VariablesList variables_to_be_imposed 
)
overridevirtual

Reimplemented from Kratos::VectorField< 3 >.

◆ ImposeVelocityOnNodes()

void Kratos::VelocityField::ImposeVelocityOnNodes ( ModelPart r_model_part,
const Variable< array_1d< double, 3 > > &  container_variable 
)
virtual

◆ Info()

virtual std::string Kratos::VelocityField::Info ( ) const
inlineoverridevirtual

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::VelocityField::KRATOS_CLASS_POINTER_DEFINITION ( VelocityField  )

◆ LockCoordinates()

virtual void Kratos::VelocityField::LockCoordinates ( const int  i_thread = 0)
inlinevirtual

◆ PrintData()

virtual void Kratos::VelocityField::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

◆ PrintInfo()

virtual void Kratos::VelocityField::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

◆ U0()

virtual double Kratos::VelocityField::U0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D0()

virtual double Kratos::VelocityField::U0D0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D0D0()

virtual double Kratos::VelocityField::U0D0D0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D0D1()

virtual double Kratos::VelocityField::U0D0D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D0D2()

virtual double Kratos::VelocityField::U0D0D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D1()

virtual double Kratos::VelocityField::U0D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D1D1()

virtual double Kratos::VelocityField::U0D1D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D1D2()

virtual double Kratos::VelocityField::U0D1D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D2()

virtual double Kratos::VelocityField::U0D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0D2D2()

virtual double Kratos::VelocityField::U0D2D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0DT()

virtual double Kratos::VelocityField::U0DT ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0DTD0()

virtual double Kratos::VelocityField::U0DTD0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0DTD1()

virtual double Kratos::VelocityField::U0DTD1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0DTD2()

virtual double Kratos::VelocityField::U0DTD2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U0DTDT()

virtual double Kratos::VelocityField::U0DTDT ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1()

virtual double Kratos::VelocityField::U1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D0()

virtual double Kratos::VelocityField::U1D0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D0D0()

virtual double Kratos::VelocityField::U1D0D0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D0D1()

virtual double Kratos::VelocityField::U1D0D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D0D2()

virtual double Kratos::VelocityField::U1D0D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D1()

virtual double Kratos::VelocityField::U1D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D1D1()

virtual double Kratos::VelocityField::U1D1D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D1D2()

virtual double Kratos::VelocityField::U1D1D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D2()

virtual double Kratos::VelocityField::U1D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1D2D2()

virtual double Kratos::VelocityField::U1D2D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1DT()

virtual double Kratos::VelocityField::U1DT ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1DTD0()

virtual double Kratos::VelocityField::U1DTD0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1DTD1()

virtual double Kratos::VelocityField::U1DTD1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1DTD2()

virtual double Kratos::VelocityField::U1DTD2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U1DTDT()

virtual double Kratos::VelocityField::U1DTDT ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2()

virtual double Kratos::VelocityField::U2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D0()

virtual double Kratos::VelocityField::U2D0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D0D0()

virtual double Kratos::VelocityField::U2D0D0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D0D1()

virtual double Kratos::VelocityField::U2D0D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D0D2()

virtual double Kratos::VelocityField::U2D0D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D1()

virtual double Kratos::VelocityField::U2D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D1D1()

virtual double Kratos::VelocityField::U2D1D1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D1D2()

virtual double Kratos::VelocityField::U2D1D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D2()

virtual double Kratos::VelocityField::U2D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2D2D2()

virtual double Kratos::VelocityField::U2D2D2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2DT()

virtual double Kratos::VelocityField::U2DT ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2DTD0()

virtual double Kratos::VelocityField::U2DTD0 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2DTD1()

virtual double Kratos::VelocityField::U2DTD1 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2DTD2()

virtual double Kratos::VelocityField::U2DTD2 ( const int  i_thread = 0)
inlineprotectedvirtual

◆ U2DTDT()

virtual double Kratos::VelocityField::U2DTDT ( const int  i_thread = 0)
inlineprotectedvirtual

◆ UnlockCoordinates()

virtual void Kratos::VelocityField::UnlockCoordinates ( const int  i_thread = 0)
inlinevirtual

◆ UpdateCoordinates() [1/2]

virtual void Kratos::VelocityField::UpdateCoordinates ( const double  time,
const array_1d< double, 3 > &  coor,
const int  i_thread = 0 
)
inlinevirtual

◆ UpdateCoordinates() [2/2]

virtual void Kratos::VelocityField::UpdateCoordinates ( const double  time,
const DenseVector< double > &  coor,
const int  i_thread = 0 
)
inlinevirtual

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