82 void CalculateGradient(
const Element& rAdjointElement,
83 const Matrix& rResidualGradient,
87 void CalculatePartialSensitivity(
Element& rAdjointElement,
89 const Matrix& rSensitivityMatrix,
90 Vector& rSensitivityGradient,
93 void CalculatePartialSensitivity(
Condition& rAdjointCondition,
95 const Matrix& rSensitivityMatrix,
96 Vector& rSensitivityGradient,
99 void CalculatePartialSensitivity(
Element& rAdjointElement,
101 const Matrix& rSensitivityMatrix,
102 Vector& rSensitivityGradient,
105 void CalculatePartialSensitivity(
Condition& rAdjointCondition,
107 const Matrix& rSensitivityMatrix,
108 Vector& rSensitivityGradient,
111 double CalculateValue(
ModelPart& rModelPart)
override;
170 std::string mCriticalPartName;
171 Element::Pointer mpTracedElementInAdjointPart =
nullptr;
185 void CalculateElementContributionToPartialSensitivity(
Element& rAdjointElement,
186 const std::string& rVariableName,
187 const Matrix& rSensitivityMatrix,
188 Vector& rSensitivityGradient,
191 void ExtractMeanStressDerivative(
const Matrix& rStressDerivativesMatrix,
Vector& rResponseGradient);
AdjointMaxStressResponseFunction.
Definition: adjoint_max_stress_response_function.h:52
KRATOS_CLASS_POINTER_DEFINITION(AdjointMaxStressResponseFunction)
AdjointStructuralResponseFunction.
Definition: adjoint_structural_response_function.h:39
virtual void CalculateGradient(const Element &rAdjointElement, const Matrix &rResidualGradient, Vector &rResponseGradient, const ProcessInfo &rProcessInfo)
Calculate the local gradient w.r.t. primal solution.
Definition: adjoint_response_function.h:88
std::size_t SizeType
Definition: adjoint_structural_response_function.h:48
Base class for all Conditions.
Definition: condition.h:59
Base class for all Elements.
Definition: element.h:60
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
StressTreatment
Definition: stress_response_definitions.h:57
TracedStressType
Definition: stress_response_definitions.h:27