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 | Public Attributes | List of all members
Kratos::SensitivityBuilder::SensitivityVariables< TDataType > Struct Template Reference

Contains the sensitivity design and output variables. More...

#include <sensitivity_builder.h>

Collaboration diagram for Kratos::SensitivityBuilder::SensitivityVariables< TDataType >:

Public Member Functions

 SensitivityVariables (const std::string &rName)
 

Public Attributes

const Variable< TDataType > * pDesignVariable = nullptr
 
const Variable< TDataType > * pOutputVariable = nullptr
 

Detailed Description

template<class TDataType>
struct Kratos::SensitivityBuilder::SensitivityVariables< TDataType >

Contains the sensitivity design and output variables.

The design variable is passed to CalculateSensitivityMatrix() and CalculatePartialSensitivity() when calculating the local sensitivity contributions. The local sensitivities are assembled to the output variable.

Example 1: SensitivityVariables<double> vars("THICKNESS"); vars.pDesignVariable->Name(); // "THICKNESS" vars.pOutputVariable->Name(); // "THICKNESS_SENSITIVITY"

Example 2: SensitivityVariables<double> vars("THICKNESS_SENSITIVITY"); vars.pDesignVariable->Name(); // "THICKNESS_SENSITIVITY" vars.pOutputVariable->Name(); // "THICKNESS_SENSITIVITY"

Constructor & Destructor Documentation

◆ SensitivityVariables()

template<class TDataType >
Kratos::SensitivityBuilder::SensitivityVariables< TDataType >::SensitivityVariables ( const std::string &  rName)
inlineexplicit

Member Data Documentation

◆ pDesignVariable

template<class TDataType >
const Variable<TDataType>* Kratos::SensitivityBuilder::SensitivityVariables< TDataType >::pDesignVariable = nullptr

◆ pOutputVariable

template<class TDataType >
const Variable<TDataType>* Kratos::SensitivityBuilder::SensitivityVariables< TDataType >::pOutputVariable = nullptr

The documentation for this struct was generated from the following file: