24#ifndef DUMUX_FLUX_SHALLOW_WATER_FLUX_HH
25#define DUMUX_FLUX_SHALLOW_WATER_FLUX_HH
47template<
class NumEqVector>
61 template<
class Problem,
class FVElementGeometry,
class ElementVolumeVariables>
63 const typename FVElementGeometry::GridGeometry::GridView::template Codim<0>::Entity& element,
64 const FVElementGeometry& fvGeometry,
65 const ElementVolumeVariables& elemVolVars,
66 const typename FVElementGeometry::SubControlVolumeFace& scvf)
70 const auto& insideVolVars = elemVolVars[scvf.insideScvIdx()];
71 const auto& outsideVolVars = elemVolVars[scvf.outsideScvIdx()];
72 const auto& nxy = scvf.unitOuterNormal();
73 const auto gravity = problem.spatialParams().gravity(scvf.center());
76 outsideVolVars.waterDepth(),
77 insideVolVars.velocity(0),
78 outsideVolVars.velocity(0),
79 insideVolVars.velocity(1),
80 outsideVolVars.velocity(1),
81 insideVolVars.bedSurface(),
82 outsideVolVars.bedSurface(),
87 localFlux[0] = riemannFlux[0] * scvf.area();
88 localFlux[1] = riemannFlux[1] * scvf.area();
89 localFlux[2] = riemannFlux[2] * scvf.area();
This file includes a function to construct the Riemann problem.
Classes related to flux variables caching.
static NumEqVector flux(const Problem &problem, const typename FVElementGeometry::GridGeometry::GridView::template Codim< 0 >::Entity &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const typename FVElementGeometry::SubControlVolumeFace &scvf)
Prepares and compute the shallow water advective flux.
Definition: shallowwaterflux.hh:62
std::array< Scalar, 3 > riemannProblem(const Scalar waterDepthLeft, const Scalar waterDepthRight, Scalar velocityXLeft, Scalar velocityXRight, Scalar velocityYLeft, Scalar velocityYRight, const Scalar bedSurfaceLeft, const Scalar bedSurfaceRight, const Scalar gravity, const GlobalPosition &nxy)
Construct a Riemann problem and solve it.
Definition: riemannproblem.hh:71
typename NumEqVectorTraits< PrimaryVariables >::type NumEqVector
A vector with the same size as numbers of equations This is the default implementation and has to be ...
Definition: numeqvector.hh:46
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
The empty filler class corresponding to EmptyCache.
Definition: fluxvariablescaching.hh:32
Empty caches to use in a constitutive flux law/process, e.g. Darcy's law.
Definition: fluxvariablescaching.hh:66
Prepare and compute the shallow water advective flux.
Definition: shallowwaterflux.hh:49