DUNE PDELab (git)
Dune::PDELab::ConvectionDiffusionCCFV< TP > Class Template Reference
#include <dune/pdelab/localoperator/convectiondiffusionccfv.hh>
Public Types | |
Flags selective assembly | |
enum | |
Whether to do selective assembly on the elements, i.e. whether or not skip_entity() should be called. | |
enum | |
Whether to do selective assembly on the intersections, i.e. whether or not skip_intersection() should be called. | |
Flags for the sparsity pattern | |
enum | |
Whether to assemble the pattern on the elements, i.e. whether or not pattern_volume() should be called. | |
enum | |
Whether to assemble the pattern on the elements after the skeleton has been handled, i.e. whether or not pattern_volume_post_skeleton() should be called. | |
enum | |
Whether to assemble the pattern on the interior intersections, i.e. whether or not pattern_skeleton() should be called. | |
enum | |
Whether to assemble the pattern on the boundary intersections, i.e. whether or not pattern_boundary() should be called. | |
Flags for the non-constant part of the residual and the jacobian | |
enum | |
Whether to call the local operator's alpha_volume(), jacobian_apply_volume() and jacobian_volume(). | |
enum | |
Whether to call the local operator's alpha_volume_post_skeleton(), jacobian_apply_volume_post_skeleton() and jacobian_volume_post_skeleton(). | |
enum | |
Whether to call the local operator's alpha_skeleton(), jacobian_apply_skeleton() and jacobian_skeleton(). | |
enum | |
Whether to call the local operator's alpha_boundary(), jacobian_apply_boundary() and jacobian_boundary(). | |
Flags for the constant part of the residual | |
enum | |
Whether to call the local operator's lambda_volume(). | |
enum | |
Whether to call the local operator's lambda_volume_post_skeleton(). | |
enum | |
Whether to call the local operator's lambda_skeleton(). | |
enum | |
Whether to call the local operator's lambda_boundary(). | |
Special flags | |
enum | |
Whether to visit the skeleton methods from both sides. | |
enum | |
Wheter the local operator describes a linear problem. | |
Public Member Functions | |
void | setTime (typename TP::Traits::RangeFieldType t) |
set time in parameter class | |
void | preStep (typename TP::Traits::RangeFieldType time, typename TP::Traits::RangeFieldType dt, int stages) |
to be called once before each time step | |
void | preStage (typename TP::Traits::RangeFieldType time, int r) |
to be called once before each stage | |
void | postStage () |
to be called once at the end of each stage | |
TP::Traits::RangeFieldType | suggestTimestep (typename TP::Traits::RangeFieldType dt) const |
to be called once before each stage | |
void | jacobian_apply_boundary (const IG &ig, const LFSU &lfsu_s, const X &x_s, const LFSV &lfsv_s, Y &y_s) const |
apply local jacobian of the boundaryterm | |
void | jacobian_apply_boundary (const IG &ig, const LFSU &lfsu_s, const X &x_s, const X &z_s, const LFSV &lfsv_s, Y &y_s) const |
apply local jacobian of the boundaryterm | |
TP::Traits::RangeFieldType | getTime () const |
get current time More... | |
void | postStep () |
to be called once at the end of each time step More... | |
int | getStage () const |
get current stage More... | |
Detailed Description
template<typename TP>
class Dune::PDELab::ConvectionDiffusionCCFV< TP >
class Dune::PDELab::ConvectionDiffusionCCFV< TP >
a local operator for solving the linear convection-diffusion equation with CCFV
\begin{align*} \nabla\cdot(-A(x) \nabla u + b(x) u) + c(x)u &=& f \mbox{ in } \Omega, \\ u(t,x) &=& g(t,x) \mbox{ on } \partial\Omega_D \\ (b(x) u - A(x)\nabla u) \cdot n &=& j \mbox{ on } \partial\Omega_N \\ -(A(x)\nabla u) \cdot n &=& o \mbox{ on } \partial\Omega_O \end{align*}
Note:
- Works only on a grid that is parallel to the coordinate axes.
- This formulation is valid for velocity fields which are non-divergence free.
- Assumes that the tensor is diagonal !
- Outflow boundary conditions should only be set on the outflow boundary
- Template Parameters
-
TP model of ConvectionDiffusionParameterInterface
Member Function Documentation
◆ getStage()
|
inlineinherited |
get current stage
- Returns
- The current stage number previously set by preStage().
◆ getTime()
|
inlineinherited |
get current time
- Returns
- The time previously set by setTime().
◆ postStep()
|
inlineinherited |
to be called once at the end of each time step
- Note
- With the OneStepMethod and the ExplicitOneStepMetod, for reasons unknown this is only called for temporal but not for spatial local operators. With the MultiStepMethod this is called for all local operators.
The documentation for this class was generated from the following file:
- dune/pdelab/localoperator/convectiondiffusionccfv.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)