9 #if !defined(KRATOS_VELOCITY_ENRICHED_PFEM2_2D_ELEM_H_INCLUDED)
10 #define KRATOS_VELOCITY_ENRICHED_PFEM2_2D_ELEM_H_INCLUDED
16 #include "boost/smart_ptr.hpp"
100 double Viscosity,
const double Area);
105 std::vector< Matrix >& gauss_gradients,
109 const unsigned int ndivisions);
114 std::vector< Matrix >& gauss_gradients,
118 const unsigned int ndivisions);
121 std::vector< Matrix > & gauss_gradients_discontinuous,
124 const int ndivisions);
133 virtual void save(
Serializer& rSerializer)
const override
148 void CalculateInterfaceNormal(
149 BoundedMatrix<double, 3, 2 >& rPoints,
150 array_1d<double,3>& rDistances,
151 array_1d<double,2>& normal,
152 double & interface_area,
153 array_1d<double,3>& Ninterface,
154 BoundedMatrix<double, 2, 2 >& rInterfacePoints);
157 const bounded_matrix<double, 3, 3 > & coordinates,
158 const double xc,
const double yc,
const double zc, array_1d<double, 3 > &
N);
161 const double x0,
const double y0,
const double x1,
const double y1,
const double x2,
const double y2 );
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: flags.h:74
Geometry base class.
Definition: geometry.h:71
This object defines an indexed object.
Definition: indexed_object.h:54
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
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
Definition: vel_enriched_2fluid_2d.h:31
Properties PropertiesType
Definition: vel_enriched_2fluid_2d.h:48
Vector VectorType
Definition: vel_enriched_2fluid_2d.h:53
virtual void AddViscousTerm(MatrixType &rDampMatrix, const BoundedMatrix< double, 3, 2 > &rShapeDeriv, double Viscosity, const double Area)
Definition: vel_enriched_2fluid_2d.cpp:1477
void AddViscousTerm(BoundedMatrix< double, 17, 17 > &output, BoundedMatrix< double,(2+1), 2 > &rShapeDeriv, array_1d< double, 3 > &distances, std::vector< Matrix > &gauss_gradients, array_1d< double, 3 > &viscosities, array_1d< double, 3 > &signs, array_1d< double, 3 > &volumes, const unsigned int ndivisions)
bool InvertMatrix(const T &input, T &inverse)
Definition: vel_enriched_2fluid_2d.cpp:1526
VelocityEnrichedPFEM22D(IndexType NewId, const NodesArrayType &ThisNodes)
Definition: vel_enriched_2fluid_2d.h:66
void AddViscousTerm(BoundedMatrix< double, 12, 12 > &output, BoundedMatrix< double,(2+1), 2 > &rShapeDeriv, array_1d< double, 3 > &distances, std::vector< Matrix > &gauss_gradients, array_1d< double, 3 > &viscosities, array_1d< double, 3 > &signs, array_1d< double, 3 > &volumes, const unsigned int ndivisions)
std::vector< Dof< double >::Pointer > DofsVectorType
Definition: vel_enriched_2fluid_2d.h:58
Geometry< NodeType >::PointsArrayType NodesArrayType
definition of nodes container type, redefined from GeometryType
Definition: vel_enriched_2fluid_2d.h:52
PointerVector< PFEM_Particle_Fluid, PFEM_Particle_Fluid *, std::vector< PFEM_Particle_Fluid * > > ParticlePointerVector
Definition: vel_enriched_2fluid_2d.h:60
PointerVectorSet< Dof< double >, IndexedObject > DofsArrayType
Definition: vel_enriched_2fluid_2d.h:59
void AddViscousTerm(MatrixType &rDampMatrix, std::vector< Matrix > &gauss_gradients_discontinuous, array_1d< double, 3 > &volumes, array_1d< double, 3 > &viscosities, const int ndivisions)
virtual ~ VelocityEnrichedPFEM22D() override
Destructor.
std::size_t IndexType
Definition: vel_enriched_2fluid_2d.h:55
void CalculatePressureProjection(ProcessInfo &CurrentProcessInfo)
Definition: vel_enriched_2fluid_2d.cpp:1217
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(VelocityEnrichedPFEM22D)
Counted pointer of PFEM22D.
std::size_t SizeType
Definition: vel_enriched_2fluid_2d.h:56
void InitializeSolutionStep(ProcessInfo &CurrentProcessInfo) override
Definition: vel_enriched_2fluid_2d.cpp:1102
Geometry< NodeType > GeometryType
definition of the geometry type with given NodeType
Definition: vel_enriched_2fluid_2d.h:50
std::vector< std::size_t > EquationIdVectorType
Definition: vel_enriched_2fluid_2d.h:57
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new element pointer.
Definition: vel_enriched_2fluid_2d.cpp:45
void GetDofList(DofsVectorType &ElementalDofList, ProcessInfo &CurrentProcessInfo) override
Definition: vel_enriched_2fluid_2d.cpp:1163
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, ProcessInfo &rCurrentProcessInfo) override
Definition: vel_enriched_2fluid_2d.cpp:81
VelocityEnrichedPFEM22D(IndexType NewId=0)
Default constructor.
Definition: vel_enriched_2fluid_2d.h:63
void EquationIdVector(EquationIdVectorType &rResult, ProcessInfo &rCurrentProcessInfo) override
Definition: vel_enriched_2fluid_2d.cpp:1112
void AddExplicitContribution(ProcessInfo &CurrentProcessInfo) override
Definition: vel_enriched_2fluid_2d.cpp:58
#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
The definition of the index type.
Definition: key_hash.h:35
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
bool CalculatePosition(Geometry< Node > &geom, const double xc, const double yc, const double zc, array_1d< double, 3 > &N)
Definition: transfer_utility.h:343
double CalculateVol(const double x0, const double y0, const double x1, const double y1, const double x2, const double y2)
Definition: transfer_utility.h:424
output
Definition: generate_frictional_mortar_condition.py:444
input
Definition: generate_frictional_mortar_condition.py:435
x2
Definition: generate_frictional_mortar_condition.py:122
x1
Definition: generate_frictional_mortar_condition.py:121
def load(f)
Definition: ode_solve.py:307
float xc
Definition: rotating_cone.py:77
float yc
Definition: rotating_cone.py:78
N
Definition: sensitivityMatrix.py:29