DUNE PDELab (git)

Dune::PDELab::DGNavierStokesParameters< GV, RF, F, B, V, J, navier, full_tensor, IP > Class Template Reference

Parameter class for local operator DGNavierStokes. More...

#include <dune/pdelab/localoperator/dgnavierstokesparameter.hh>

Public Types

typedef Base::Traits Traits
 Traits class.
 

Public Member Functions

 DGNavierStokesParameters (const Dune::ParameterTree &configuration, F &f, B &b, V &v, J &j)
 Constructor that parses values from parameter tree. More...
 
Traits::RangeField incompressibilityScaling (typename Traits::RangeField dt) const
 Rescaling factor for the incompressibility equation.
 
template<typename GEO , typename IGEO , typename OGEO >
Traits::RangeField getFaceIP (const GEO &geo, const IGEO &igeo, const OGEO &ogeo)
 Get interior penalty parameter from skeleton face.
 
template<typename GEO , typename IGEO >
Traits::RangeField getFaceIP (const GEO &geo, const IGEO &igeo)
 Get interior penalty parameter from boundary face.
 
int epsilonIPSymmetryFactor ()
 
Traits::VelocityRange f (const EG &e, const typename Traits::Domain &x) const
 source term
 
Traits::BoundaryCondition::Type bctype (const IG &is, const typename Traits::IntersectionDomain &x) const
 boundary condition type from local intersection coordinate
 
Traits::RangeField mu (const EG &e, const typename Traits::Domain &x) const
 Dynamic viscosity value from local cell coordinate.
 
Traits::RangeField mu (const IG &ig, const typename Traits::IntersectionDomain &x) const
 Dynamic viscosity value from local intersection coordinate.
 
Traits::RangeField rho (const EG &eg, const typename Traits::Domain &x) const
 Density value from local cell coordinate.
 
Traits::RangeField rho (const IG &ig, const typename Traits::IntersectionDomain &x) const
 Density value from local intersection coordinate.
 
Traits::VelocityRange g (const EG &e, const typename Traits::Domain &x) const
 Dirichlet boundary condition value from local cell coordinate.
 
Traits::RangeField g2 (const EG &e, const typename Traits::Domain &x) const
 pressure source term
 
Traits::VelocityRange j (const IG &ig, const typename Traits::IntersectionDomain &x, const typename Traits::Domain &normal) const
 Neumann boundary condition (stress)
 

Detailed Description

template<typename GV, typename RF, typename F, typename B, typename V, typename J, bool navier = false, bool full_tensor = false, typename IP = DefaultInteriorPenalty<typename V::Traits::RangeFieldType>>
class Dune::PDELab::DGNavierStokesParameters< GV, RF, F, B, V, J, navier, full_tensor, IP >

Parameter class for local operator DGNavierStokes.

Template Parameters
GVGridView.
RFThe range field type of the Navier-Stokes solution.
FMomentum source term function
BBoundary condition function
VDirichlet velocity boundary condition function
JNeumann stress boundary function (vector- or scalar-valued). Scalar values will be interpreted as the magnitude of a vector oriented in outer normal direction. For prescribed pressure you can use $J=p \cdot n$.
navierFlag turning the local operator to a Navier-Stokes one.
full_tensorFlag enabling the assembling of the full tensor of the viscous stress.
IPA class providing the interior penalty for each face.

Constructor & Destructor Documentation

◆ DGNavierStokesParameters()

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool full_tensor = false, typename IP = DefaultInteriorPenalty<typename V::Traits::RangeFieldType>>
Dune::PDELab::DGNavierStokesParameters< GV, RF, F, B, V, J, navier, full_tensor, IP >::DGNavierStokesParameters ( const Dune::ParameterTree configuration,
F &  f,
B &  b,
V &  v,
J &  j 
)
inline

Constructor that parses values from parameter tree.

In order to parse the values correctly the ini-file should have the following structure:

[parameters]
rho = 1.0
mu = 1.0
[parameters.dg]
epsilon = -1
sigma = 6.0
beta = 1.0
Traits::RangeField rho(const EG &eg, const typename Traits::Domain &x) const
Density value from local cell coordinate.
Definition: stokesparameter.hh:221
Traits::RangeField mu(const EG &e, const typename Traits::Domain &x) const
Dynamic viscosity value from local cell coordinate.
Definition: stokesparameter.hh:205

And invocation in the code:

navierstokes_parameters(configuration.sub("parameters"), ... );

Member Function Documentation

◆ epsilonIPSymmetryFactor()

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool full_tensor = false, typename IP = DefaultInteriorPenalty<typename V::Traits::RangeFieldType>>
int Dune::PDELab::DGNavierStokesParameters< GV, RF, F, B, V, J, navier, full_tensor, IP >::epsilonIPSymmetryFactor ( )
inline

Return the symmetry factor epsilon for this IP discretization


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)