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
ExaquteSandboxApplication

Classes

class  Kratos::CalculateDivergenceProcess
 Process to compute divergence. More...
 
class  Kratos::WeightedDivergenceCalculationProcess
 Process to compute element time average of the divergence. More...
 
class  Kratos::DragAndMomentUtilities
 Auxiliary utility to compute the drag force and the moment around a given point. More...
 

Type Definitions

 Kratos::CalculateDivergenceProcess::KRATOS_CLASS_POINTER_DEFINITION (CalculateDivergenceProcess)
 Pointer definition of Process. More...
 

Life Cycle

 Kratos::CalculateDivergenceProcess::CalculateDivergenceProcess (ModelPart &rModelPart, Parameters ThisParameters=Parameters(R"({})"))
 Default constructor. More...
 
 Kratos::CalculateDivergenceProcess::~CalculateDivergenceProcess () override=default
 Destructor. More...
 
CalculateDivergenceProcessKratos::CalculateDivergenceProcess::operator= (CalculateDivergenceProcess const &rOther)=delete
 Assignment operator. More...
 

Operations

void Kratos::CalculateDivergenceProcess::ExecuteInitialize () override
 Function initializing the process. More...
 
void Kratos::CalculateDivergenceProcess::ExecuteBeforeOutputStep () override
 Function computing quantities at each time step. More...
 

Input and output

std::string Kratos::CalculateDivergenceProcess::Info () const override
 Turn back information as a string. More...
 
void Kratos::CalculateDivergenceProcess::PrintInfo (std::ostream &rOStream) const override
 Print information about this object. More...
 
void Kratos::CalculateDivergenceProcess::PrintData (std::ostream &rOStream) const override
 Print object's data. More...
 

Input and output

std::istream & Kratos::operator>> (std::istream &rIStream, CalculateDivergenceProcess &rThis)
 input stream function More...
 
std::ostream & Kratos::operator<< (std::ostream &rOStream, const CalculateDivergenceProcess &rThis)
 output stream function More...
 
std::istream & Kratos::operator>> (std::istream &rIStream, WeightedDivergenceCalculationProcess &rThis)
 input stream function More...
 
std::ostream & Kratos::operator<< (std::ostream &rOStream, const WeightedDivergenceCalculationProcess &rThis)
 output stream function More...
 
std::ostream & Kratos::operator<< (std::ostream &rOStream, const DragAndMomentUtilities &rThis)
 output stream function More...
 

Type Definitions

 Kratos::WeightedDivergenceCalculationProcess::KRATOS_CLASS_POINTER_DEFINITION (WeightedDivergenceCalculationProcess)
 Pointer definition of Process. More...
 

Life Cycle

 Kratos::WeightedDivergenceCalculationProcess::WeightedDivergenceCalculationProcess (ModelPart &rModelPart, Parameters ThisParameters=Parameters(R"({})"))
 Default constructor. More...
 
 Kratos::WeightedDivergenceCalculationProcess::~WeightedDivergenceCalculationProcess () override=default
 Destructor. More...
 
WeightedDivergenceCalculationProcessKratos::WeightedDivergenceCalculationProcess::operator= (WeightedDivergenceCalculationProcess const &rOther)=delete
 Assignment operator. More...
 

Operations

void Kratos::WeightedDivergenceCalculationProcess::ExecuteInitialize () override
 Function initializing the statistic utilities. More...
 
void Kratos::WeightedDivergenceCalculationProcess::ExecuteFinalizeSolutionStep () override
 Function updating statistics at each time step. More...
 

Input and output

std::string Kratos::WeightedDivergenceCalculationProcess::Info () const override
 Turn back information as a string. More...
 
void Kratos::WeightedDivergenceCalculationProcess::PrintInfo (std::ostream &rOStream) const override
 Print information about this object. More...
 
void Kratos::WeightedDivergenceCalculationProcess::PrintData (std::ostream &rOStream) const override
 Print object's data. More...
 

Protected Operations

double Kratos::WeightedDivergenceCalculationProcess::ComputeAuxiliaryElementDivergence (Vector &grad_x, Vector &grad_y, Vector &grad_z)
 
double Kratos::WeightedDivergenceCalculationProcess::ComputeAuxiliaryElementVelocitySeminorm (Vector &grad_x, Vector &grad_y, Vector &grad_z)
 
double Kratos::WeightedDivergenceCalculationProcess::ComputeWeightedTimeAverage (const double &old_average, const double &current_value)
 

Detailed Description

Function Documentation

◆ CalculateDivergenceProcess()

Kratos::CalculateDivergenceProcess::CalculateDivergenceProcess ( ModelPart rModelPart,
Parameters  ThisParameters = Parameters(R"({})") 
)

Default constructor.

Construct CalculateDivergenceProcess object

Parameters
rModelPartModel part the process is applied to
ThisParametersThe input parameters

◆ ComputeAuxiliaryElementDivergence()

double Kratos::WeightedDivergenceCalculationProcess::ComputeAuxiliaryElementDivergence ( Vector grad_x,
Vector grad_y,
Vector grad_z 
)
protected

◆ ComputeAuxiliaryElementVelocitySeminorm()

double Kratos::WeightedDivergenceCalculationProcess::ComputeAuxiliaryElementVelocitySeminorm ( Vector grad_x,
Vector grad_y,
Vector grad_z 
)
protected

◆ ComputeWeightedTimeAverage()

double Kratos::WeightedDivergenceCalculationProcess::ComputeWeightedTimeAverage ( const double old_average,
const double current_value 
)
protected

◆ ExecuteBeforeOutputStep()

void Kratos::CalculateDivergenceProcess::ExecuteBeforeOutputStep ( )
overridevirtual

Function computing quantities at each time step.

Reimplemented from Kratos::Process.

◆ ExecuteFinalizeSolutionStep()

void Kratos::WeightedDivergenceCalculationProcess::ExecuteFinalizeSolutionStep ( )
overridevirtual

Function updating statistics at each time step.

Reimplemented from Kratos::Process.

◆ ExecuteInitialize() [1/2]

void Kratos::CalculateDivergenceProcess::ExecuteInitialize ( )
overridevirtual

Function initializing the process.

Reimplemented from Kratos::Process.

◆ ExecuteInitialize() [2/2]

void Kratos::WeightedDivergenceCalculationProcess::ExecuteInitialize ( )
overridevirtual

Function initializing the statistic utilities.

Reimplemented from Kratos::Process.

◆ Info() [1/2]

std::string Kratos::CalculateDivergenceProcess::Info ( ) const
overridevirtual

Turn back information as a string.

Reimplemented from Kratos::Process.

◆ Info() [2/2]

std::string Kratos::WeightedDivergenceCalculationProcess::Info ( ) const
overridevirtual

Turn back information as a string.

Reimplemented from Kratos::Process.

◆ KRATOS_CLASS_POINTER_DEFINITION() [1/2]

Kratos::CalculateDivergenceProcess::KRATOS_CLASS_POINTER_DEFINITION ( CalculateDivergenceProcess  )

Pointer definition of Process.

◆ KRATOS_CLASS_POINTER_DEFINITION() [2/2]

Kratos::WeightedDivergenceCalculationProcess::KRATOS_CLASS_POINTER_DEFINITION ( WeightedDivergenceCalculationProcess  )

Pointer definition of Process.

◆ operator<<() [1/3]

std::ostream & Kratos::operator<< ( std::ostream &  rOStream,
const CalculateDivergenceProcess rThis 
)
inline

output stream function

◆ operator<<() [2/3]

std::ostream & Kratos::operator<< ( std::ostream &  rOStream,
const DragAndMomentUtilities rThis 
)
inline

output stream function

◆ operator<<() [3/3]

std::ostream & Kratos::operator<< ( std::ostream &  rOStream,
const WeightedDivergenceCalculationProcess rThis 
)
inline

output stream function

◆ operator=() [1/2]

CalculateDivergenceProcess& Kratos::CalculateDivergenceProcess::operator= ( CalculateDivergenceProcess const &  rOther)
delete

Assignment operator.

◆ operator=() [2/2]

WeightedDivergenceCalculationProcess& Kratos::WeightedDivergenceCalculationProcess::operator= ( WeightedDivergenceCalculationProcess const &  rOther)
delete

Assignment operator.

◆ operator>>() [1/2]

std::istream& Kratos::operator>> ( std::istream &  rIStream,
CalculateDivergenceProcess rThis 
)
inline

input stream function

◆ operator>>() [2/2]

std::istream& Kratos::operator>> ( std::istream &  rIStream,
WeightedDivergenceCalculationProcess rThis 
)
inline

input stream function

◆ PrintData() [1/2]

void Kratos::CalculateDivergenceProcess::PrintData ( std::ostream &  rOStream) const
overridevirtual

Print object's data.

Reimplemented from Kratos::Process.

◆ PrintData() [2/2]

void Kratos::WeightedDivergenceCalculationProcess::PrintData ( std::ostream &  rOStream) const
overridevirtual

Print object's data.

Reimplemented from Kratos::Process.

◆ PrintInfo() [1/2]

void Kratos::CalculateDivergenceProcess::PrintInfo ( std::ostream &  rOStream) const
overridevirtual

Print information about this object.

Reimplemented from Kratos::Process.

◆ PrintInfo() [2/2]

void Kratos::WeightedDivergenceCalculationProcess::PrintInfo ( std::ostream &  rOStream) const
overridevirtual

Print information about this object.

Reimplemented from Kratos::Process.

◆ WeightedDivergenceCalculationProcess()

Kratos::WeightedDivergenceCalculationProcess::WeightedDivergenceCalculationProcess ( ModelPart rModelPart,
Parameters  ThisParameters = Parameters(R"({})") 
)

Default constructor.

Construct WeightedDivergenceCalculationProcess object

Parameters
rModelPartModel part the weighted process is applied to
ThisParametersThe input parameters

We configure using the following parameters: time_coefficient: Coefficient determining initial time for computing the average, i.e. TIME_START = time_coefficient * TIME_END

◆ ~CalculateDivergenceProcess()

Kratos::CalculateDivergenceProcess::~CalculateDivergenceProcess ( )
overridedefault

Destructor.

◆ ~WeightedDivergenceCalculationProcess()

Kratos::WeightedDivergenceCalculationProcess::~WeightedDivergenceCalculationProcess ( )
overridedefault

Destructor.