Skip to content
Snippets Groups Projects
Commit 26c7fe1a authored by Andreas Lauser's avatar Andreas Lauser
Browse files

remove unused 'old_fluidsystems' directory

it only contained the file 'fluidstate.hh' which was not included
anywhere.  if this is still required for a model in the devel
directory re-add the directory there...

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7549 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent ac81224e
No related branches found
No related tags found
No related merge requests found
SUBDIRS = \ SUBDIRS = \
binarycoefficients \
components \
constraintsolvers \ constraintsolvers \
eos \ eos \
fluidmatrixinteractions \
fluidstates \ fluidstates \
fluidsystems \ fluidsystems \
binarycoefficients \
components \
fluidmatrixinteractions \
old_fluidsystems \
spatialparameters spatialparameters
materialdir = $(includedir)/dumux/material materialdir = $(includedir)/dumux/material
......
oldfluidsystemsdir = $(includedir)/dumux/material/old_fluidsystems
oldfluidsystems_HEADERS = *.hh
include $(top_srcdir)/am/global-rules
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* Copyright (C) 2009 by Andreas Lauser
* Institute of Hydraulic Engineering *
* University of Stuttgart, Germany *
* email: <givenname>.<name>@iws.uni-stuttgart.de *
* *
* This program 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. *
* *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
*
* \brief Abstract base class representing a fluid state
* (thermodynamic equilibrium properties and composition) of
* multi-component fluids.
*/
#ifndef DUMUX_FLUID_STATE_HH
#define DUMUX_FLUID_STATE_HH
#include <dumux/common/exceptions.hh>
namespace Dumux
{
/*!
* \brief Abstract base class representing a fluid state
* (thermodynamic equilibrium properties and composition) of
* multi-component fluids.
*
* This class does _not_ provide an concrete API for calculating this
* equilibrium from primary variables but merely defines how to access
* the resulting quantities if the equilibrium has been computed.
*/
template <class Scalar, class Implementation>
class FluidState
{
public:
FluidState()
{
if (0) {
// make sure the implementation specifies the required
// enums
enum { a1 = Implementation::numPhases };
enum { a2 = Implementation::numComponents };
enum { a3 = Implementation::numSolvents };
}
}
//! The maximum number of phases that can occur in the fluid
//! system
enum { numPhases };
//! The number of the fluid system's chemical (pseudo-) species
enum { numComponents };
//! The number of "highly" miscible components in which only
//! traces of the remaining components are resolved in the liquid
//! phases.
enum { numSolvents };
/*!
* \brief Return saturation of a phase
*/
Scalar saturation(int phaseIdx) const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::saturation()"); }
/*!
* \brief Return the mole fraction of a component within a phase.
*/
Scalar moleFrac(int phaseIdx, int compIdx) const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::moleFrac()"); }
/*!
* \brief Return the sum of the concentrations of all components
* for a phase.
*
* Unit: \f$\mathrm{[mol/m^3]}\f$
*/
Scalar phaseConcentration(int phaseIdx) const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::phaseConcentration()"); }
/*!
* \brief Return the concentrations of an individual component in
* a phase.
*
* Unit: \f$\mathrm{[mol/m^3]}\f$
*/
Scalar concentration(int phaseIdx, int compIdx) const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::concentration()"); }
/*!
* \brief Return the density of a phase.
*
* Unit: \f$\mathrm{[kg/m^3]}\f$
*/
Scalar density(int phaseIdx) const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::density()"); }
/*!
* \brief Return the average molar mass of a phase.
*
* This is the sum of all molar masses times their respective mole
* fractions in the phase.
*
* Unit: \f$\mathrm{[kg/m^3]}\f$
*/
Scalar averageMolarMass(int phaseIdx) const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::averageMolarMass()"); }
/*!
* \brief Return the partial pressure of a component in the gas phase.
*
* For an ideal gas, this means \f$R*T*c\f$.
*
* Unit: \f$\mathrm{[Pa] = [N/m^2]}\f$
*/
Scalar fugacity(int componentIdx) const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::fugacity()"); }
/*!
* \brief Return the total pressure of the gas phase.
*
* Unit: \f$\mathrm{[Pa] = [N/m^2]}\f$
*/
Scalar phasePressure(int phaseIdx) const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::totalPressure()"); }
/*!
* \brief Return the temperature at which the equilibrium was
* calculated.
*
* Unit: \f$\mathrm{[Pa] = [N/m^2]}\f$
*/
Scalar temperature() const
{ DUNE_THROW(Dune::NotImplemented, "FluidState::temperature()"); }
protected:
Implementation &asImp_()
{ return *((Implementation*) this); }
const Implementation &asImp_() const
{ return *((const Implementation*) this); }
};
} // namespace Dumux
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment