Files
opm-common/opm/material/fluidsystems/LiquidPhase.hpp
Andreas Lauser f386599669 remove all vim and emacs modelines
for emacs, add a toplevel .dir-locals.el file instead...
2014-01-16 18:41:00 +01:00

111 lines
3.5 KiB
C++

/*
Copyright (C) 2010-2013 by Andreas Lauser
Copyright (C) 2010 by Markus Wolff
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/>.
*/
/*!
* \file
* \copydoc Opm::LiquidPhase
*/
#ifndef OPM_LIQUID_PHASE_HPP
#define OPM_LIQUID_PHASE_HPP
namespace Opm {
/*!
* \ingroup Fluidsystems
* \brief Represents the liquid phase of a single (pseudo-) component.
*/
template <class Scalar, class ComponentT>
class LiquidPhase
{
public:
//! \copydoc GasPhase::Component
typedef ComponentT Component;
//! \copydoc GasPhase::name
static const char *name()
{ return Component::name(); }
//! \copydoc GasPhase::isLiquid
static bool isLiquid()
{ return true; }
//! \copydoc GasPhase::isCompressible
static bool isCompressible()
{ return Component::liquidIsCompressible(); }
//! \copydoc GasPhase::isIdealGas
static bool isIdealGas()
{ return false; /* we're a liquid! */ }
//! \copydoc GasPhase::molarMass
static Scalar molarMass()
{ return Component::molarMass(); }
//! \copydoc GasPhase::criticalTemperature
static Scalar criticalTemperature()
{ return Component::criticalTemperature(); }
//! \copydoc GasPhase::criticalPressure
static Scalar criticalPressure()
{ return Component::criticalPressure(); }
//! \copydoc GasPhase::tripleTemperature
static Scalar tripleTemperature()
{ return Component::tripleTemperature(); }
//! \copydoc GasPhase::triplePressure
static Scalar triplePressure()
{ return Component::triplePressure(); }
//! \copydoc GasPhase::vaporPressure
static Scalar vaporPressure(Scalar temperature)
{ return Component::vaporPressure(temperature); }
//! \copydoc GasPhase::density
static Scalar density(Scalar temperature, Scalar pressure)
{ return Component::liquidDensity(temperature, pressure); }
//! \copydoc GasPhase::pressure
static Scalar pressure(Scalar temperature, Scalar density)
{ return Component::liquidPressure(temperature, density); }
//! \copydoc GasPhase::enthalpy
static const Scalar enthalpy(Scalar temperature, Scalar pressure)
{ return Component::liquidEnthalpy(temperature, pressure); }
//! \copydoc GasPhase::internalEnergy
static const Scalar internalEnergy(Scalar temperature, Scalar pressure)
{ return Component::liquidInternalEnergy(temperature, pressure); }
//! \copydoc GasPhase::viscosity
static Scalar viscosity(Scalar temperature, Scalar pressure)
{ return Component::liquidViscosity(temperature, pressure); }
//! \copydoc GasPhase::thermalConductivity
static Scalar thermalConductivity(Scalar temperature, Scalar pressure)
{ return Component::liquidThermalConductivity(temperature, pressure); }
//! \copydoc GasPhase::heatCapacity
static Scalar heatCapacity(Scalar temperature, Scalar pressure)
{ return Component::liquidHeatCapacity(temperature, pressure); }
};
} // namespace Opm
#endif