version 3.10-dev
stationaryvelocityfield.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
15#ifndef DUMUX_DISCRETIZATION_STATIONARY_VELOCITY_FIELD_HH
16#define DUMUX_DISCRETIZATION_STATIONARY_VELOCITY_FIELD_HH
17
18#include <type_traits>
19#include <dumux/flux/traits.hh>
20
23
24namespace Dumux {
25
30template <class Scalar>
32{
33public:
36 static constexpr DiscretizationMethod discMethod{};
37
40
42 template<class Problem, class Element,
43 class FVElementGeometry,
44 class ElementVolumeVariables,
45 class ElementFluxVarsCache>
46 static Scalar flux(const Problem& problem,
47 const Element& element,
48 const FVElementGeometry& fvGeometry,
49 const ElementVolumeVariables& elemVolVars,
50 const typename FVElementGeometry::SubControlVolumeFace& scvf,
51 int phaseIdx,
52 const ElementFluxVarsCache& elemFluxVarsCache)
53 {
55 return problem.spatialParams().volumeFlux(element, fvGeometry, elemVolVars, scvf);
56 }
57};
58
60template<class Scalar>
62: public std::true_type {};
63
64} // end namespace Dumux
65
66#endif
Evaluates a user given velocity field.
Definition: stationaryvelocityfield.hh:32
static constexpr DiscretizationMethod discMethod
state the discretization method this implementation belongs to
Definition: stationaryvelocityfield.hh:36
static Scalar flux(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const typename FVElementGeometry::SubControlVolumeFace &scvf, int phaseIdx, const ElementFluxVarsCache &elemFluxVarsCache)
returns the volume flux given in the spatial params
Definition: stationaryvelocityfield.hh:46
Defines the flux traits.
Classes related to flux variables caching.
The available discretization methods in Dumux.
Definition: adapt.hh:17
Definition: method.hh:140
Empty caches to use in a constitutive flux law/process, e.g. Darcy's law.
Definition: fluxvariablescaching.hh:54
Trait of an advection type stating whether it implements a stationary velocity field.
Definition: flux/traits.hh:24