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.
Functions
Kratos::ConvectionDiffusionReactionStabilizationUtilities Namespace Reference

Functions

double CalculatePsiOne (const double VelocityNorm, const double Tau, const double DynamicReaction)
 
double CalculatePsiTwo (const double DynamicReaction, const double Tau, const double ElementLength)
 
template<unsigned int TDim>
void CalculateStabilizationTau (double &rTau, double &rElementLength, const array_1d< double, TDim > &rVelocity, const Matrix &rContravariantMetricTensor, const double Reaction, const double EffectiveKinematicViscosity, const double Alpha, const double Gamma, const double DeltaTime, const double DynamicTau)
 
double CalculateStabilizationTau (const double ElementLength, const double Velocity, const double Reaction, const double EffectiveKinematicViscosity, const double Alpha, const double Gamma, const double DeltaTime, const double DynamicTau)
 
void CalculateCrossWindDiffusionParameters (double &rChi, double &rStreamLineDiffusionCoeff, double &rCrossWindDiffusionCoeff, const double VelocityMagnitude, const double Tau, const double EffectiveKinematicViscosity, const double Reaction, const double Alpha, const double Gamma, const double DeltaTime, const double ElementLength, const double DynamicTau)
 
template<unsigned int TSize>
void CalculateDiscreteUpwindOperator (double &rScalarCoeff, BoundedMatrix< double, TSize, TSize > &rDiffusionMatrix, const BoundedMatrix< double, TSize, TSize > &rInputMatrix)
 
double CalculatePositivityPreservingMatrix (const Matrix &rInputMatrix)
 
void AddMassMatrixSUPGStabilizationGaussPointContributions (Matrix &rMassMatrix, const double AbsoluteReactionTerm, const double Tau, const Vector &rVelocityConvectiveTerms, const double GaussWeight, const Vector &rGaussShapeFunctions)
 
void AddDampingMatrixSUPGStabilizationGaussPointContributions (Matrix &rDampingMatrix, const double ReactionTerm, const double Tau, const Vector &rVelocityConvectiveTerms, const double GaussWeight, const Vector &rGaussShapeFunctions)
 
void AddSourceTermWithSUPGStabilizationGaussPointContributions (Vector &rRightHandSideVector, const double SourceTerm, const double AbsoluteReactionTerm, const double Tau, const Vector &rVelocityConvectiveTerms, const double GaussWeight, const Vector &rGaussShapeFunctions)
 

Function Documentation

◆ AddDampingMatrixSUPGStabilizationGaussPointContributions()

void Kratos::ConvectionDiffusionReactionStabilizationUtilities::AddDampingMatrixSUPGStabilizationGaussPointContributions ( Matrix rDampingMatrix,
const double  ReactionTerm,
const double  Tau,
const Vector rVelocityConvectiveTerms,
const double  GaussWeight,
const Vector rGaussShapeFunctions 
)
inline

◆ AddMassMatrixSUPGStabilizationGaussPointContributions()

void Kratos::ConvectionDiffusionReactionStabilizationUtilities::AddMassMatrixSUPGStabilizationGaussPointContributions ( Matrix rMassMatrix,
const double  AbsoluteReactionTerm,
const double  Tau,
const Vector rVelocityConvectiveTerms,
const double  GaussWeight,
const Vector rGaussShapeFunctions 
)
inline

◆ AddSourceTermWithSUPGStabilizationGaussPointContributions()

void Kratos::ConvectionDiffusionReactionStabilizationUtilities::AddSourceTermWithSUPGStabilizationGaussPointContributions ( Vector rRightHandSideVector,
const double  SourceTerm,
const double  AbsoluteReactionTerm,
const double  Tau,
const Vector rVelocityConvectiveTerms,
const double  GaussWeight,
const Vector rGaussShapeFunctions 
)
inline

◆ CalculateCrossWindDiffusionParameters()

void Kratos::ConvectionDiffusionReactionStabilizationUtilities::CalculateCrossWindDiffusionParameters ( double rChi,
double rStreamLineDiffusionCoeff,
double rCrossWindDiffusionCoeff,
const double  VelocityMagnitude,
const double  Tau,
const double  EffectiveKinematicViscosity,
const double  Reaction,
const double  Alpha,
const double  Gamma,
const double  DeltaTime,
const double  ElementLength,
const double  DynamicTau 
)
inline

◆ CalculateDiscreteUpwindOperator()

template<unsigned int TSize>
void Kratos::ConvectionDiffusionReactionStabilizationUtilities::CalculateDiscreteUpwindOperator ( double rScalarCoeff,
BoundedMatrix< double, TSize, TSize > &  rDiffusionMatrix,
const BoundedMatrix< double, TSize, TSize > &  rInputMatrix 
)
inline

◆ CalculatePositivityPreservingMatrix()

double Kratos::ConvectionDiffusionReactionStabilizationUtilities::CalculatePositivityPreservingMatrix ( const Matrix rInputMatrix)
inline

◆ CalculatePsiOne()

double Kratos::ConvectionDiffusionReactionStabilizationUtilities::CalculatePsiOne ( const double  VelocityNorm,
const double  Tau,
const double  DynamicReaction 
)
inline

◆ CalculatePsiTwo()

double Kratos::ConvectionDiffusionReactionStabilizationUtilities::CalculatePsiTwo ( const double  DynamicReaction,
const double  Tau,
const double  ElementLength 
)
inline

◆ CalculateStabilizationTau() [1/2]

double Kratos::ConvectionDiffusionReactionStabilizationUtilities::CalculateStabilizationTau ( const double  ElementLength,
const double  Velocity,
const double  Reaction,
const double  EffectiveKinematicViscosity,
const double  Alpha,
const double  Gamma,
const double  DeltaTime,
const double  DynamicTau 
)
inline

◆ CalculateStabilizationTau() [2/2]

template<unsigned int TDim>
void Kratos::ConvectionDiffusionReactionStabilizationUtilities::CalculateStabilizationTau ( double rTau,
double rElementLength,
const array_1d< double, TDim > &  rVelocity,
const Matrix rContravariantMetricTensor,
const double  Reaction,
const double  EffectiveKinematicViscosity,
const double  Alpha,
const double  Gamma,
const double  DeltaTime,
const double  DynamicTau 
)