Merge pull request #6515 from daavid00/janicomo

Janitoring: removing unused definitions in models/common/*.hh
This commit is contained in:
David Landa-Marbán authored and GitHub committed 2025-10-07 09:11:37 +02:00
commit b599e8e97d
9 files changed
+2 -25

No files matched your search

-1
View File
@@ -132,7 +132,6 @@ class DarcyExtensiveQuantities
enum { numPhases = getPropValue<TypeTag, Properties::NumPhases>() };
using Toolbox = MathToolbox<Evaluation>;
using ParameterCache = typename FluidSystem::template ParameterCache<Evaluation>;
using EvalDimVector = Dune::FieldVector<Evaluation, dimWorld>;
using DimVector = Dune::FieldVector<Scalar, dimWorld>;
using DimMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
-3
View File
@@ -56,8 +56,6 @@ class DiffusionModule;
template <class TypeTag>
class DiffusionModule<TypeTag, /*enableDiffusion=*/false>
{
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
using RateVector = GetPropType<TypeTag, Properties::RateVector>;
public:
@@ -297,7 +295,6 @@ class DiffusionExtensiveQuantities;
template <class TypeTag>
class DiffusionExtensiveQuantities<TypeTag, /*enableDiffusion=*/false>
{
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Evaluation = GetPropType<TypeTag, Properties::Evaluation>;
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
-6
View File
@@ -61,7 +61,6 @@ class EnergyModule<TypeTag, /*enableEnergy=*/false>
{
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Evaluation = GetPropType<TypeTag, Properties::Evaluation>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
using RateVector = GetPropType<TypeTag, Properties::RateVector>;
using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>;
using ExtensiveQuantities = GetPropType<TypeTag, Properties::ExtensiveQuantities>;
@@ -70,8 +69,6 @@ class EnergyModule<TypeTag, /*enableEnergy=*/false>
enum { numEq = getPropValue<TypeTag, Properties::NumEq>() };
using EvalEqVector = Dune::FieldVector<Evaluation, numEq>;
public:
/*!
* \brief Register all run-time parameters for the energy module.
@@ -229,7 +226,6 @@ class EnergyModule<TypeTag, /*enableEnergy=*/true>
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Evaluation = GetPropType<TypeTag, Properties::Evaluation>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
using EqVector = GetPropType<TypeTag, Properties::EqVector>;
using RateVector = GetPropType<TypeTag, Properties::RateVector>;
using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>;
using IntensiveQuantities = GetPropType<TypeTag, Properties::IntensiveQuantities>;
@@ -242,7 +238,6 @@ class EnergyModule<TypeTag, /*enableEnergy=*/true>
enum { energyEqIdx = Indices::energyEqIdx };
enum { temperatureIdx = Indices::temperatureIdx };
using EvalEqVector = Dune::FieldVector<Evaluation, numEq>;
using Toolbox = Opm::MathToolbox<Evaluation>;
public:
@@ -613,7 +608,6 @@ class EnergyIntensiveQuantities<TypeTag, /*enableEnergy=*/true>
using Indices = GetPropType<TypeTag, Properties::Indices>;
enum { numPhases = FluidSystem::numPhases };
enum { energyEqIdx = Indices::energyEqIdx };
enum { temperatureIdx = Indices::temperatureIdx };
using Toolbox = Opm::MathToolbox<Evaluation>;
@@ -132,7 +132,6 @@ public:
template <class TypeTag>
class ForchheimerIntensiveQuantities
{
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Evaluation = GetPropType<TypeTag, Properties::Evaluation>;
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
@@ -219,8 +218,6 @@ class ForchheimerExtensiveQuantities
: public DarcyExtensiveQuantities<TypeTag>
{
using DarcyExtQuants = DarcyExtensiveQuantities<TypeTag>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
using MaterialLaw = GetPropType<TypeTag, Properties::MaterialLaw>;
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Evaluation = GetPropType<TypeTag, Properties::Evaluation>;
@@ -54,7 +54,6 @@ class MultiPhaseBaseExtensiveQuantities
using ParentType = GetPropType<TypeTag, Properties::DiscExtensiveQuantities>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
enum { numPhases = getPropValue<TypeTag, Properties::NumPhases>() };
@@ -110,7 +109,6 @@ public:
* the extensive quantities should be calculated.
* \param timeIdx The index used by the time discretization.
* \param fluidState The FluidState on the domain boundary.
* \param paramCache The FluidSystem's parameter cache.
*/
template <class Context, class FluidState>
void updateBoundary(const Context& context,
+1 -5
View File
@@ -167,12 +167,9 @@ template <class TypeTag>
class MultiPhaseBaseModel : public GetPropType<TypeTag, Properties::Discretization>
{
using ParentType = GetPropType<TypeTag, Properties::Discretization>;
using Implementation = GetPropType<TypeTag, Properties::Model>;
using Implementation = GetPropType<TypeTag, Properties::Problem>;
using Simulator = GetPropType<TypeTag, Properties::Simulator>;
using ThreadManager = GetPropType<TypeTag, Properties::ThreadManager>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Indices = GetPropType<TypeTag, Properties::Indices>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
using EqVector = GetPropType<TypeTag, Properties::EqVector>;
using GridView = GetPropType<TypeTag, Properties::GridView>;
@@ -181,7 +178,6 @@ class MultiPhaseBaseModel : public GetPropType<TypeTag, Properties::Discretizati
using Element = typename GridView::template Codim<0>::Entity;
enum { numPhases = getPropValue<TypeTag, Properties::NumPhases>() };
enum { numComponents = FluidSystem::numComponents };
public:
explicit MultiPhaseBaseModel(Simulator& simulator)
@@ -79,6 +79,7 @@ class MultiPhaseBaseProblem
enum { dimWorld = GridView::dimensionworld };
enum { numPhases = getPropValue<TypeTag, Properties::NumPhases>() };
using DimVector = Dune::FieldVector<Scalar, dimWorld>;
using DimMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
//! \endcond
-4
View File
@@ -139,7 +139,6 @@ class BoundaryPressureCallback
using IQRawFluidState = decltype(std::declval<IntensiveQuantities>().fluidState());
using IQFluidState = std::remove_const_t<std::remove_reference_t<IQRawFluidState>>;
using IQScalar = typename IQFluidState::Scalar;
using Toolbox = MathToolbox<IQScalar>;
public:
using ResultType = IQScalar;
@@ -342,12 +341,9 @@ class VelocityCallback
{
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
using IntensiveQuantities = GetPropType<TypeTag, Properties::IntensiveQuantities>;
using GridView = GetPropType<TypeTag, Properties::GridView>;
using ResultRawType = decltype(IntensiveQuantities().velocityCenter());
enum { dim = GridView::dimensionworld };
public:
using ResultType = std::remove_const_t<std::remove_reference_t<ResultRawType>>;
using ResultFieldType = typename ResultType::field_type;
-1
View File
@@ -117,7 +117,6 @@ class TransExtensiveQuantities
enum { numPhases = FluidSystem::numPhases };
typedef MathToolbox<Evaluation> Toolbox;
typedef Dune::FieldVector<Scalar, dimWorld> DimVector;
typedef Dune::FieldVector<Evaluation, dimWorld> EvalDimVector;
typedef Dune::FieldMatrix<Scalar, dimWorld, dimWorld> DimMatrix;