85 void CalculateGradient(
const Element& rAdjointElement,
86 const Matrix& rResidualGradient,
90 void CalculateFirstDerivativesGradient(
const Element& rAdjointElement,
91 const Matrix& rResidualGradient,
95 void CalculateFirstDerivativesGradient(
const Condition& rAdjointCondition,
96 const Matrix& rResidualGradient,
100 void CalculateSecondDerivativesGradient(
const Element& rAdjointElement,
101 const Matrix& rResidualGradient,
102 Vector& rResponseGradient,
105 void CalculateSecondDerivativesGradient(
const Condition& rAdjointCondition,
106 const Matrix& rResidualGradient,
107 Vector& rResponseGradient,
110 void CalculatePartialSensitivity(
Element& rAdjointElement,
112 const Matrix& rSensitivityMatrix,
113 Vector& rSensitivityGradient,
116 void CalculatePartialSensitivity(
Condition& rAdjointCondition,
118 const Matrix& rSensitivityMatrix,
119 Vector& rSensitivityGradient,
122 void CalculatePartialSensitivity(
Element& rAdjointElement,
124 const Matrix& rSensitivityMatrix,
125 Vector& rSensitivityGradient,
128 void CalculatePartialSensitivity(
Condition& rAdjointCondition,
130 const Matrix& rSensitivityMatrix,
131 Vector& rSensitivityGradient,
135 double CalculateValue(
ModelPart& rModelPart)
override;
194 std::string mTracedDofLabel;
195 std::string mResponsePartName;
197 std::unordered_map<IndexType, std::vector<IndexType>> mElementNodeMap;
207 void ComputeNeighboringElementNodeMap();
AdjointNodalDisplacementResponseFunction.
Definition: adjoint_nodal_displacement_response_function.h:51
Node::Pointer PointTypePointer
Definition: adjoint_nodal_displacement_response_function.h:57
KRATOS_CLASS_POINTER_DEFINITION(AdjointNodalDisplacementResponseFunction)
Variable< array_1d< double, 3 > > ArrayVariableType
Definition: adjoint_nodal_displacement_response_function.h:58
Element::DofsVectorType DofsVectorType
Definition: adjoint_nodal_displacement_response_function.h:56
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
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21