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.
Namespaces | Typedefs | Functions
fluid_adjoint_test_utilities.cpp File Reference
#include "includes/dof.h"
#include "containers/model.h"
#include "includes/checks.h"
#include "includes/model_part.h"
#include "custom_utilities/fluid_test_utilities.h"
#include "fluid_adjoint_test_utilities.h"
Include dependency graph for fluid_adjoint_test_utilities.cpp:

Namespaces

 Kratos
 REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
 
 Kratos::FluidAdjointTestUtilitiesHelper
 

Typedefs

using Kratos::FluidAdjointTestUtilitiesHelper::IndexType = std::size_t
 
using Kratos::FluidAdjointTestUtilitiesHelper::NodeType = ModelPart::NodeType
 

Functions

template<class TDataType >
std::function< double &(NodeType &, const IndexType)> Kratos::FluidAdjointTestUtilitiesHelper::GetPerturbationMethod (const Variable< TDataType > &rPerturbationVariable)
 
template<>
std::function< double &(ModelPart::NodeType &, const IndexType)> Kratos::FluidAdjointTestUtilitiesHelper::GetPerturbationMethod (const Variable< double > &rPerturbationVariable)
 
template<>
std::function< double &(ModelPart::NodeType &, const IndexType)> Kratos::FluidAdjointTestUtilitiesHelper::GetPerturbationMethod (const Variable< array_1d< double, 3 >> &rPerturbationVariable)
 
template<class TDataType >
IndexType Kratos::FluidAdjointTestUtilitiesHelper::GetVariableDimension (const Variable< TDataType > &rVariable, const ProcessInfo &rProcessInfo)
 
template<>
IndexType Kratos::FluidAdjointTestUtilitiesHelper::GetVariableDimension (const Variable< double > &rVariable, const ProcessInfo &rProcessInfo)
 
template<>
IndexType Kratos::FluidAdjointTestUtilitiesHelper::GetVariableDimension (const Variable< array_1d< double, 3 >> &rVariable, const ProcessInfo &rProcessInfo)
 
template<class TEntityType >
void Kratos::FluidAdjointTestUtilitiesHelper::CalculateResidual (Vector &residual, TEntityType &rEntity, const ProcessInfo &rProcessInfo)
 
template<class TContainerType , class TDataType >
void Kratos::FluidAdjointTestUtilitiesHelper::RunAdjointEntityDerivativesTest (ModelPart &rPrimalModelPart, ModelPart &rAdjointModelPart, const std::function< void(ModelPart &)> &rUpdateModelPart, const Variable< TDataType > &rVariable, const std::function< void(Matrix &, typename TContainerType::data_type &, const ProcessInfo &)> &rCalculateElementResidualDerivatives, const IndexType EquationOffset, const IndexType DerivativeOffset, const double Delta, const double Tolerance)