Loading...
Searching...
No Matches
Dnapl.hpp
Go to the documentation of this file.
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
Consult the COPYING file in the top-level source directory of this
module for the precise wording of the license and the list of
copyright holders.
*/
#ifndef OPM_DNAPL_HPP
#define OPM_DNAPL_HPP
#include "Component.hpp"
#include <opm/material/IdealGas.hpp>
#include <opm/material/common/MathToolbox.hpp>
#include <string_view>
namespace Opm {
template <class Scalar>
class DNAPL : public Component<Scalar, DNAPL<Scalar> >
{
public:
static std::string_view name()
{ return "DNAPL"; }
static bool gasIsIdeal()
{ return true; }
static bool gasIsCompressible()
{ return true; }
static bool liquidIsCompressible()
{ return false; }
static Scalar molarMass()
{
return 131.39e-3; // [kg/mol]
}
template <class Evaluation>
static Evaluation vaporPressure(const Evaluation& /*T*/)
{
return 3900; // [Pa] (at 20C)
}
template <class Evaluation>
static Evaluation gasDensity(const Evaluation& temperature, const Evaluation& pressure)
{
return IdealGas<Scalar>::density(Evaluation(molarMass()),
temperature,
pressure);
}
template <class Evaluation>
static Evaluation liquidDensity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
{
return 1460.0; // [kg/m^3]
}
template <class Evaluation>
static Evaluation liquidViscosity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
{
return 5.7e-4; // [Pa s]
}
template <class Evaluation>
static Evaluation liquidEnthalpy(const Evaluation& temperature, const Evaluation& /*pressure*/)
{
return 120.0/molarMass() * temperature; // [J/kg]
}
template <class Evaluation>
static Evaluation liquidHeatCapacity(const Evaluation&,
const Evaluation&)
{
return 120.0/molarMass();
}
template <class Evaluation>
static Evaluation liquidThermalConductivity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
{
return 0.3;
}
};
} // namespace Opm
#endif
Component.hpp
Abstract base class of a pure chemical species.
IdealGas.hpp
Relations valid for an ideal gas.
MathToolbox.hpp
A traits class which provides basic mathematical functions for arbitrary scalar floating point values...
Opm::Component
Abstract base class of a pure chemical species.
Definition Component.hpp:44
Opm::DNAPL
A simple implementation of a dense non-aqueous phase liquid (DNAPL).
Definition Dnapl.hpp:50
Opm::DNAPL::liquidIsCompressible
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition Dnapl.hpp:73
Opm::DNAPL::liquidEnthalpy
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &)
The enthalpy of pure TCE at a given pressure and temperature .
Definition Dnapl.hpp:141
Opm::DNAPL::name
static std::string_view name()
A human readable name for the TCE.
Definition Dnapl.hpp:55
Opm::DNAPL::liquidViscosity
static Evaluation liquidViscosity(const Evaluation &, const Evaluation &)
The dynamic viscosity of pure TCE.
Definition Dnapl.hpp:129
Opm::DNAPL::liquidDensity
static Evaluation liquidDensity(const Evaluation &, const Evaluation &)
The density of pure TCE at a given pressure and temperature .
Definition Dnapl.hpp:117
Opm::DNAPL::liquidHeatCapacity
static Evaluation liquidHeatCapacity(const Evaluation &, const Evaluation &)
Specific isobaric heat capacity of pure liquid TCE.
Definition Dnapl.hpp:154
Opm::DNAPL::liquidThermalConductivity
static Evaluation liquidThermalConductivity(const Evaluation &, const Evaluation &)
Specific heat conductivity of liquid TCE .
Definition Dnapl.hpp:169
Opm::DNAPL::gasDensity
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of steam at a given pressure and temperature .
Definition Dnapl.hpp:103
Opm::DNAPL::molarMass
static Scalar molarMass()
The molar mass in of TCE.
Definition Dnapl.hpp:79
Opm::DNAPL::vaporPressure
static Evaluation vaporPressure(const Evaluation &)
The vapor pressure in of pure TCE at a given temperature.
Definition Dnapl.hpp:91
Opm::DNAPL::gasIsIdeal
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition Dnapl.hpp:61
Opm::DNAPL::gasIsCompressible
static bool gasIsCompressible()
Returns true iff the gas phase is assumed to be compressible.
Definition Dnapl.hpp:67
Opm::IdealGas::density
static Evaluation density(const Evaluation &avgMolarMass, const Evaluation &temperature, const Evaluation &pressure)
The density of the gas in , depending on pressure, temperature and average molar mass of the gas.
Definition IdealGas.hpp:48
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30