83 void FinalizeSolutionStep()
override;
87 void CalculateGradient(
const Element& rAdjointElement,
88 const Matrix& rResidualGradient,
92 void CalculatePartialSensitivity(
Element& rAdjointElement,
94 const Matrix& rSensitivityMatrix,
95 Vector& rSensitivityGradient,
98 void CalculatePartialSensitivity(
Condition& rAdjointCondition,
100 const Matrix& rSensitivityMatrix,
101 Vector& rSensitivityGradient,
104 void CalculatePartialSensitivity(
Element& rAdjointElement,
106 const Matrix& rSensitivityMatrix,
107 Vector& rSensitivityGradient,
110 void CalculatePartialSensitivity(
Condition& rAdjointCondition,
112 const Matrix& rSensitivityMatrix,
113 Vector& rSensitivityGradient,
116 double CalculateValue(
ModelPart& rModelPart)
override;
175 unsigned int mIdOfLocation;
176 Element::Pointer mpTracedElement;
179 bool mAddParticularSolution =
false;
190 double CalculateMeanElementStress(
ModelPart& rModelPart);
192 double CalculateGaussPointStress(
ModelPart& rModelPart);
194 double CalculateNodeStress(
ModelPart& rModelPart);
196 void CalculateElementContributionToPartialSensitivity(
Element& rAdjointElement,
197 const std::string& rVariableName,
198 const Matrix& rSensitivityMatrix,
199 Vector& rSensitivityGradient,
202 void ExtractMeanStressDerivative(
const Matrix& rStressDerivativesMatrix,
Vector& rResponseGradient);
204 void ExtractNodeStressDerivative(
const Matrix& rStressDerivativesMatrix,
Vector& rResponseGradient);
206 void ExtractGaussPointStressDerivative(
const Matrix& rStressDerivativesMatrix,
Vector& rResponseGradient);
208 void CalculateParticularSolution()
const;
210 void CalculateParticularSolutionLinearElement2N(
Vector& rResult)
const;
AdjointLocalStressResponseFunction.
Definition: adjoint_local_stress_response_function.h:52
Variable< double > * Array1DComponentsPointerType
Definition: adjoint_local_stress_response_function.h:58
KRATOS_CLASS_POINTER_DEFINITION(AdjointLocalStressResponseFunction)
Element::DofsVectorType DofsVectorType
Definition: adjoint_local_stress_response_function.h:57
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
Base class for all Conditions.
Definition: condition.h:59
Base class for all Elements.
Definition: element.h:60
std::vector< DofType::Pointer > DofsVectorType
Definition: element.h:100
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