Commit 7474de9b authored by Katharina Heck's avatar Katharina Heck Committed by Timo Koch
Browse files

[cleanup] unnecessary code in spatial params and volumevariables if chemical equilbrium is assumed

parent bbcab5bf
......@@ -125,7 +125,6 @@ public:
const Element& element,
const Scv& scv)
{
factorMassTransfer_ = problem.spatialParams().factorMassTransfer(element, scv, elemSol);
factorEnergyTransfer_ = problem.spatialParams().factorEnergyTransfer(element, scv, elemSol);
characteristicLength_ = problem.spatialParams().characteristicLength(element, scv, elemSol);
......@@ -237,8 +236,6 @@ public:
const Scalar characteristicLength() const { return characteristicLength_; }
//! access function pre factor energy transfer
const Scalar factorEnergyTransfer() const { return factorEnergyTransfer_; }
//! access function pre factor mass transfer
const Scalar factorMassTransfer() const { return factorMassTransfer_; }
private:
//! dimensionless numbers
......@@ -248,7 +245,6 @@ private:
Scalar characteristicLength_;
Scalar factorEnergyTransfer_;
Scalar factorMassTransfer_;
Scalar solidSurface_ ;
Scalar interfacialArea_[ModelTraits::numPhases()+numEnergyEqSolid][ModelTraits::numPhases()+numEnergyEqSolid];
};
......@@ -324,7 +320,6 @@ public:
const Element& element,
const Scv& scv)
{
factorMassTransfer_ = problem.spatialParams().factorMassTransfer(element, scv, elemSol);
factorEnergyTransfer_ = problem.spatialParams().factorEnergyTransfer(element, scv, elemSol);
characteristicLength_ = problem.spatialParams().characteristicLength(element, scv, elemSol);
......@@ -362,8 +357,6 @@ public:
const Scalar characteristicLength() const { return characteristicLength_; }
//! access function pre factor energy transfer
const Scalar factorEnergyTransfer() const { return factorEnergyTransfer_; }
//! access function pre factor mass transfer
const Scalar factorMassTransfer() const { return factorMassTransfer_; }
private:
//! dimensionless numbers
......@@ -373,9 +366,7 @@ private:
Scalar characteristicLength_;
Scalar factorEnergyTransfer_;
Scalar factorMassTransfer_;
Scalar solidSurface_ ;
Scalar interfacialArea_[ModelTraits::numPhases()+numEnergyEqSolid][ModelTraits::numPhases()+numEnergyEqSolid];
};
////////////////////////////////////////////////////////////////////////////////////////////////////
......
......@@ -86,7 +86,6 @@ public:
intrinsicPermeability_ = (pow(characteristicLength_,2.0) * pow(porosity_, 3.0)) / (150.0 * pow((1.0-porosity_),2.0)); // 1.69e-10 ; //
factorEnergyTransfer_ = getParam<Scalar>("SpatialParams.PorousMedium.factorEnergyTransfer");
factorMassTransfer_ =getParam<Scalar>("SpatialParams.PorousMedium.factorMassTransfer");
lengthPM_ = getParam<Scalar>("Grid.lengthPM");
// residual saturations
......@@ -177,13 +176,6 @@ public:
const Scalar factorEnergyTransferAtPos(const GlobalPosition & globalPos) const
{ return factorEnergyTransfer_; }
/*!\brief Return the pre factor the the mass transfer
* \param globalPos The position in global coordinates.*/
const Scalar factorMassTransferAtPos(const GlobalPosition & globalPos) const
{ return factorMassTransfer_; }
//! Return if the tested position (input) is a specific region (right end of porous medium) in the domain
bool inOutFlow(const GlobalPosition & globalPos) const { return globalPos[0] > (lengthPM_ - eps_) ; }
//! Return the length of the porous medium domain
......@@ -198,7 +190,6 @@ private:
Scalar intrinsicPermeability_ ;
Scalar porosity_ ;
Scalar factorEnergyTransfer_ ;
Scalar factorMassTransfer_ ;
Scalar characteristicLength_ ;
MaterialLawParams materialParams_ ;
......
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