Loading...
Searching...
No Matches
Lnapl.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_LNAPL_HPP
#define OPM_LNAPL_HPP
#include "Component.hpp"
#include <string_view>
namespace Opm {
template <class Scalar>
class LNAPL : public Component<Scalar, LNAPL<Scalar> >
{
public:
static std::string_view name()
{ return "LNAPL"; }
static Scalar molarMass()
{ return 0.11423; }
static bool liquidIsCompressible()
{ return false; }
template <class Evaluation>
static Evaluation liquidDensity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
{ return 692.0; }
template <class Evaluation>
static Evaluation liquidViscosity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
{ return 0.005; }
template <class Evaluation>
static Evaluation liquidEnthalpy(const Evaluation& temperature,
const Evaluation&)
{
return 240.0/molarMass() * temperature; // [J/kg]
}
template <class Evaluation>
static Evaluation liquidHeatCapacity(const Evaluation&,
const Evaluation&)
{
return 240.0/molarMass();
}
template <class Evaluation>
static Evaluation liquidThermalConductivity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
{
return 0.3; // TODO: guess
}
};
} // namespace Opm
#endif
Component.hpp
Abstract base class of a pure chemical species.
Opm::Component
Abstract base class of a pure chemical species.
Definition Component.hpp:44
Opm::LNAPL
A simple implementation of a LNAPL, e.g.
Definition Lnapl.hpp:44
Opm::LNAPL::liquidViscosity
static Evaluation liquidViscosity(const Evaluation &, const Evaluation &)
Rough estimate of the viscosity of oil in .
Definition Lnapl.hpp:81
Opm::LNAPL::liquidHeatCapacity
static Evaluation liquidHeatCapacity(const Evaluation &, const Evaluation &)
Specific isobaric heat capacity of liquid iso-octane.
Definition Lnapl.hpp:108
Opm::LNAPL::molarMass
static Scalar molarMass()
The molar mass in of iso-octane.
Definition Lnapl.hpp:55
Opm::LNAPL::liquidDensity
static Evaluation liquidDensity(const Evaluation &, const Evaluation &)
Rough estimate of the density of oil .
Definition Lnapl.hpp:71
Opm::LNAPL::liquidIsCompressible
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition Lnapl.hpp:61
Opm::LNAPL::liquidEnthalpy
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &)
The enthalpy of iso-octane at a given pressure and temperature .
Definition Lnapl.hpp:93
Opm::LNAPL::name
static std::string_view name()
A human readable name for the iso-octane.
Definition Lnapl.hpp:49
Opm::LNAPL::liquidThermalConductivity
static Evaluation liquidThermalConductivity(const Evaluation &, const Evaluation &)
Specific heat conductivity of liquid TCE .
Definition Lnapl.hpp:123
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30