Commit 57cdca8e authored by Bernd Flemisch's avatar Bernd Flemisch Committed by Katharina Heck
Browse files

[cleanup][examples] replace local names `FVGridGeometry` by `GridGeometry`

parent 7cd5d094
......@@ -87,8 +87,8 @@ int main(int argc, char** argv) try
// #### Set-up
// We create and initialize the finite volume grid geometry, the problem, the linear system, including the jacobian matrix, the residual and the solution vector and the gridvariables.
// We need the finite volume geometry to build up the subcontrolvolumes (scv) and subcontrolvolume faces (scvf) for each element of the grid partition.
using FVGridGeometry = GetPropType<OnePTypeTag, Properties::GridGeometry>;
auto fvGridGeometry = std::make_shared<FVGridGeometry>(leafGridView);
using GridGeometry = GetPropType<OnePTypeTag, Properties::GridGeometry>;
auto fvGridGeometry = std::make_shared<GridGeometry>(leafGridView);
fvGridGeometry->update();
// In the problem, we define the boundary and initial conditions.
......
......@@ -72,10 +72,10 @@ template<class TypeTag>
struct SpatialParams<TypeTag, TTag::IncompressibleTest>
{
// We define convenient shortcuts to the properties `GridGeometry` and `Scalar`:
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
// Finally, we set the spatial parameters:
using type = OnePTestSpatialParams<FVGridGeometry, Scalar>;
using type = OnePTestSpatialParams<GridGeometry, Scalar>;
};
// The local residual contains analytic derivative methods for incompressible flow:
......@@ -120,14 +120,14 @@ class OnePTestProblem : public PorousMediumFlowProblem<TypeTag>
using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>;
using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView;
using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace;
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>;
static constexpr int dimWorld = GridView::dimensionworld;
public:
// This is the constructor of our problem class:
OnePTestProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
OnePTestProblem(std::shared_ptr<const GridGeometry> fvGridGeometry)
: ParentType(fvGridGeometry) {}
// First, we define the type of boundary conditions depending on location. Two types of boundary conditions
......
......@@ -73,9 +73,9 @@ struct Problem<TypeTag, TTag::TracerTest> { using type = TracerTestProblem<TypeT
template<class TypeTag>
struct SpatialParams<TypeTag, TTag::TracerTest>
{
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using type = TracerTestSpatialParams<FVGridGeometry, Scalar>;
using type = TracerTestSpatialParams<GridGeometry, Scalar>;
};
// We define that mass fractions are used to define the concentrations
......@@ -151,19 +151,19 @@ class TracerTestProblem : public PorousMediumFlowProblem<TypeTag>
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices;
using GridView = GetPropType<TypeTag, Properties::GridView>;
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>;
using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
using SpatialParams = GetPropType<TypeTag, Properties::SpatialParams>;
using Element = typename FVGridGeometry::GridView::template Codim<0>::Entity;
using Element = typename GridGeometry::GridView::template Codim<0>::Entity;
using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
//We create a bool saying whether mole or mass fractions are used
static constexpr bool useMoles = getPropValue<TypeTag, Properties::UseMoles>();
public:
// This is the constructor of our problem class:
TracerTestProblem(std::shared_ptr<const FVGridGeometry> fvGridGeom)
TracerTestProblem(std::shared_ptr<const GridGeometry> fvGridGeom)
: ParentType(fvGridGeom)
{
// We print out whether mole or mass fractions are used
......
......@@ -34,25 +34,25 @@ namespace Dumux {
// In the `OnePTestSpatialParams` class, we define all functions needed to describe the porous matrix, e.g. porosity and permeability for the 1p_problem.
template<class FVGridGeometry, class Scalar>
template<class GridGeometry, class Scalar>
class OnePTestSpatialParams
: public FVSpatialParamsOneP<FVGridGeometry, Scalar,
OnePTestSpatialParams<FVGridGeometry, Scalar>>
: public FVSpatialParamsOneP<GridGeometry, Scalar,
OnePTestSpatialParams<GridGeometry, Scalar>>
{
// We introduce `using` declarations that are derived from the property system, which we need in this class.
using GridView = typename FVGridGeometry::GridView;
using FVElementGeometry = typename FVGridGeometry::LocalView;
using GridView = typename GridGeometry::GridView;
using FVElementGeometry = typename GridGeometry::LocalView;
using SubControlVolume = typename FVElementGeometry::SubControlVolume;
using Element = typename GridView::template Codim<0>::Entity;
using ParentType = FVSpatialParamsOneP<FVGridGeometry, Scalar,
OnePTestSpatialParams<FVGridGeometry, Scalar>>;
using ParentType = FVSpatialParamsOneP<GridGeometry, Scalar,
OnePTestSpatialParams<GridGeometry, Scalar>>;
static constexpr int dimWorld = GridView::dimensionworld;
using GlobalPosition = typename SubControlVolume::GlobalPosition;
public:
using PermeabilityType = Scalar;
OnePTestSpatialParams(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
OnePTestSpatialParams(std::shared_ptr<const GridGeometry> fvGridGeometry)
: ParentType(fvGridGeometry), K_(fvGridGeometry->gridView().size(0), 0.0)
{
// ### Generation of the random permeability field
......
......@@ -33,25 +33,25 @@ namespace Dumux {
// In the `TracerTestSpatialParams` class, we define all functions needed to describe spatially dependent parameters for the `tracer_problem`.
template<class FVGridGeometry, class Scalar>
template<class GridGeometry, class Scalar>
class TracerTestSpatialParams
: public FVSpatialParamsOneP<FVGridGeometry, Scalar,
TracerTestSpatialParams<FVGridGeometry, Scalar>>
: public FVSpatialParamsOneP<GridGeometry, Scalar,
TracerTestSpatialParams<GridGeometry, Scalar>>
{
using GridView = typename FVGridGeometry::GridView;
using FVElementGeometry = typename FVGridGeometry::LocalView;
using GridView = typename GridGeometry::GridView;
using FVElementGeometry = typename GridGeometry::LocalView;
using SubControlVolume = typename FVElementGeometry::SubControlVolume;
using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace;
using Element = typename GridView::template Codim<0>::Entity;
using ParentType = FVSpatialParamsOneP<FVGridGeometry, Scalar,
TracerTestSpatialParams<FVGridGeometry, Scalar>>;
using ParentType = FVSpatialParamsOneP<GridGeometry, Scalar,
TracerTestSpatialParams<GridGeometry, Scalar>>;
static const int dimWorld = GridView::dimensionworld;
using GlobalPosition = typename Dune::FieldVector<Scalar, dimWorld>;
public:
TracerTestSpatialParams(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
TracerTestSpatialParams(std::shared_ptr<const GridGeometry> fvGridGeometry)
: ParentType(fvGridGeometry) {}
// ### Properties of the porous matrix
......
......@@ -102,8 +102,8 @@ int main(int argc, char** argv) try
// We create and initialize the finite volume grid geometry, the problem, the linear system, including the jacobian matrix, the residual and the solution vector and the gridvariables.
//
// We need the finite volume geometry to build up the subcontrolvolumes (scv) and subcontrolvolume faces (scvf) for each element of the grid partition.
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
auto fvGridGeometry = std::make_shared<FVGridGeometry>(leafGridView);
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
auto fvGridGeometry = std::make_shared<GridGeometry>(leafGridView);
fvGridGeometry->update();
// In the problem, we define the boundary and initial conditions.
......
......@@ -106,11 +106,11 @@ namespace Dumux {
{
// We define convenient shortcuts to the properties GridGeometry and Scalar:
private:
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
// Finally we set the spatial parameters:
public:
using type = TwoPTestSpatialParams<FVGridGeometry, Scalar>;
using type = TwoPTestSpatialParams<GridGeometry, Scalar>;
};
// We enable caching for the grid volume variables, the grid flux variables and the FV grid geometry. The cache
......@@ -139,7 +139,7 @@ class PointSourceProblem : public PorousMediumFlowProblem<TypeTag>
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>;
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using PointSource = GetPropType<TypeTag, Properties::PointSource>;
using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>;
using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
......@@ -157,7 +157,7 @@ class PointSourceProblem : public PorousMediumFlowProblem<TypeTag>
public:
// This is the constructor of our problem class:
PointSourceProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
PointSourceProblem(std::shared_ptr<const GridGeometry> fvGridGeometry)
: ParentType(fvGridGeometry)
{
// We read in the values for the initial condition of our simulation:
......
......@@ -32,17 +32,17 @@ namespace Dumux {
//In the TwoPTestSpatialParams class we define all functions needed to describe the porous matrix, e.g. porosity and permeability
template<class FVGridGeometry, class Scalar>
template<class GridGeometry, class Scalar>
class TwoPTestSpatialParams
: public FVSpatialParams<FVGridGeometry, Scalar, TwoPTestSpatialParams<FVGridGeometry, Scalar>>
: public FVSpatialParams<GridGeometry, Scalar, TwoPTestSpatialParams<GridGeometry, Scalar>>
{
//we introduce using declarations that are derived from the property system which we need in this class
using GridView = typename FVGridGeometry::GridView;
using GridView = typename GridGeometry::GridView;
using Element = typename GridView::template Codim<0>::Entity;
using FVElementGeometry = typename FVGridGeometry::LocalView;
using FVElementGeometry = typename GridGeometry::LocalView;
using SubControlVolume = typename FVElementGeometry::SubControlVolume;
using ThisType = TwoPTestSpatialParams<FVGridGeometry, Scalar>;
using ParentType = FVSpatialParams<FVGridGeometry, Scalar, ThisType>;
using ThisType = TwoPTestSpatialParams<GridGeometry, Scalar>;
using ParentType = FVSpatialParams<GridGeometry, Scalar, ThisType>;
static constexpr int dimWorld = GridView::dimensionworld;
using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
......@@ -54,7 +54,7 @@ public:
using MaterialLawParams = typename MaterialLaw::Params;
using PermeabilityType = Scalar;
TwoPTestSpatialParams(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
TwoPTestSpatialParams(std::shared_ptr<const GridGeometry> fvGridGeometry)
: ParentType(fvGridGeometry)
{
//we get the position of the lens from the params.input file. The lens is defined by the position of the lower left and the upper right corner
......
......@@ -68,14 +68,14 @@ template<class TypeTag>
struct SpatialParams<TypeTag, TTag::RoughChannel>
{
private:
// We define convenient shortcuts to the properties FVGridGeometry, Scalar, ElementVolumeVariables and VolumeVariables:
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
// We define convenient shortcuts to the properties GridGeometry, Scalar, ElementVolumeVariables and VolumeVariables:
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView;
using VolumeVariables = typename ElementVolumeVariables::VolumeVariables;
// Finally we set the spatial parameters:
public:
using type = RoughChannelSpatialParams<FVGridGeometry, Scalar, VolumeVariables>;
using type = RoughChannelSpatialParams<GridGeometry, Scalar, VolumeVariables>;
};
// We enable caching for the FV grid geometry and the grid volume variables. The cache
......@@ -103,7 +103,7 @@ class RoughChannelProblem : public ShallowWaterProblem<TypeTag>
using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices;
using FVGridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using NeumannFluxes = GetPropType<TypeTag, Properties::NumEqVector>;
using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView;
using GridVariables = GetPropType<TypeTag, Properties::GridVariables>;
......@@ -119,7 +119,7 @@ class RoughChannelProblem : public ShallowWaterProblem<TypeTag>
public:
// This is the constructor of our problem class.
RoughChannelProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
RoughChannelProblem(std::shared_ptr<const GridGeometry> fvGridGeometry)
: ParentType(fvGridGeometry)
{
// We read the parameters from the params.input file.
......
......@@ -34,23 +34,23 @@
namespace Dumux {
//In the RoughChannelSpatialParams class we define all functions needed to describe the spatial distributed parameters.
template<class FVGridGeometry, class Scalar, class VolumeVariables>
template<class GridGeometry, class Scalar, class VolumeVariables>
class RoughChannelSpatialParams
: public FVSpatialParams<FVGridGeometry, Scalar,
RoughChannelSpatialParams<FVGridGeometry, Scalar, VolumeVariables>>
: public FVSpatialParams<GridGeometry, Scalar,
RoughChannelSpatialParams<GridGeometry, Scalar, VolumeVariables>>
{
// We introduce using declarations that are derived from the property system which we need in this class
using ThisType = RoughChannelSpatialParams<FVGridGeometry, Scalar, VolumeVariables>;
using ParentType = FVSpatialParams<FVGridGeometry, Scalar, ThisType>;
using GridView = typename FVGridGeometry::GridView;
using FVElementGeometry = typename FVGridGeometry::LocalView;
using ThisType = RoughChannelSpatialParams<GridGeometry, Scalar, VolumeVariables>;
using ParentType = FVSpatialParams<GridGeometry, Scalar, ThisType>;
using GridView = typename GridGeometry::GridView;
using FVElementGeometry = typename GridGeometry::LocalView;
using SubControlVolume = typename FVElementGeometry::SubControlVolume;
using Element = typename GridView::template Codim<0>::Entity;
using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
public:
// In the constructor be read some values from the `params.input` and initialize the friciton law.
RoughChannelSpatialParams(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
RoughChannelSpatialParams(std::shared_ptr<const GridGeometry> fvGridGeometry)
: ParentType(fvGridGeometry)
{
gravity_ = getParam<Scalar>("Problem.Gravity");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment