49 template<std::
size_t TNumNodes>
124 return Kratos::make_intrusive<PrimitiveElement<TNumNodes>>(NewId, this->
GetGeometry().
Create(ThisNodes), pProperties);
134 Element::Pointer
Create(
IndexType NewId, GeometryType::Pointer pGeom,
typename PropertiesType::Pointer pProperties)
const override
136 return Kratos::make_intrusive<PrimitiveElement<TNumNodes>>(NewId, pGeom, pProperties);
148 p_new_elem->SetData(this->
GetData());
149 p_new_elem->Set(
Flags(*
this));
160 std::string
Info()
const override
162 return "PrimitiveElement";
191 void save(
Serializer& rSerializer)
const override
Base class for all Elements.
Definition: element.h:60
Properties PropertiesType
Definition: element.h:80
Geometry< NodeType >::PointsArrayType NodesArrayType
definition of nodes container type, redefined from GeometryType
Definition: element.h:86
PropertiesType::Pointer pGetProperties()
returns the pointer to the property of the element. Does not throw an error, to allow copying of elem...
Definition: element.h:1014
std::size_t IndexType
Definition: flags.h:74
Flags()
Default constructor.
Definition: flags.h:119
This defines the geometrical object, base definition of the element and condition entities.
Definition: geometrical_object.h:58
GeometryType & GetGeometry()
Returns the reference of the geometry.
Definition: geometrical_object.h:158
DataValueContainer & GetData()
Definition: geometrical_object.h:212
Geometry base class.
Definition: geometry.h:71
virtual Pointer Create(PointsArrayType const &rThisPoints) const
Creates a new geometry pointer.
Definition: geometry.h:813
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
Implementation of a linear element for shallow water problems.
Definition: primitive_element.h:51
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, typename PropertiesType::Pointer pProperties) const override
Create a new element pointer.
Definition: primitive_element.h:122
BaseType::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: primitive_element.h:74
double StabilizationParameter(const ElementData &rData) const override
Definition: primitive_element.cpp:76
std::string Info() const override
Turn back information as a string.
Definition: primitive_element.h:160
~ PrimitiveElement() override
Destructor.
Definition: primitive_element.h:109
BaseType::LocalVectorType LocalVectorType
Definition: primitive_element.h:72
Geometry< NodeType > GeometryType
Definition: primitive_element.h:60
void UpdateGaussPointData(ElementData &rData, const array_1d< double, TNumNodes > &rN) override
Definition: primitive_element.cpp:29
PrimitiveElement(IndexType NewId, GeometryType::Pointer pGeometry, typename PropertiesType::Pointer pProperties)
Constructor using Geometry and Properties.
Definition: primitive_element.h:104
PrimitiveElement()
Default constructor.
Definition: primitive_element.h:89
Element::Pointer Create(IndexType NewId, GeometryType::Pointer pGeom, typename PropertiesType::Pointer pProperties) const override
Create a new element pointer.
Definition: primitive_element.h:134
static constexpr IndexType mLocalSize
Definition: primitive_element.h:171
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PrimitiveElement)
std::size_t IndexType
Definition: primitive_element.h:56
BaseType::NodesArrayType NodesArrayType
Definition: primitive_element.h:64
WaveElement< TNumNodes > BaseType
Definition: primitive_element.h:62
BaseType::LocalMatrixType LocalMatrixType
Definition: primitive_element.h:70
BaseType::ElementData ElementData
Definition: primitive_element.h:68
Element::Pointer Clone(IndexType NewId, NodesArrayType const &ThisNodes) const override
Create a new element pointer and clone the previous element data.
Definition: primitive_element.h:145
Node NodeType
Definition: primitive_element.h:58
PrimitiveElement(IndexType NewId, const NodesArrayType &ThisNodes)
Constructor using an array of nodes.
Definition: primitive_element.h:94
BaseType::PropertiesType PropertiesType
Definition: primitive_element.h:66
PrimitiveElement(IndexType NewId, GeometryType::Pointer pGeometry)
Constructor using Geometry.
Definition: primitive_element.h:99
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Implementation of a linear element for shallow water problems.
Definition: wave_element.h:55
GeometryType::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: wave_element.h:68
static constexpr IndexType mLocalSize
Definition: wave_element.h:287
BoundedMatrix< double, 3 *TNumNodes, 3 *TNumNodes > LocalMatrixType
Definition: wave_element.h:66
array_1d< double, 3 *TNumNodes > LocalVectorType
Definition: wave_element.h:64
#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
def load(f)
Definition: ode_solve.py:307