13 #if !defined(KRATOS_CONVECTION_DIFFUSION_REACTION_CROSS_WIND_STABILIZED_ELEMENT_H_INCLUDED)
14 #define KRATOS_CONVECTION_DIFFUSION_REACTION_CROSS_WIND_STABILIZED_ELEMENT_H_INCLUDED
33 template <
unsigned int TDim,
34 unsigned int TNumNodes,
35 class TConvectionDiffusionReactionData>
109 GeometryType::Pointer pGeometry)
119 GeometryType::Pointer pGeometry,
120 typename PropertiesType::Pointer pProperties)
121 :
BaseType(NewId, pGeometry, pProperties)
158 typename PropertiesType::Pointer pProperties)
const override
161 return Kratos::make_intrusive<CurrentElementType>(
175 GeometryType::Pointer pGeom,
176 typename PropertiesType::Pointer pProperties)
const override
179 return Kratos::make_intrusive<CurrentElementType>(NewId, pGeom, pProperties);
195 return Kratos::make_intrusive<CurrentElementType>(
262 std::string
Info()
const override
264 std::stringstream buffer;
265 buffer <<
"ConvectionDiffusionReactionCrossWindStabilizedElement #" << this->
Id();
271 rOStream <<
"CDRCrossWind" << TConvectionDiffusionReactionData::GetName();
286 const Matrix& rParameterDerivatives)
const;
313 void save(
Serializer& rSerializer)
const override
337 template <
unsigned int TDim,
unsigned int TNumNodes,
class TConvectionDiffusionReactionData>
339 std::istream& rIStream,
343 template <
unsigned int TDim,
unsigned int TNumNodes,
class TConvectionDiffusionReactionData>
345 std::ostream& rOStream,
349 rOStream <<
" : " << std::endl;
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:38
ShapeFunctionDerivativesArrayType GetGeometryParameterDerivatives() const
Get the Geometry Parameter Derivatives object.
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.cpp:358
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:269
void CalculateMassMatrix(MatrixType &rMassMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.cpp:136
void CalculateDampingMatrix(MatrixType &rDampingMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.cpp:205
virtual double GetDeltaTime(const ProcessInfo &rProcessInfo) const
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.cpp:348
std::string Info() const override
Turn back information as a string.
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:262
ConvectionDiffusionReactionCrossWindStabilizedElement(IndexType NewId, GeometryType::Pointer pGeometry, typename PropertiesType::Pointer pProperties)
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:117
ConvectionDiffusionReactionCrossWindStabilizedElement(IndexType NewId=0)
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:88
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(ConvectionDiffusionReactionCrossWindStabilizedElement)
Element::Pointer Create(IndexType NewId, GeometryType::Pointer pGeom, typename PropertiesType::Pointer pProperties) const override
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:173
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, typename PropertiesType::Pointer pProperties) const override
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:155
Matrix MatrixType
Matrix type for local contributions to the linear system.
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:58
ConvectionDiffusionReactionCrossWindStabilizedElement(IndexType NewId, const NodesArrayType &ThisNodes)
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:97
void CalculateContravariantMetricTensor(BoundedMatrix< double, TDim, TDim > &rOutput, const Matrix &rParameterDerivatives) const
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.cpp:340
ConvectionDiffusionReactionCrossWindStabilizedElement(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:107
GeometryType::ShapeFunctionsGradientsType ShapeFunctionDerivativesArrayType
Type for an array of shape function gradient matrices.
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:69
Element::Pointer Clone(IndexType NewId, NodesArrayType const &ThisNodes) const override
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:190
~ConvectionDiffusionReactionCrossWindStabilizedElement() override=default
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.cpp:46
void CalculateLocalVelocityContribution(MatrixType &rDampingMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
CalculateLocalVelocityContribution Calculate the local contribution in terms of velocity and pressure...
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.cpp:122
TConvectionDiffusionReactionData ConvectionDiffusionReactionDataType
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:71
ConvectionDiffusionReactionCrossWindStabilizedElement(ConvectionDiffusionReactionCrossWindStabilizedElement const &rOther)
Definition: convection_diffusion_reaction_cross_wind_stabilized_element.h:128
Definition: convection_diffusion_reaction_element.h:36
typename BaseType::PropertiesType PropertiesType
Definition: convection_diffusion_reaction_element.h:67
Base class for all Elements.
Definition: element.h:60
std::vector< DofType::Pointer > DofsVectorType
Definition: element.h:100
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: element.h:1135
std::vector< std::size_t > EquationIdVectorType
Definition: element.h:98
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
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
Geometry base class.
Definition: geometry.h:71
GeometryData::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: geometry.h:189
IndexType Id() const
Definition: indexed_object.h:107
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
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
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_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#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
Internals::Matrix< double, AMatrix::dynamic, 1 > Vector
Definition: amatrix_interface.h:472
Internals::Matrix< double, AMatrix::dynamic, AMatrix::dynamic > Matrix
Definition: amatrix_interface.h:470
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