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

#include <gradual_variable_interpolation_utility.h>

Collaboration diagram for Kratos::GradualVariableInterpolationUtility:

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (GradualVariableInterpolationUtility)
 

Static Public Member Functions

static void InitializeInterpolationAndConstraints (ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart, std::vector< std::string > &rInterpolationVariablesList, double AlphaRampUpIncrement, int DomainSize, bool ConstrainVariables)
 Initializes interpolation and applies constraints to the given variables. More...
 
static void UpdateSolutionStepVariables (ModelPart &rDestinationModelPart, std::vector< std::string > &rInterpolationVariablesList, double &rAlpha, double &rOldAlpha, bool ConstrainVariables)
 Updates the solution step variables. More...
 

Member Function Documentation

◆ InitializeInterpolationAndConstraints()

void Kratos::GradualVariableInterpolationUtility::InitializeInterpolationAndConstraints ( ModelPart rOriginModelPart,
ModelPart rDestinationModelPart,
std::vector< std::string > &  rInterpolationVariablesList,
double  AlphaRampUpIncrement,
int  DomainSize,
bool  ConstrainVariables 
)
static

Initializes interpolation and applies constraints to the given variables.

Parameters
rOriginModelPartThe original model part
rDestinationModelPartThe destination model part
rInterpolationVariablesListList of variables to be interpolated
AlphaRampUpIncrementAlpha increment for the ramp-up
DomainSizeSize of the domain (2D or 3D)
ConstrainVariablesFlag to apply constraints to the variables

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::GradualVariableInterpolationUtility::KRATOS_CLASS_POINTER_DEFINITION ( GradualVariableInterpolationUtility  )

◆ UpdateSolutionStepVariables()

void Kratos::GradualVariableInterpolationUtility::UpdateSolutionStepVariables ( ModelPart rDestinationModelPart,
std::vector< std::string > &  rInterpolationVariablesList,
double rAlpha,
double rOldAlpha,
bool  ConstrainVariables 
)
static

Updates the solution step variables.

Parameters
rDestinationModelPartThe destination model part
rInterpolationVariablesListList of variables to be interpolated
rAlphaAlpha value for updating the variables
rOldAlphaPrevious alpha value
ConstrainVariablesFlag to apply constraints to the variables

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