diff --git a/dumux/common/properties.hh b/dumux/common/properties.hh index e9c83cfe49e94d5ed841ff0651647e8ef84370e1..d08dbebf076c75ff58771433f6184cae2fc3ba79 100644 --- a/dumux/common/properties.hh +++ b/dumux/common/properties.hh @@ -128,7 +128,6 @@ NEW_PROP_TAG(EvaluatePermeabilityAtScvfIP); // Additional properties used by the 2pnc and 2pncmin models: ////////////////////////////////////////////////////////////// NEW_PROP_TAG(Chemistry); //!< The chemistry class with which solves equlibrium reactions -NEW_PROP_TAG(NumMajorComponents); //!< Number of major fluid components which are considered in the calculation of the phase density NEW_PROP_TAG(SetMoleFractionsForWettingPhase); //!< Set the mole fraction in the wetting or non-wetting phase ////////////////////////////////////////////////////////////// diff --git a/dumux/material/fluidsystems/brineair.hh b/dumux/material/fluidsystems/brineair.hh index ed3871ae00311acd683f1d8e8d0647e2b7317479..7597e2ec6c5d9de2ab4700954614c344fd4426bd 100644 --- a/dumux/material/fluidsystems/brineair.hh +++ b/dumux/material/fluidsystems/brineair.hh @@ -74,7 +74,6 @@ public: /**************************************** * Fluid phase related static parameters ****************************************/ - static const int numSecComponents = 0; //needed to set property not used for 2pncMin model static const int numPhases = 2; // liquid and gas phases static const int numSPhases = 1;// precipitated solid phases static const int lPhaseIdx = 0; // index of the liquid phase @@ -185,7 +184,6 @@ public: * Component related static parameters ****************************************/ static const int numComponents = 3; // H2O, Air, NaCl - static const int numMajorComponents = 2;// H2O, Air static const int H2OIdx = wCompIdx;//0 static const int AirIdx = nCompIdx;//1 diff --git a/dumux/material/fluidsystems/h2on2o2.hh b/dumux/material/fluidsystems/h2on2o2.hh index 123e0fa81cbb1440cce3ed3ebbb3944c5edc4812..bdbc2d81ef4ba8d215903259f33688ba60082644 100644 --- a/dumux/material/fluidsystems/h2on2o2.hh +++ b/dumux/material/fluidsystems/h2on2o2.hh @@ -180,9 +180,6 @@ public: //! Number of components in the fluid system static constexpr int numComponents = 3; - // There are no secondary components (still 2pNc model needs this parameter) - static const int numSecComponents = 1; - static const int numMajorComponents = 2; static constexpr int H2OIdx = 0;//first major component static constexpr int N2Idx = 1;//second major component diff --git a/dumux/material/fluidsystems/steamn2cao2h2.hh b/dumux/material/fluidsystems/steamn2cao2h2.hh index 13f339e64231e4a1822f580ce03bd765824fb5ad..d59540ef166ffc8de8e667702fd05bd14677a8e9 100644 --- a/dumux/material/fluidsystems/steamn2cao2h2.hh +++ b/dumux/material/fluidsystems/steamn2cao2h2.hh @@ -39,10 +39,9 @@ #include <dumux/material/binarycoefficients/h2o_n2.hh> #include <dumux/material/components/tabulatedcomponent.hh> -namespace Dumux -{ -namespace FluidSystems -{ +namespace Dumux { +namespace FluidSystems { + /*! * \ingroup Fluidsystems * @@ -181,7 +180,6 @@ public: ****************************************/ static const int numComponents = 2; // H2O, Air - static const int numMajorComponents = 2;// H2O, Air static const int numSComponents = 2;// CaO2H2, CaO diff --git a/dumux/porousmediumflow/2pnc/model.hh b/dumux/porousmediumflow/2pnc/model.hh index 9e1877d480d4057389de453e97feda02f90ad947..d277875f9f66e613943bc2d032f711d8ca82e3f8 100644 --- a/dumux/porousmediumflow/2pnc/model.hh +++ b/dumux/porousmediumflow/2pnc/model.hh @@ -124,7 +124,6 @@ struct TwoPNCModelTraits static constexpr int numEq() { return nComp; } static constexpr int numPhases() { return 2; } static constexpr int numComponents() { return nComp; } - static constexpr int numMajorComponents() { return 2; } static constexpr bool enableAdvection() { return true; } static constexpr bool enableMolecularDiffusion() { return true; } diff --git a/dumux/porousmediumflow/2pnc/primaryvariableswitch.hh b/dumux/porousmediumflow/2pnc/primaryvariableswitch.hh index 3f003ba28c04e5f0e36e263505f01a52f09f88ad..babad58faeab26c3f5107e5ea64a6286a85c33b9 100644 --- a/dumux/porousmediumflow/2pnc/primaryvariableswitch.hh +++ b/dumux/porousmediumflow/2pnc/primaryvariableswitch.hh @@ -51,7 +51,7 @@ class TwoPNCPrimaryVariableSwitch using Indices = typename GET_PROP_TYPE(TypeTag, ModelTraits)::Indices; static const int numComponents = GET_PROP_TYPE(TypeTag, ModelTraits)::numComponents(); - static const int numMajorComponents = GET_PROP_TYPE(TypeTag, ModelTraits)::numMajorComponents(); + static const int numMajorComponents = GET_PROP_TYPE(TypeTag, ModelTraits)::numPhases(); enum { diff --git a/dumux/porousmediumflow/2pnc/volumevariables.hh b/dumux/porousmediumflow/2pnc/volumevariables.hh index 06cd87dddbd720dca7e3dab60ec716fb24bd7244..870553d9e9db7cfbe19ae3f4498f4fa80ea2946a 100644 --- a/dumux/porousmediumflow/2pnc/volumevariables.hh +++ b/dumux/porousmediumflow/2pnc/volumevariables.hh @@ -60,7 +60,7 @@ class TwoPNCVolumeVariables { numPhases = Traits::ModelTraits::numPhases(), numComponents = Traits::ModelTraits::numComponents(), - numMajorComponents = Traits::ModelTraits::numMajorComponents(), + numMajorComponents = Traits::ModelTraits::numPhases(), // phase indices wPhaseIdx = FS::wPhaseIdx, diff --git a/test/porousmediumflow/1pncmin/implicit/modifiedsteamn2cao2h2.hh b/test/porousmediumflow/1pncmin/implicit/modifiedsteamn2cao2h2.hh index 9a35ef1d847f816a905965478dee78bd3438525a..e6d6ac40391c2c8a2bee27a56cb0b68db3d4163b 100644 --- a/test/porousmediumflow/1pncmin/implicit/modifiedsteamn2cao2h2.hh +++ b/test/porousmediumflow/1pncmin/implicit/modifiedsteamn2cao2h2.hh @@ -42,10 +42,9 @@ // we use a modified implementation of the CaO component #include "modifiedcao.hh" -namespace Dumux -{ -namespace FluidSystems -{ +namespace Dumux { +namespace FluidSystems { + /*! * \ingroup OnePNCMinTests * @@ -178,7 +177,6 @@ public: ****************************************/ static const int numComponents = 2; // H2O, Air - static const int numMajorComponents = 2;// H2O, Air static const int numSComponents = 2;// CaO2H2, CaO