14 #if !defined(KRATOS_EMBEDDED_NODAL_VARIABLE_CALCULATION_ELEMENT_H_INCLUDED )
15 #define KRATOS_EMBEDDED_NODAL_VARIABLE_CALCULATION_ELEMENT_H_INCLUDED
58 template<
class TVarType >
121 GeometryType::Pointer pGeometry)
133 GeometryType::Pointer pGeometry,
134 PropertiesType::Pointer pProperties)
135 :
Element(NewId, pGeometry, pProperties)
161 PropertiesType::Pointer pProperties)
const override
163 return Kratos::make_intrusive<EmbeddedNodalVariableCalculationElementSimplex<TVarType>>(NewId, GetGeometry().Create(ThisNodes), pProperties);
173 void CalculateLocalSystem(
217 const ProcessInfo& rCurrentProcessInfo)
const override;
227 const ProcessInfo& rCurrentProcessInfo)
const override;
248 std::string
Info()
const override
250 std::stringstream buffer;
251 buffer <<
"EmbeddedNodalVariableCalculationElementSimplex #" << Id();
258 rOStream <<
"EmbeddedNodalVariableCalculationElementSimplex";
262 virtual void PrintData(std::ostream& rOStream)
const override
323 void save(
Serializer& rSerializer)
const override
342 const array_1d<double, 2> GetDistanceBasedShapeFunctionValues();
359 EmbeddedNodalVariableCalculationElementSimplex &
operator=(EmbeddedNodalVariableCalculationElementSimplex
const& rOther) =
delete;
362 EmbeddedNodalVariableCalculationElementSimplex(EmbeddedNodalVariableCalculationElementSimplex
const& rOther) =
delete;
379 template <
class TVarType>
381 std::istream &rIStream,
388 template <
class TVarType>
390 std::ostream &rOStream,
394 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Base class for all Elements.
Definition: element.h:60
std::vector< DofType::Pointer > DofsVectorType
Definition: element.h:100
std::vector< std::size_t > EquationIdVectorType
Definition: element.h:98
std::size_t IndexType
Definition: element.h:92
An element to compute the a nodal variable from an embedded skin.
Definition: embedded_nodal_variable_calculation_element_simplex.h:60
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(EmbeddedNodalVariableCalculationElementSimplex)
Pointer definition of EmbeddedNodalVariableCalculationElementSimplex.
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Calculate the element's local Left Hand Side (LHS) contribution to the system for the current step.
EmbeddedNodalVariableCalculationElementSimplex(IndexType NewId, const NodesArrayType &ThisNodes)
Constructor using an array of nodes.
Definition: embedded_nodal_variable_calculation_element_simplex.h:108
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: embedded_nodal_variable_calculation_element_simplex.h:256
Matrix MatrixType
Matrix type for local contributions to the linear system.
Definition: embedded_nodal_variable_calculation_element_simplex.h:81
Element::DofsVectorType DofsVectorType
Definition: embedded_nodal_variable_calculation_element_simplex.h:86
void GetDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const override
Get the Dof List object Returns a list of the element's Dofs.
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
Provides the global indices for each one of this element's local rows This determines the elemental e...
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Calculate the element's local Reft Hand Side (RHS) contribution to the system for the current step.
Vector VectorType
Vector type for local contributions to the linear system.
Definition: embedded_nodal_variable_calculation_element_simplex.h:78
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition of nodes container type, redefined from GeometryType.
Definition: embedded_nodal_variable_calculation_element_simplex.h:75
~EmbeddedNodalVariableCalculationElementSimplex() override=default
Destructor.
EmbeddedNodalVariableCalculationElementSimplex(IndexType NewId, GeometryType::Pointer pGeometry)
Constructor using a geometry object.
Definition: embedded_nodal_variable_calculation_element_simplex.h:119
Node NodeType
Node type (default is: Node)
Definition: embedded_nodal_variable_calculation_element_simplex.h:69
EmbeddedNodalVariableCalculationElementSimplex(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Constuctor using geometry and properties.
Definition: embedded_nodal_variable_calculation_element_simplex.h:131
Geometry< NodeType > GeometryType
Geometry type (using with given NodeType)
Definition: embedded_nodal_variable_calculation_element_simplex.h:72
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Checks the input and that all required Kratos variables have been registered. This function provides ...
std::string Info() const override
Turn back information as a string.
Definition: embedded_nodal_variable_calculation_element_simplex.h:248
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
Create a new element of this type.
Definition: embedded_nodal_variable_calculation_element_simplex.h:158
EmbeddedNodalVariableCalculationElementSimplex(IndexType NewId=0)
Default constuctor.
Definition: embedded_nodal_variable_calculation_element_simplex.h:99
Element::DofsArrayType DofsArrayType
Definition: embedded_nodal_variable_calculation_element_simplex.h:85
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: embedded_nodal_variable_calculation_element_simplex.h:262
Element::IndexType IndexType
Element types definition.
Definition: embedded_nodal_variable_calculation_element_simplex.h:84
Element::EquationIdVectorType EquationIdVectorType
Definition: embedded_nodal_variable_calculation_element_simplex.h:87
std::size_t IndexType
Definition: flags.h:74
Geometry base class.
Definition: geometry.h:71
This class defines the node.
Definition: node.h:65
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
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
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
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