Class used to calculate fluxes over axis-aligned surfaces.
#include <dumux/freeflow/navierstokes/fluxoveraxisalignedsurface.hh>
|
| FluxOverAxisAlignedSurface (const GridVariables &gridVariables, const SolutionVector &sol, const LocalResidual &localResidual, bool nonIntersectingSurfaceIsError=false) |
| The constructor. More...
|
|
template<class T > |
void | addAxisAlignedSurface (const std::string &name, T &&surface) |
| Add an axis-aligned surface with a given name. More...
|
|
void | addAxisAlignedSurface (const std::string &name, const GlobalPosition &lowerLeft, const GlobalPosition &upperRight) |
| Add an axis-aligned surface (segment in 2D) with a given name, specifying the surface's corner points. More...
|
|
void | addAxisAlignedPlane (const std::string &name, const GlobalPosition ¢er, const std::size_t normalDirectionIndex) |
| Add an axis-aligned plane (line in 2D) with a given name, specifying the planes's center and normal. More...
|
|
void | calculateAllFluxes () |
| Calculate the fluxes over all surfaces. More...
|
|
template<class FluxType > |
void | calculateFluxes (const FluxType &fluxType) |
| Calculate the fluxes over all surfaces for a given flux type. More...
|
|
const auto & | flux (const std::string &name) const |
| Return the flux over given surface. More...
|
|
const std::map< std::string, SurfaceData > & | surfaces () const |
| Provides access to all surfaces. More...
|
|
void | printAllFluxes () const |
| Prints all fluxes. More...
|
|
void | setNonIntersectingSurfaceIsError (bool isError=true) |
| Set if non-intersecting surfaces are treated as error. More...
|
|
◆ Surface
template<class GridVariables , class SolutionVector , class LocalResidual >
◆ FluxOverAxisAlignedSurface()
template<class GridVariables , class SolutionVector , class LocalResidual >
Dumux::FluxOverAxisAlignedSurface< GridVariables, SolutionVector, LocalResidual >::FluxOverAxisAlignedSurface |
( |
const GridVariables & |
gridVariables, |
|
|
const SolutionVector & |
sol, |
|
|
const LocalResidual & |
localResidual, |
|
|
bool |
nonIntersectingSurfaceIsError = false |
|
) |
| |
|
inline |
◆ addAxisAlignedPlane()
template<class GridVariables , class SolutionVector , class LocalResidual >
void Dumux::FluxOverAxisAlignedSurface< GridVariables, SolutionVector, LocalResidual >::addAxisAlignedPlane |
( |
const std::string & |
name, |
|
|
const GlobalPosition & |
center, |
|
|
const std::size_t |
normalDirectionIndex |
|
) |
| |
|
inline |
- Parameters
-
name | The name of the plane |
center | Center point of the plane |
normalDirectionIndex | Index of the plane's normal axis (0=x, 1=y, 2=z) |
◆ addAxisAlignedSurface() [1/2]
template<class GridVariables , class SolutionVector , class LocalResidual >
void Dumux::FluxOverAxisAlignedSurface< GridVariables, SolutionVector, LocalResidual >::addAxisAlignedSurface |
( |
const std::string & |
name, |
|
|
const GlobalPosition & |
lowerLeft, |
|
|
const GlobalPosition & |
upperRight |
|
) |
| |
|
inline |
- Parameters
-
name | The name of the surface |
lowerLeft | Lower left corner of surface |
upperRight | Upper right corner of surface |
◆ addAxisAlignedSurface() [2/2]
template<class GridVariables , class SolutionVector , class LocalResidual >
template<class T >
- Parameters
-
name | The name of the surface |
surface | The surface to add |
◆ calculateAllFluxes()
template<class GridVariables , class SolutionVector , class LocalResidual >
◆ calculateFluxes()
template<class GridVariables , class SolutionVector , class LocalResidual >
template<class FluxType >
- Parameters
-
fluxType | The flux type. This can be a lambda of the following form: [](const auto& element, const auto& fvGeometry, const auto& elemVolVars, const auto& scvf, const auto& elemFluxVarsCache) { return ... ; } |
◆ flux()
template<class GridVariables , class SolutionVector , class LocalResidual >
- Parameters
-
name | The name of the surface |
◆ printAllFluxes()
template<class GridVariables , class SolutionVector , class LocalResidual >
◆ setNonIntersectingSurfaceIsError()
template<class GridVariables , class SolutionVector , class LocalResidual >
◆ surfaces()
template<class GridVariables , class SolutionVector , class LocalResidual >
The documentation for this class was generated from the following file: