KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Public Member Functions | List of all members
Kratos::ElementSizeCalculator< TDim, TNumNodes > Class Template Reference

A collection of functions to compute element size, to be used as the h parameter in stabilized CFD formulations. More...

#include <element_size_calculator.h>

Collaboration diagram for Kratos::ElementSizeCalculator< TDim, TNumNodes >:

Public Member Functions

double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double MinimumElementSize (const Geometry< Node > &rGeometry)
 
double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double AverageElementSize (const Geometry< Node > &rGeometry)
 
double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 
Life Cycle
 ElementSizeCalculator ()=delete
 
 ElementSizeCalculator (ElementSizeCalculator const &rOther)=delete
 Deleted copy constructor. More...
 
 ~ElementSizeCalculator ()
 Destructor. More...
 
Operators
ElementSizeCalculatoroperator= (ElementSizeCalculator const &rOther)=delete
 Deleted assignment operator. More...
 

Static Public Member Functions

Operations
static double MinimumElementSize (const Geometry< Node > &rGeometry)
 Minimum element size based on the geometry. More...
 
static double MinimumElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 Minimum element size derivative based on the geometry. More...
 
static double AverageElementSize (const Geometry< Node > &rGeometry)
 Average element size based on the geometry. More...
 
static double AverageElementSizeDerivative (const unsigned int DerivativeNodeIndex, const unsigned int DerivativeDirectionIndex, const Geometry< Node > &rGeometry)
 Average element size derivative based on the geometry. More...
 
static double ProjectedElementSize (const Geometry< Node > &rGeometry, const array_1d< double, 3 > &rVelocity)
 Projected element size in the direction of the velocity vector. More...
 
static double GradientsElementSize (const BoundedMatrix< double, 3, 2 > &rDN_DX)
 Element size based on the shape functions gradients. Triangle element version. More...
 
static double GradientsElementSize (const BoundedMatrix< double, 4, 3 > &rDN_DX)
 Element size based on the shape functions gradients. Tetrahedral element version. More...
 

Type Definitions

typedef BoundedMatrix< double, TNumNodes, TDim > ShapeDerivativesType
 
 KRATOS_CLASS_POINTER_DEFINITION (ElementSizeCalculator)
 Pointer definition of ElementSizeCalculator. More...
 

Detailed Description

template<std::size_t TDim, std::size_t TNumNodes>
class Kratos::ElementSizeCalculator< TDim, TNumNodes >

A collection of functions to compute element size, to be used as the h parameter in stabilized CFD formulations.

Member Typedef Documentation

◆ ShapeDerivativesType

template<std::size_t TDim, std::size_t TNumNodes>
typedef BoundedMatrix<double,TNumNodes,TDim> Kratos::ElementSizeCalculator< TDim, TNumNodes >::ShapeDerivativesType

Constructor & Destructor Documentation

◆ ElementSizeCalculator() [1/2]

template<std::size_t TDim, std::size_t TNumNodes>
Kratos::ElementSizeCalculator< TDim, TNumNodes >::ElementSizeCalculator ( )
delete

◆ ElementSizeCalculator() [2/2]

template<std::size_t TDim, std::size_t TNumNodes>
Kratos::ElementSizeCalculator< TDim, TNumNodes >::ElementSizeCalculator ( ElementSizeCalculator< TDim, TNumNodes > const &  rOther)
delete

Deleted copy constructor.

◆ ~ElementSizeCalculator()

template<std::size_t TDim, std::size_t TNumNodes>
Kratos::ElementSizeCalculator< TDim, TNumNodes >::~ElementSizeCalculator

Destructor.

Member Function Documentation

◆ AverageElementSize() [1/10]

double Kratos::ElementSizeCalculator< 2, 3 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [2/10]

double Kratos::ElementSizeCalculator< 2, 6 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [3/10]

double Kratos::ElementSizeCalculator< 2, 4 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [4/10]

double Kratos::ElementSizeCalculator< 2, 9 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [5/10]

double Kratos::ElementSizeCalculator< 3, 4 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [6/10]

double Kratos::ElementSizeCalculator< 3, 10 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [7/10]

double Kratos::ElementSizeCalculator< 3, 6 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [8/10]

double Kratos::ElementSizeCalculator< 3, 8 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [9/10]

double Kratos::ElementSizeCalculator< 3, 27 >::AverageElementSize ( const Geometry< Node > &  rGeometry)

◆ AverageElementSize() [10/10]

template<std::size_t TDim, std::size_t TNumNodes>
static double Kratos::ElementSizeCalculator< TDim, TNumNodes >::AverageElementSize ( const Geometry< Node > &  rGeometry)
static

Average element size based on the geometry.

Parameters
rGeometryThe geometry of calling element.
Returns
The computed size.

◆ AverageElementSizeDerivative() [1/10]

double Kratos::ElementSizeCalculator< 2, 3 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [2/10]

double Kratos::ElementSizeCalculator< 2, 6 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [3/10]

double Kratos::ElementSizeCalculator< 2, 4 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [4/10]

double Kratos::ElementSizeCalculator< 2, 9 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [5/10]

double Kratos::ElementSizeCalculator< 3, 4 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [6/10]

double Kratos::ElementSizeCalculator< 3, 10 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [7/10]

double Kratos::ElementSizeCalculator< 3, 6 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [8/10]

double Kratos::ElementSizeCalculator< 3, 8 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [9/10]

double Kratos::ElementSizeCalculator< 3, 27 >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ AverageElementSizeDerivative() [10/10]

template<std::size_t TDim, std::size_t TNumNodes>
static double Kratos::ElementSizeCalculator< TDim, TNumNodes >::AverageElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)
static

Average element size derivative based on the geometry.

Parameters
DerivativeNodeIndexNodeIndex for which the derivative is obtained
DerivativeDirectionIndexDirectionIndex for which the derivative is obtained
rGeometryThe geometry of calling element
Returns
The derivative w.r.t. DerivativeNodeIndex and DerivativeDirectionIndex

◆ GradientsElementSize() [1/2]

template<std::size_t TDim, std::size_t TNumNodes>
double Kratos::ElementSizeCalculator< TDim, TNumNodes >::GradientsElementSize ( const BoundedMatrix< double, 3, 2 > &  rDN_DX)
static

Element size based on the shape functions gradients. Triangle element version.

Parameters
rDN_DXThe shape functions gradients.
Returns
The computed size.

◆ GradientsElementSize() [2/2]

template<std::size_t TDim, std::size_t TNumNodes>
double Kratos::ElementSizeCalculator< TDim, TNumNodes >::GradientsElementSize ( const BoundedMatrix< double, 4, 3 > &  rDN_DX)
static

Element size based on the shape functions gradients. Tetrahedral element version.

Parameters
rDN_DXThe shape functions gradients.
Returns
The computed size.

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<std::size_t TDim, std::size_t TNumNodes>
Kratos::ElementSizeCalculator< TDim, TNumNodes >::KRATOS_CLASS_POINTER_DEFINITION ( ElementSizeCalculator< TDim, TNumNodes >  )

Pointer definition of ElementSizeCalculator.

◆ MinimumElementSize() [1/10]

double Kratos::ElementSizeCalculator< 2, 3 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [2/10]

double Kratos::ElementSizeCalculator< 2, 6 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [3/10]

double Kratos::ElementSizeCalculator< 2, 4 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [4/10]

double Kratos::ElementSizeCalculator< 2, 9 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [5/10]

double Kratos::ElementSizeCalculator< 3, 4 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [6/10]

double Kratos::ElementSizeCalculator< 3, 10 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [7/10]

double Kratos::ElementSizeCalculator< 3, 6 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [8/10]

double Kratos::ElementSizeCalculator< 3, 8 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [9/10]

double Kratos::ElementSizeCalculator< 3, 27 >::MinimumElementSize ( const Geometry< Node > &  rGeometry)

◆ MinimumElementSize() [10/10]

template<std::size_t TDim, std::size_t TNumNodes>
static double Kratos::ElementSizeCalculator< TDim, TNumNodes >::MinimumElementSize ( const Geometry< Node > &  rGeometry)
static

Minimum element size based on the geometry.

Parameters
rGeometryThe geometry of calling element.
Returns
The computed size.

◆ MinimumElementSizeDerivative() [1/10]

double Kratos::ElementSizeCalculator< 2, 3 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [2/10]

double Kratos::ElementSizeCalculator< 2, 6 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [3/10]

double Kratos::ElementSizeCalculator< 2, 4 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [4/10]

double Kratos::ElementSizeCalculator< 2, 9 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [5/10]

double Kratos::ElementSizeCalculator< 3, 4 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [6/10]

double Kratos::ElementSizeCalculator< 3, 10 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [7/10]

double Kratos::ElementSizeCalculator< 3, 6 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [8/10]

double Kratos::ElementSizeCalculator< 3, 8 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [9/10]

double Kratos::ElementSizeCalculator< 3, 27 >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)

◆ MinimumElementSizeDerivative() [10/10]

template<std::size_t TDim, std::size_t TNumNodes>
static double Kratos::ElementSizeCalculator< TDim, TNumNodes >::MinimumElementSizeDerivative ( const unsigned int  DerivativeNodeIndex,
const unsigned int  DerivativeDirectionIndex,
const Geometry< Node > &  rGeometry 
)
static

Minimum element size derivative based on the geometry.

Parameters
DerivativeNodeIndexNodeIndex for which the derivative is obtained
DerivativeDirectionIndexDirectionIndex for which the derivative is obtained
rGeometryThe geometry of calling element
Returns
The derivative w.r.t. DerivativeNodeIndex and DerivativeDirectionIndex

◆ operator=()

template<std::size_t TDim, std::size_t TNumNodes>
ElementSizeCalculator& Kratos::ElementSizeCalculator< TDim, TNumNodes >::operator= ( ElementSizeCalculator< TDim, TNumNodes > const &  rOther)
delete

Deleted assignment operator.

◆ ProjectedElementSize() [1/10]

double Kratos::ElementSizeCalculator< 2, 3 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [2/10]

double Kratos::ElementSizeCalculator< 2, 6 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [3/10]

double Kratos::ElementSizeCalculator< 2, 4 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [4/10]

double Kratos::ElementSizeCalculator< 2, 9 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [5/10]

double Kratos::ElementSizeCalculator< 3, 4 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [6/10]

double Kratos::ElementSizeCalculator< 3, 10 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [7/10]

double Kratos::ElementSizeCalculator< 3, 6 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [8/10]

double Kratos::ElementSizeCalculator< 3, 8 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [9/10]

double Kratos::ElementSizeCalculator< 3, 27 >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)

◆ ProjectedElementSize() [10/10]

template<std::size_t TDim, std::size_t TNumNodes>
static double Kratos::ElementSizeCalculator< TDim, TNumNodes >::ProjectedElementSize ( const Geometry< Node > &  rGeometry,
const array_1d< double, 3 > &  rVelocity 
)
static

Projected element size in the direction of the velocity vector.

Parameters
rGeometryThe geometry of calling element.
rVelocityThe velocity defining the direction of projection.
Returns
The computed size.

The documentation for this class was generated from the following files: