12 #if !defined(KRATOS_ADJOINT_DIFFUSION_ELEMENT )
13 #define KRATOS_ADJOINT_DIFFUSION_ELEMENT
51 template<
class PrimalElement >
86 Element::Pointer
Create(
IndexType NewId,
typename GeometryType::Pointer pGeom, Properties::Pointer pProperties)
const override;
95 const ProcessInfo& rCurrentProcessInfo)
const override;
114 std::string
Info()
const override;
117 void PrintInfo(std::ostream& rOStream)
const override;
179 void save(
Serializer& rSerializer)
const override
181 using BaseType = PrimalElement;
187 using BaseType = PrimalElement;
237 template<
class PrimalElement >
244 template<
class PrimalElement >
248 rOStream << std::endl;
249 rThis.PrintData(rOStream);
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Basic element for the ajdoint diffusion problem.
Definition: adjoint_diffusion_element.h:53
typename PrimalElement::EquationIdVectorType EquationIdVectorType
Definition: adjoint_diffusion_element.h:66
void GetValuesVector(Vector &rValues, int Step) const override
Definition: adjoint_diffusion_element.cpp:87
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: adjoint_diffusion_element.cpp:185
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(AdjointDiffusionElement)
Counted pointer of AdjointDiffusionElement.
void CalculateSensitivityMatrix(const Variable< array_1d< double, 3 >> &rDesignVariable, Matrix &rOutput, const ProcessInfo &rCurrentProcessInfo) override
Definition: adjoint_diffusion_element.cpp:194
typename PrimalElement::IndexType IndexType
Definition: adjoint_diffusion_element.h:61
typename PrimalElement::MatrixType MatrixType
Definition: adjoint_diffusion_element.h:64
~AdjointDiffusionElement() override
Destructor.
Definition: adjoint_diffusion_element.cpp:37
void GetDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const override
Definition: adjoint_diffusion_element.cpp:123
typename PrimalElement::DofsVectorType DofsVectorType
Definition: adjoint_diffusion_element.h:67
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Definition: adjoint_diffusion_element.cpp:141
std::string Info() const override
Turn back information as a string.
Definition: adjoint_diffusion_element.cpp:177
typename PrimalElement::VectorType VectorType
Definition: adjoint_diffusion_element.h:65
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, Properties::Pointer pProperties) const override
Definition: adjoint_diffusion_element.cpp:40
typename PrimalElement::NodesArrayType NodesArrayType
Definition: adjoint_diffusion_element.h:63
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
Definition: adjoint_diffusion_element.cpp:104
AdjointDiffusionElement(IndexType NewId, typename GeometryType::Pointer pGeometry)
Definition: adjoint_diffusion_element.cpp:26
friend class Serializer
Definition: adjoint_diffusion_element.h:172
typename PrimalElement::GeometryType GeometryType
Definition: adjoint_diffusion_element.h:62
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: adjoint_diffusion_element.cpp:71
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: adjoint_diffusion_element.cpp:58
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
std::size_t IndexType
Definition: binary_expression.cpp:25
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
Geometry< Node > GeometryType
The definition of the geometry.
Definition: mortar_classes.h:37
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307