13 #ifndef KRATOS_D_VMS_H
14 #define KRATOS_D_VMS_H
52 template<
class TElementData >
137 DVMS(
IndexType NewId, GeometryType::Pointer pGeometry, Properties::Pointer pProperties);
162 Properties::Pointer pProperties)
const override;
173 GeometryType::Pointer pGeom,
174 Properties::Pointer pProperties)
const override;
220 std::vector<double>& rValues,
230 std::vector<Vector>& rValues,
235 std::vector<Matrix>& rValues,
251 std::string
Info()
const override;
255 void PrintInfo(std::ostream& rOStream)
const override;
284 #ifdef KRATOS_D_VMS_SUBSCALE_ERROR_INSTRUMENTATION
285 std::vector< double > mSubscaleIterationError;
286 std::vector< unsigned int > mSubscaleIterationCount;
319 const TElementData& rData,
326 const TElementData& rData,
330 const TElementData& rData,
331 double &rPressureSubscale)
const override;
334 const TElementData& rData)
const;
337 const TElementData& rData);
369 void save(
Serializer& rSerializer)
const override;
419 template<
class TElementData >
427 template<
class TElementData >
432 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
constexpr static unsigned int StrainSize
Definition: d_vms.h:103
Node NodeType
Node type (default is: Node)
Definition: d_vms.h:66
virtual void UpdateSubscaleVelocityPrediction(const TElementData &rData)
Definition: d_vms.cpp:792
void CalculateOnIntegrationPoints(Variable< array_1d< double, 3 >> const &rVariable, std::vector< array_1d< double, 3 >> &rValues, ProcessInfo const &rCurrentProcessInfo) override
virtual void AddMassStabilization(TElementData &rData, MatrixType &rMassMatrix)
Definition: d_vms.cpp:578
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Definition: d_vms.cpp:200
std::size_t SizeType
Definition: d_vms.h:82
~DVMS() override
Destructor.
Definition: d_vms.cpp:60
Kratos::Vector ShapeFunctionsType
Type for shape function values container.
Definition: d_vms.h:91
std::vector< std::size_t > EquationIdVectorType
Definition: d_vms.h:84
constexpr static unsigned int Dim
Definition: d_vms.h:99
void CalculateStabilizationParameters(const TElementData &rData, const array_1d< double, 3 > &Velocity, double &TauOne, double &TauTwo, double &TauP) const
Definition: d_vms.cpp:688
Geometry< NodeType > GeometryType
Geometry type (using with given NodeType)
Definition: d_vms.h:69
const Parameters GetSpecifications() const override
This method provides the specifications/requirements of the element.
Definition: d_vms.cpp:352
Kratos::Matrix ShapeFunctionDerivativesType
Type for a matrix containing the shape function gradients.
Definition: d_vms.h:94
std::vector< Dof< double >::Pointer > DofsVectorType
Definition: d_vms.h:86
GeometryType::ShapeFunctionsGradientsType ShapeFunctionDerivativesArrayType
Type for an array of shape function gradient matrices.
Definition: d_vms.h:97
constexpr static double mSubscalePredictionResidualTolerance
Definition: d_vms.h:273
Matrix MatrixType
Matrix type for local contributions to the linear system.
Definition: d_vms.h:78
void Calculate(const Variable< array_1d< double, 3 > > &rVariable, array_1d< double, 3 > &rOutput, const ProcessInfo &rCurrentProcessInfo) override
void CalculateProjections(const ProcessInfo &rCurrentProcessInfo) override
Definition: d_vms.cpp:624
DenseVector< array_1d< double, Dim > > mPredictedSubscaleVelocity
Definition: d_vms.h:281
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition of nodes container type, redefined from GeometryType.
Definition: d_vms.h:72
Vector VectorType
Vector type for local contributions to the linear system.
Definition: d_vms.h:75
virtual void SubscalePressure(const TElementData &rData, double &rPressureSubscale) const override
Definition: d_vms.cpp:744
std::size_t IndexType
Definition: d_vms.h:80
DVMS(IndexType NewId=0)
Default constuctor.
Definition: d_vms.cpp:29
constexpr static unsigned int mSubscalePredictionMaxIterations
Definition: d_vms.h:274
constexpr static double mTauC2
Definition: d_vms.h:271
virtual void Initialize(const ProcessInfo &rCurrentProcessInfo) override
Set up the element.
Definition: d_vms.cpp:121
virtual void InitializeNonLinearIteration(const ProcessInfo &rCurrentProcessInfo) override
Predict the value of the small scale velocity for the current iteration.
Definition: d_vms.cpp:177
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, Properties::Pointer pProperties) const override
Create a new element of this type.
Definition: d_vms.cpp:67
std::string Info() const override
Turn back information as a string.
Definition: d_vms.cpp:386
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: d_vms.cpp:395
void Calculate(const Variable< double > &rVariable, double &rOutput, const ProcessInfo &rCurrentProcessInfo) override
Definition: d_vms.cpp:80
constexpr static unsigned int LocalSize
Definition: d_vms.h:102
DenseVector< array_1d< double, Dim > > mOldSubscaleVelocity
Definition: d_vms.h:282
constexpr static unsigned int BlockSize
Definition: d_vms.h:101
virtual array_1d< double, 3 > FullConvectiveVelocity(const TElementData &rData) const
Definition: d_vms.cpp:778
PointerVectorSet< Dof< double >, IndexedObject > DofsArrayType
Definition: d_vms.h:88
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(DVMS)
Pointer definition of DVMS.
constexpr static double mTauC1
Definition: d_vms.h:270
constexpr static unsigned int NumNodes
Definition: d_vms.h:100
virtual void SubscaleVelocity(const TElementData &rData, array_1d< double, 3 > &rVelocitySubscale) const override
Definition: d_vms.cpp:713
virtual void AddMassLHS(TElementData &rData, MatrixType &rMassMatrix) override
Definition: d_vms.cpp:545
constexpr static double mSubscalePredictionVelocityTolerance
Definition: d_vms.h:272
void AddVelocitySystem(TElementData &rData, MatrixType &rLocalLHS, VectorType &rLocalRHS) override
Definition: d_vms.cpp:407
virtual void FinalizeSolutionStep(const ProcessInfo &rCurrentProcessInfo) override
Update the values of tracked small scale quantities.
Definition: d_vms.cpp:150
std::size_t IndexType
Definition: flags.h:74
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: fluid_element.hpp:584
This defines the geometrical object, base definition of the element and condition entities.
Definition: geometrical_object.h:58
Geometry base class.
Definition: geometry.h:71
This object defines an indexed object.
Definition: indexed_object.h:54
This class defines the node.
Definition: node.h:65
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
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
constexpr static unsigned int BlockSize
Definition: qs_vms.h:99
constexpr static unsigned int LocalSize
Definition: qs_vms.h:100
constexpr static unsigned int Dim
Definition: qs_vms.h:97
constexpr static unsigned int NumNodes
Definition: qs_vms.h:98
constexpr static unsigned int StrainSize
Definition: qs_vms.h:101
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
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
e
Definition: run_cpp_mpi_tests.py:31