dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor > Class Template Reference

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

Inheritance diagram for Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >:
Inheritance graph

Public Types

typedef NavierStokesParameterTraits< GV, RF > Traits
 Type traits.
 

Public Member Functions

 NavierStokesDefaultParameters (const Dune::ParameterTree &config, F &f, B &b, V &v, J &j)
 Constructor.
 
 NavierStokesDefaultParameters (const RF &mu, const RF &rho, F &f, B &b, V &v, J &j)
 
template<typename EG >
Traits::VelocityRange f (const EG &e, const typename Traits::Domain &x) const
 source term
 
template<typename IG >
Traits::BoundaryCondition::Type bctype (const IG &is, const typename Traits::IntersectionDomain &x) const
 boundary condition type from local intersection coordinate
 
template<typename EG >
Traits::RangeField mu (const EG &e, const typename Traits::Domain &x) const
 Dynamic viscosity value from local cell coordinate.
 
template<typename IG >
Traits::RangeField mu (const IG &ig, const typename Traits::IntersectionDomain &x) const
 Dynamic viscosity value from local intersection coordinate.
 
template<typename EG >
Traits::RangeField rho (const EG &eg, const typename Traits::Domain &x) const
 Density value from local cell coordinate.
 
template<typename IG >
Traits::RangeField rho (const IG &ig, const typename Traits::IntersectionDomain &x) const
 Density value from local intersection coordinate.
 
template<typename EG >
Traits::VelocityRange g (const EG &e, const typename Traits::Domain &x) const
 Dirichlet boundary condition value from local cell coordinate.
 
template<typename EG >
Traits::RangeField g2 (const EG &e, const typename Traits::Domain &x) const
 pressure source term
 
template<typename IG >
Traits::VelocityRange j (const IG &ig, const typename Traits::IntersectionDomain &x, const typename Traits::Domain &normal) const
 Neumann boundary condition (stress)
 
void setTime (RF time)
 

Static Public Attributes

static const bool assemble_navier = navier
 
static const bool assemble_full_tensor = tensor
 

Detailed Description

template<typename GV, typename RF, typename F, typename B, typename V, typename J, bool navier = false, bool tensor = false>
class Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >

Default implementation for the parameter class to be used with the Taylor-Hood Navier-Stokes local operator.

This is designed to work with the TaylorHoodNavierStokes, TaylorHoodNavierStokesJacobian and NavierStokesMass local operator classes.

Template Parameters
GVGridView.
RFThe range field type of the Navier-Stokes solution.
FExternal force term function (vector-valued).
BBoundary type function returning an element of StokesBoundaryCondition.
VDirichlet velocity 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.

Member Typedef Documentation

◆ Traits

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
typedef NavierStokesParameterTraits<GV,RF> Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::Traits

Type traits.

Constructor & Destructor Documentation

◆ NavierStokesDefaultParameters() [1/2]

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::NavierStokesDefaultParameters ( const Dune::ParameterTree &  config,
F &  f,
B &  b,
V &  v,
J &  j 
)
inline

Constructor.

◆ NavierStokesDefaultParameters() [2/2]

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::NavierStokesDefaultParameters ( const RF &  mu,
const RF &  rho,
F &  f,
B &  b,
V &  v,
J &  j 
)
inline

Member Function Documentation

◆ bctype()

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename IG >
Traits::BoundaryCondition::Type Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::bctype ( const IG &  is,
const typename Traits::IntersectionDomain &  x 
) const
inline

boundary condition type from local intersection coordinate

◆ f()

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename EG >
Traits::VelocityRange Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::f ( const EG &  e,
const typename Traits::Domain &  x 
) const
inline

source term

◆ g()

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename EG >
Traits::VelocityRange Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::g ( const EG &  e,
const typename Traits::Domain &  x 
) const
inline

Dirichlet boundary condition value from local cell coordinate.

◆ g2()

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename EG >
Traits::RangeField Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::g2 ( const EG &  e,
const typename Traits::Domain &  x 
) const
inline

pressure source term

◆ j()

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename IG >
Traits::VelocityRange Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::j ( const IG &  ig,
const typename Traits::IntersectionDomain &  x,
const typename Traits::Domain &  normal 
) const

Neumann boundary condition (stress)

◆ mu() [1/2]

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename EG >
Traits::RangeField Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::mu ( const EG &  e,
const typename Traits::Domain &  x 
) const
inline

Dynamic viscosity value from local cell coordinate.

◆ mu() [2/2]

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename IG >
Traits::RangeField Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::mu ( const IG &  ig,
const typename Traits::IntersectionDomain &  x 
) const
inline

Dynamic viscosity value from local intersection coordinate.

◆ rho() [1/2]

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename EG >
Traits::RangeField Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::rho ( const EG &  eg,
const typename Traits::Domain &  x 
) const
inline

Density value from local cell coordinate.

◆ rho() [2/2]

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
template<typename IG >
Traits::RangeField Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::rho ( const IG &  ig,
const typename Traits::IntersectionDomain &  x 
) const
inline

Density value from local intersection coordinate.

◆ setTime()

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
void Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::setTime ( RF  time)
inline

Member Data Documentation

◆ assemble_full_tensor

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
const bool Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::assemble_full_tensor = tensor
static

◆ assemble_navier

template<typename GV , typename RF , typename F , typename B , typename V , typename J , bool navier = false, bool tensor = false>
const bool Dune::PDELab::NavierStokesDefaultParameters< GV, RF, F, B, V, J, navier, tensor >::assemble_navier = navier
static

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