version 3.10-dev
fulltensor.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//
12#ifndef DUMUX_MATERIAL_FLUIDMATRIX_DISPERSIONTENSORS_FULLTENSOR_HH
13#define DUMUX_MATERIAL_FLUIDMATRIX_DISPERSIONTENSORS_FULLTENSOR_HH
14
15#include <dune/common/fmatrix.hh>
17
18namespace Dumux {
19
24template<class TypeTag>
26{
29 using FVElementGeometry = typename GridGeometry::LocalView;
30 using SubControlVolumeFace = typename GridGeometry::SubControlVolumeFace;
31 using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView;
32
35 static const int dimWorld = GridView::dimensionworld;
36 using DimWorldMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
37
38public:
39
40 template <class ElementFluxVariablesCache>
41 static DimWorldMatrix compositionalDispersionTensor(const Problem& problem,
42 const SubControlVolumeFace& scvf,
43 const FVElementGeometry&,
44 const ElementVolumeVariables&,
45 const ElementFluxVariablesCache&,
46 const int phaseIdx,
47 const int compIdx)
48 { return problem.spatialParams().dispersionTensor(scvf.center(), phaseIdx, compIdx); }
49
50 template <class ElementFluxVariablesCache>
51 static DimWorldMatrix thermalDispersionTensor(const Problem& problem,
52 const SubControlVolumeFace& scvf,
53 const FVElementGeometry&,
54 const ElementVolumeVariables&,
55 const ElementFluxVariablesCache&,
56 const int phaseIdx)
57 { return problem.spatialParams().dispersionTensor(scvf.center(), phaseIdx); }
58
59};
60
61} // end namespace Dumux
62
63#endif
Full dispersion tensor.
Definition: fulltensor.hh:26
static DimWorldMatrix thermalDispersionTensor(const Problem &problem, const SubControlVolumeFace &scvf, const FVElementGeometry &, const ElementVolumeVariables &, const ElementFluxVariablesCache &, const int phaseIdx)
Definition: fulltensor.hh:51
static DimWorldMatrix compositionalDispersionTensor(const Problem &problem, const SubControlVolumeFace &scvf, const FVElementGeometry &, const ElementVolumeVariables &, const ElementFluxVariablesCache &, const int phaseIdx, const int compIdx)
Definition: fulltensor.hh:41
Defines all properties used in Dumux.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
Definition: adapt.hh:17