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.
List of all members
Kratos::AdjointLiftJumpCoordinatesResponseFunction Class Reference

AdjointLiftJumpCoordinatesResponseFunction. More...

#include <adjoint_lift_response_function_coordinates_jump.h>

Inheritance diagram for Kratos::AdjointLiftJumpCoordinatesResponseFunction:
Collaboration diagram for Kratos::AdjointLiftJumpCoordinatesResponseFunction:

Public Member Functions

Pointer Definitions
 KRATOS_CLASS_POINTER_DEFINITION (AdjointLiftJumpCoordinatesResponseFunction)
 
Life Cycle
 AdjointLiftJumpCoordinatesResponseFunction (ModelPart &rModelPart, Parameters ResponseSettings)
 Default constructor. More...
 
 ~AdjointLiftJumpCoordinatesResponseFunction () override
 Destructor. More...
 
Operations
void InitializeSolutionStep () override
 
double CalculateValue (ModelPart &rModelPart) override
 Calculate the scalar valued response function. More...
 
void CalculateGradient (const Element &rAdjointElement, const Matrix &rResidualGradient, Vector &rResponseGradient, const ProcessInfo &rProcessInfo) override
 Calculate the local gradient w.r.t. primal solution. More...
 
void CalculateGradient (const Condition &rAdjointCondition, const Matrix &rResidualGradient, Vector &rResponseGradient, const ProcessInfo &rProcessInfo) override
 Calculate the local gradient w.r.t. primal solution. More...
 
void CalculatePartialSensitivity (Element &rAdjointElement, const Variable< double > &rVariable, const Matrix &rSensitivityMatrix, Vector &rSensitivityGradient, const ProcessInfo &rProcessInfo) override
 Calculate the partial sensitivity w.r.t. design variable. More...
 
void CalculatePartialSensitivity (Condition &rAdjointCondition, const Variable< double > &rVariable, const Matrix &rSensitivityMatrix, Vector &rSensitivityGradient, const ProcessInfo &rProcessInfo) override
 Calculate the partial sensitivity w.r.t. design variable. More...
 
void CalculatePartialSensitivity (Element &rAdjointElement, const Variable< array_1d< double, 3 >> &rVariable, const Matrix &rSensitivityMatrix, Vector &rSensitivityGradient, const ProcessInfo &rProcessInfo) override
 Calculate the partial sensitivity w.r.t. design variable. More...
 
void CalculatePartialSensitivity (Condition &rAdjointCondition, const Variable< array_1d< double, 3 >> &rVariable, const Matrix &rSensitivityMatrix, Vector &rSensitivityGradient, const ProcessInfo &rProcessInfo) override
 Calculate the partial sensitivity w.r.t. design variable. More...
 
- Public Member Functions inherited from Kratos::AdjointPotentialResponseFunction
 AdjointPotentialResponseFunction (ModelPart &rModelPart, Parameters ResponseSettings)
 Constructor. More...
 
 ~AdjointPotentialResponseFunction () override
 Destructor. More...
 
void Initialize () override
 
void InitializeSolutionStep () override
 
void CalculateGradient (const Condition &rAdjointCondition, const Matrix &rResidualGradient, Vector &rResponseGradient, const ProcessInfo &rProcessInfo) override
 Calculate the local gradient w.r.t. primal solution. More...
 
double CalculateValue (ModelPart &rModelPart) override
 Calculate the scalar valued response function. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (AdjointPotentialResponseFunction)
 
- Public Member Functions inherited from Kratos::AdjointResponseFunction
 KRATOS_CLASS_POINTER_DEFINITION (AdjointResponseFunction)
 
 AdjointResponseFunction ()
 Constructor. More...
 
virtual ~AdjointResponseFunction ()
 Destructor. More...
 
virtual void FinalizeSolutionStep ()
 
virtual void CalculateFirstDerivativesGradient (const Element &rAdjointElement, const Matrix &rResidualGradient, Vector &rResponseGradient, const ProcessInfo &rProcessInfo)
 Calculate the local gradient w.r.t. first derivatives of primal solution. More...
 
virtual void CalculateFirstDerivativesGradient (const Condition &rAdjointCondition, const Matrix &rResidualGradient, Vector &rResponseGradient, const ProcessInfo &rProcessInfo)
 Calculate the local gradient w.r.t. first derivatives of primal solution. More...
 
virtual void CalculateSecondDerivativesGradient (const Element &rAdjointElement, const Matrix &rResidualGradient, Vector &rResponseGradient, const ProcessInfo &rProcessInfo)
 Calculate the local gradient w.r.t. second derivatives of primal solution. More...
 
virtual void CalculateSecondDerivativesGradient (const Condition &rAdjointCondition, const Matrix &rResidualGradient, Vector &rResponseGradient, const ProcessInfo &rProcessInfo)
 Calculate the local gradient w.r.t. second derivatives of primal solution. More...
 

Additional Inherited Members

- Public Types inherited from Kratos::AdjointPotentialResponseFunction
typedef std::size_t IndexType
 
typedef std::size_t SizeType
 
- Protected Attributes inherited from Kratos::AdjointPotentialResponseFunction
ModelPartmrModelPart
 

Detailed Description

AdjointLiftJumpCoordinatesResponseFunction.

This is a response function which traces a chosen displacement or rotation of a single node as response. It is designed to be used in adjoint sensitivity analysis.

Constructor & Destructor Documentation

◆ AdjointLiftJumpCoordinatesResponseFunction()

Kratos::AdjointLiftJumpCoordinatesResponseFunction::AdjointLiftJumpCoordinatesResponseFunction ( ModelPart rModelPart,
Parameters  ResponseSettings 
)

Default constructor.

◆ ~AdjointLiftJumpCoordinatesResponseFunction()

Kratos::AdjointLiftJumpCoordinatesResponseFunction::~AdjointLiftJumpCoordinatesResponseFunction ( )
override

Destructor.

Member Function Documentation

◆ CalculateGradient() [1/2]

void Kratos::AdjointLiftJumpCoordinatesResponseFunction::CalculateGradient ( const Condition rAdjointCondition,
const Matrix rResidualGradient,
Vector rResponseGradient,
const ProcessInfo rProcessInfo 
)
overridevirtual

Calculate the local gradient w.r.t. primal solution.

Parameters
[in]rAdjointConditionthe adjoint condition.
[in]rResidualGradientthe transposed gradient of the condition's residual w.r.t. primal.
[out]rResponseGradientthe gradient of the response function.
[in]rProcessInfothe current process info.

Reimplemented from Kratos::AdjointResponseFunction.

◆ CalculateGradient() [2/2]

void Kratos::AdjointLiftJumpCoordinatesResponseFunction::CalculateGradient ( const Element rAdjointElement,
const Matrix rResidualGradient,
Vector rResponseGradient,
const ProcessInfo rProcessInfo 
)
overridevirtual

Calculate the local gradient w.r.t. primal solution.

Parameters
[in]rAdjointElementthe adjoint element.
[in]rResidualGradientthe transposed gradient of the element's residual w.r.t. primal.
[out]rResponseGradientthe gradient of the response function.
[in]rProcessInfothe current process info.

Reimplemented from Kratos::AdjointResponseFunction.

◆ CalculatePartialSensitivity() [1/4]

void Kratos::AdjointLiftJumpCoordinatesResponseFunction::CalculatePartialSensitivity ( Condition rAdjointCondition,
const Variable< array_1d< double, 3 >> &  rVariable,
const Matrix rSensitivityMatrix,
Vector rSensitivityGradient,
const ProcessInfo rProcessInfo 
)
overridevirtual

Calculate the partial sensitivity w.r.t. design variable.

Parameters
[in]rAdjointConditionthe adjoint condition.
[in]rVariablethe design variable.
[in]rSensitivityMatrixthe transposed gradient of the condition's residual w.r.t. design variable.
[out]rSensitivityGradientthe gradient of the response function.
[in]rProcessInfothe current process info.

Reimplemented from Kratos::AdjointResponseFunction.

◆ CalculatePartialSensitivity() [2/4]

void Kratos::AdjointLiftJumpCoordinatesResponseFunction::CalculatePartialSensitivity ( Condition rAdjointCondition,
const Variable< double > &  rVariable,
const Matrix rSensitivityMatrix,
Vector rSensitivityGradient,
const ProcessInfo rProcessInfo 
)
overridevirtual

Calculate the partial sensitivity w.r.t. design variable.

Parameters
[in]rAdjointConditionthe adjoint condition.
[in]rVariablethe design variable.
[in]rSensitivityMatrixthe transposed gradient of the condition's residual w.r.t. design variable.
[out]rSensitivityGradientthe gradient of the response function.
[in]rProcessInfothe current process info.

Reimplemented from Kratos::AdjointResponseFunction.

◆ CalculatePartialSensitivity() [3/4]

void Kratos::AdjointLiftJumpCoordinatesResponseFunction::CalculatePartialSensitivity ( Element rAdjointElement,
const Variable< array_1d< double, 3 >> &  rVariable,
const Matrix rSensitivityMatrix,
Vector rSensitivityGradient,
const ProcessInfo rProcessInfo 
)
overridevirtual

Calculate the partial sensitivity w.r.t. design variable.

Parameters
[in]rAdjointElementthe adjoint element.
[in]rVariablethe design variable.
[in]rSensitivityMatrixthe transposed gradient of the element's residual w.r.t. design variable.
[out]rSensitivityGradientthe gradient of the response function.
[in]rProcessInfothe current process info.

Reimplemented from Kratos::AdjointResponseFunction.

◆ CalculatePartialSensitivity() [4/4]

void Kratos::AdjointLiftJumpCoordinatesResponseFunction::CalculatePartialSensitivity ( Element rAdjointElement,
const Variable< double > &  rVariable,
const Matrix rSensitivityMatrix,
Vector rSensitivityGradient,
const ProcessInfo rProcessInfo 
)
overridevirtual

Calculate the partial sensitivity w.r.t. design variable.

Parameters
[in]rAdjointElementthe adjoint element.
[in]rVariablethe design variable.
[in]rSensitivityMatrixthe transposed gradient of the element's residual w.r.t. design variable.
[out]rSensitivityGradientthe gradient of the response function.
[in]rProcessInfothe current process info.

Reimplemented from Kratos::AdjointResponseFunction.

◆ CalculateValue()

double Kratos::AdjointLiftJumpCoordinatesResponseFunction::CalculateValue ( ModelPart rModelPart)
overridevirtual

Calculate the scalar valued response function.

Implements Kratos::AdjointResponseFunction.

◆ InitializeSolutionStep()

void Kratos::AdjointLiftJumpCoordinatesResponseFunction::InitializeSolutionStep ( )
overridevirtual

Reimplemented from Kratos::AdjointResponseFunction.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::AdjointLiftJumpCoordinatesResponseFunction::KRATOS_CLASS_POINTER_DEFINITION ( AdjointLiftJumpCoordinatesResponseFunction  )

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