33 #ifndef __H__UG__PLUGINS__NAVIER_STOKES__INCOMPRESSIBLE__FVCR__NAVIER_STOKES_FVCR__
34 #define __H__UG__PLUGINS__NAVIER_STOKES__INCOMPRESSIBLE__FVCR__NAVIER_STOKES_FVCR__
45 #include "../incompressible_navier_stokes_base.h"
46 #include "../../upwind_interface.h"
54 template<
typename TDomain>
73 NavierStokesFVCR(
const std::vector<std::string>& vFct,
const std::vector<std::string>& vSubset);
104 void prepare_setting(
const std::vector<LFEID>& vLfeID,
bool bNonRegularGrid);
117 template <
typename TFVGeom>
154 template <
typename TElem,
typename TFVGeom>
157 template <
typename TElem,
typename TFVGeom>
160 template <
typename TElem,
typename TFVGeom>
163 template <
typename TElem,
typename TFVGeom>
166 template <
typename TElem,
typename TFVGeom>
169 template <
typename TElem,
typename TFVGeom>
172 template <
typename TElem,
typename TFVGeom>
175 template <
typename TElem,
typename TFVGeom>
179 template <
typename TElem,
typename TFVGeom>
function NavierStokes(fcts, subsets, discType)
SmartPtr< CplUserData< number, dim > > user_data()
Definition: upwind_interface.h:57
Finite Volume Element Discretization for the incompressible Navier-Stokes Equation.
Definition: incompressible_navier_stokes_base.h:146
number m_bFullNewtonFactor
factor for exact jacobian, (1 for exact jacobian, 0 for fix point)
Definition: navier_stokes_base.h:207
bool m_bLaplace
flag if using only laplace term
Definition: incompressible_navier_stokes_base.h:256
bool m_bStokes
flag if solving the Stokes equation
Definition: incompressible_navier_stokes_base.h:253
bool m_bPecletBlend
flag if using Peclet Blending
Definition: incompressible_navier_stokes_base.h:244
number m_gradDivFactor
factor for div grad stabilization
Definition: incompressible_navier_stokes_base.h:250
static const int dim
World dimension.
Definition: incompressible_navier_stokes_base.h:156
Definition: navier_stokes_fvcr.h:57
virtual std::string disc_type() const
returns string identifying disc type
Definition: navier_stokes_fvcr.h:110
NavierStokesFVCR< TDomain > this_type
own type
Definition: navier_stokes_fvcr.h:63
void init()
Definition: navier_stokes_fvcr.cpp:64
void add_jac_A_elem(LocalMatrix &J, const LocalVector &u, GridObject *elem, const MathVector< dim > vCornerCoords[])
Definition: navier_stokes_fvcr.cpp:271
void register_func()
Definition: navier_stokes_fvcr.cpp:829
void prepare_setting(const std::vector< LFEID > &vLfeID, bool bNonRegularGrid)
type of trial space for each function used
Definition: navier_stokes_fvcr.cpp:92
bool m_bDefectUpwind
flag if using upwind in defect computation
Definition: navier_stokes_fvcr.h:123
void prep_elem_loop(const ReferenceObjectID roid, const int si)
Definition: navier_stokes_fvcr.cpp:148
void add_rhs_elem(LocalVector &d, GridObject *elem, const MathVector< dim > vCornerCoords[])
Definition: navier_stokes_fvcr.cpp:735
void set_kinematic_viscosity(SmartPtr< CplUserData< number, dim > > user)
sets the kinematic viscosity
Definition: navier_stokes_fvcr.cpp:120
void set_upwind(const std::string &name)
sets the upwind based on a string identifier
Definition: navier_stokes_fvcr.h:99
void set_defect_upwind(bool defectUpwind)
Definition: navier_stokes_fvcr.h:91
DataImport< MathMatrix< dim, dim >, dim > m_imCentralGradient
Data import for central gradient.
Definition: navier_stokes_fvcr.h:136
void register_all_funcs(bool bHang)
NavierStokesFVCR(const char *functions, const char *subsets)
Definition: navier_stokes_fvcr.cpp:47
bool get_defect_upwind()
Definition: navier_stokes_fvcr.h:92
DataImport< MathVector< dim >, dim > m_imSource
Data import for source.
Definition: navier_stokes_fvcr.h:126
void add_jac_M_elem(LocalMatrix &J, const LocalVector &u, GridObject *elem, const MathVector< dim > vCornerCoords[])
Definition: navier_stokes_fvcr.cpp:675
virtual bool use_hanging() const
returns if hanging nodes are needed
Definition: navier_stokes_fvcr.cpp:113
void set_source(SmartPtr< CplUserData< MathVector< dim >, dim > > user)
sets the source function
Definition: navier_stokes_fvcr.cpp:135
number peclet_blend(MathVector< dim > &UpwindVel, const TFVGeom &geo, size_t ip, const MathVector< dim > &StdVel, number kinVisco)
mixed upwind for Crouzeix-Raviart elements
Definition: navier_stokes_fvcr.cpp:249
void fsh_elem_loop()
Definition: navier_stokes_fvcr.cpp:201
void prep_elem(const LocalVector &u, GridObject *elem, const ReferenceObjectID roid, const MathVector< dim > vCornerCoords[])
Definition: navier_stokes_fvcr.cpp:208
DataImport< number, dim > m_imKinViscosity
Data import for kinematic viscosity.
Definition: navier_stokes_fvcr.h:129
void set_density(SmartPtr< CplUserData< number, dim > > user)
sets the density
Definition: navier_stokes_fvcr.cpp:127
void add_def_A_elem(LocalVector &d, const LocalVector &u, GridObject *elem, const MathVector< dim > vCornerCoords[])
Definition: navier_stokes_fvcr.cpp:509
static const size_t _P_
abbreviation for pressure
Definition: navier_stokes_fvcr.h:145
void set_upwind(SmartPtr< INavierStokesUpwind< dim > > spUpwind)
sets an upwinding for the convective term of momentum equation
Definition: navier_stokes_fvcr.h:95
IncompressibleNavierStokesBase< TDomain > base_type
Base class type.
Definition: navier_stokes_fvcr.h:60
static const int dim
World dimension.
Definition: navier_stokes_fvcr.h:67
SmartPtr< INavierStokesUpwind< dim > > m_spConvUpwind
Upwinding for velocity in convective term of momentum equation.
Definition: navier_stokes_fvcr.h:142
SmartPtr< CplUserData< number, dim > > density()
returns density
Definition: navier_stokes_fvcr.h:86
DataImport< number, dim > m_imDensitySCV
Definition: navier_stokes_fvcr.h:133
void add_def_M_elem(LocalVector &d, const LocalVector &u, GridObject *elem, const MathVector< dim > vCornerCoords[])
Definition: navier_stokes_fvcr.cpp:705
DataImport< number, dim > m_imDensitySCVF
Data import for density.
Definition: navier_stokes_fvcr.h:132
SmartPtr< CplUserData< number, dim > > kinematic_viscosity()
returns kinematic viscosity
Definition: navier_stokes_fvcr.h:80
DataImport< MathVector< dim >, dim > m_imPressureGradient
Data import for central gradient.
Definition: navier_stokes_fvcr.h:139