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 Types | Public Member Functions | Friends | List of all members
Kratos::SaturatedBelowPhreaticLevelLaw Class Reference

This class defines The Van-Genuchten Soil Water Characteristic Curve (retention curve) More...

#include <saturated_below_phreatic_level_law.h>

Inheritance diagram for Kratos::SaturatedBelowPhreaticLevelLaw:
Collaboration diagram for Kratos::SaturatedBelowPhreaticLevelLaw:

Public Types

using BaseType = RetentionLaw
 The base class RetentionLaw type definition. More...
 
using GeometryType = Geometry< Node >
 
using SizeType = std::size_t
 The size type definition. More...
 
- Public Types inherited from Kratos::RetentionLaw
using ProcessInfoType = ProcessInfo
 
using SizeType = std::size_t
 
using GeometryType = Geometry< Node >
 

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (SaturatedBelowPhreaticLevelLaw)
 Counted pointer of SaturatedBelowPhreaticLevelLaw. More...
 
 SaturatedBelowPhreaticLevelLaw ()
 
RetentionLaw::Pointer Clone () const override
 Clone function (has to be implemented by any derived class) More...
 
 SaturatedBelowPhreaticLevelLaw (const SaturatedBelowPhreaticLevelLaw &rOther)
 
 ~SaturatedBelowPhreaticLevelLaw () override
 
void InitializeMaterial (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const Vector &rShapeFunctionsValues) override
 
void Initialize (Parameters &rParameters) override
 
void InitializeSolutionStep (Parameters &rParameters) override
 
double CalculateSaturation (Parameters &rParameters) override
 
double CalculateEffectiveSaturation (Parameters &rParameters) override
 
double CalculateDerivativeOfSaturation (Parameters &rParameters) override
 
double CalculateRelativePermeability (Parameters &rParameters) override
 
double CalculateBishopCoefficient (Parameters &rParameters) override
 
void Finalize (Parameters &rParameters) override
 
void FinalizeSolutionStep (Parameters &rParameters) override
 
doubleCalculateValue (RetentionLaw::Parameters &rParameterValues, const Variable< double > &rThisVariable, double &rValue) override
 It calculates the value of a specified variable (double case) More...
 
int Check (const Properties &rMaterialProperties, const ProcessInfo &rCurrentProcessInfo) override
 This function provides the place to perform checks on the completeness of the input. More...
 
- Public Member Functions inherited from Kratos::RetentionLaw
 KRATOS_CLASS_POINTER_DEFINITION (RetentionLaw)
 
 RetentionLaw ()=default
 
virtual ~RetentionLaw ()=default
 
virtual void ResetMaterial (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const Vector &rShapeFunctionsValues)
 
virtual std::string Info () const
 Turn back information as a string. 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...
 

Friends

class Serializer
 

Additional Inherited Members

- Static Public Member Functions inherited from Kratos::RetentionLaw
static bool HasSameType (const RetentionLaw &rLHS, const RetentionLaw &rRHS)
 This method is used to check that two Retention Laws are the same type (references) More...
 
static bool HasSameType (const RetentionLaw *rLHS, const RetentionLaw *rRHS)
 This method is used to check that tow Retention Laws are the same type (pointers) More...
 

Detailed Description

This class defines The Van-Genuchten Soil Water Characteristic Curve (retention curve)

This class derives from the base retention law

Author
Vahid Galavi

Member Typedef Documentation

◆ BaseType

The base class RetentionLaw type definition.

◆ GeometryType

◆ SizeType

The size type definition.

Constructor & Destructor Documentation

◆ SaturatedBelowPhreaticLevelLaw() [1/2]

Kratos::SaturatedBelowPhreaticLevelLaw::SaturatedBelowPhreaticLevelLaw ( )

◆ SaturatedBelowPhreaticLevelLaw() [2/2]

Kratos::SaturatedBelowPhreaticLevelLaw::SaturatedBelowPhreaticLevelLaw ( const SaturatedBelowPhreaticLevelLaw rOther)

◆ ~SaturatedBelowPhreaticLevelLaw()

Kratos::SaturatedBelowPhreaticLevelLaw::~SaturatedBelowPhreaticLevelLaw ( )
override

Member Function Documentation

◆ CalculateBishopCoefficient()

double Kratos::SaturatedBelowPhreaticLevelLaw::CalculateBishopCoefficient ( Parameters rParameters)
overridevirtual

Implements Kratos::RetentionLaw.

◆ CalculateDerivativeOfSaturation()

double Kratos::SaturatedBelowPhreaticLevelLaw::CalculateDerivativeOfSaturation ( Parameters rParameters)
overridevirtual

Implements Kratos::RetentionLaw.

◆ CalculateEffectiveSaturation()

double Kratos::SaturatedBelowPhreaticLevelLaw::CalculateEffectiveSaturation ( Parameters rParameters)
overridevirtual

Implements Kratos::RetentionLaw.

◆ CalculateRelativePermeability()

double Kratos::SaturatedBelowPhreaticLevelLaw::CalculateRelativePermeability ( Parameters rParameters)
overridevirtual

Implements Kratos::RetentionLaw.

◆ CalculateSaturation()

double Kratos::SaturatedBelowPhreaticLevelLaw::CalculateSaturation ( Parameters rParameters)
overridevirtual

Implements Kratos::RetentionLaw.

◆ CalculateValue()

double & Kratos::SaturatedBelowPhreaticLevelLaw::CalculateValue ( RetentionLaw::Parameters rParameterValues,
const Variable< double > &  rThisVariable,
double rValue 
)
overridevirtual

It calculates the value of a specified variable (double case)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
rValue output: the value of the specified variable

Implements Kratos::RetentionLaw.

◆ Check()

int Kratos::SaturatedBelowPhreaticLevelLaw::Check ( const Properties rMaterialProperties,
const ProcessInfo rCurrentProcessInfo 
)
overridevirtual

This function provides the place to perform checks on the completeness of the input.

It is designed to be called only once (or anyway, not often) typically at the beginning of the calculations, so to verify that nothing is missing from the input or that no common error is found.

Parameters
rMaterialPropertiesThe properties of the material
rElementGeometryThe geometry of the element
rCurrentProcessInfoThe current process info instance
Returns
0 if OK, 1 otherwise

Implements Kratos::RetentionLaw.

◆ Clone()

RetentionLaw::Pointer Kratos::SaturatedBelowPhreaticLevelLaw::Clone ( ) const
overridevirtual

Clone function (has to be implemented by any derived class)

Returns
a pointer to a new instance of this retention law
Note
implementation scheme: RetentionLaw::Pointer p_clone(new RetentionLaw()); return p_clone;

Implements Kratos::RetentionLaw.

◆ Finalize()

void Kratos::SaturatedBelowPhreaticLevelLaw::Finalize ( Parameters rParameters)
overridevirtual

Finalize the material response in terms of Cauchy stresses

See also
Parameters

Reimplemented from Kratos::RetentionLaw.

◆ FinalizeSolutionStep()

void Kratos::SaturatedBelowPhreaticLevelLaw::FinalizeSolutionStep ( Parameters rParameters)
overridevirtual

to be called at the end of each solution step (e.g. from Element::FinalizeSolutionStep)

Reimplemented from Kratos::RetentionLaw.

◆ Initialize()

void Kratos::SaturatedBelowPhreaticLevelLaw::Initialize ( Parameters rParameters)
overridevirtual

Reimplemented from Kratos::RetentionLaw.

◆ InitializeMaterial()

void Kratos::SaturatedBelowPhreaticLevelLaw::InitializeMaterial ( const Properties rMaterialProperties,
const GeometryType rElementGeometry,
const Vector rShapeFunctionsValues 
)
overridevirtual

This is to be called at the very beginning of the calculation (e.g. from InitializeElement) in order to initialize all relevant attributes of the retention law

Parameters
rMaterialPropertiesthe Properties instance of the current element
rElementGeometrythe geometry of the current element
rCurrentProcessInfoprocess info

Reimplemented from Kratos::RetentionLaw.

◆ InitializeSolutionStep()

void Kratos::SaturatedBelowPhreaticLevelLaw::InitializeSolutionStep ( Parameters rParameters)
overridevirtual

to be called at the beginning of each solution step (e.g. from Element::InitializeSolutionStep)

Reimplemented from Kratos::RetentionLaw.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::SaturatedBelowPhreaticLevelLaw::KRATOS_CLASS_POINTER_DEFINITION ( SaturatedBelowPhreaticLevelLaw  )

Counted pointer of SaturatedBelowPhreaticLevelLaw.

Friends And Related Function Documentation

◆ Serializer

friend class Serializer
friend

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