Commit 00296949 authored by Andreas Lauser's avatar Andreas Lauser
Browse files

2pni box model: add forgotten headers

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@4187 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent b2a696ad
// $Id$
/*****************************************************************************
* Copyright (C) 2008 by Klaus Mosthaf *
* Copyright (C) 2008-2009 by Andreas Lauser *
* Copyright (C) 2008 Bernd Flemisch *
* 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, as long as this copyright notice *
* is included in its original form. *
* *
* This program is distributed WITHOUT ANY WARRANTY. *
*****************************************************************************/
/*!
* \file
*
* \brief Defines the indices used by the non-isotherm two-phase BOX model.
*/
#ifndef DUMUX_2PNI_INDICES_HH
#define DUMUX_2PNI_INDICES_HH
namespace Dumux
{
/*!
* \addtogroup TwoPNIBoxModel
*/
// \{
/*!
* \brief Enumerations for the non-isothermal two-phase model
*/
template <int PVOffset = 0>
class TwoPNIIndices : public TwoPIndices<PVOffset>
{
public:
static const int temperatureIdx = PVOffset + 2; //! The primary variable index for temperature
static const int energyEqIdx = PVOffset + 2; //! The equation index of the energy equation
};
// \}
}
#endif
// $Id$
/*****************************************************************************
* Copyright (C) 2008 by Klaus Mosthaf *
* Copyright (C) 2008-2009 by Andreas Lauser *
* Copyright (C) 2008 Bernd Flemisch *
* 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, as long as this copyright notice *
* is included in its original form. *
* *
* This program is distributed WITHOUT ANY WARRANTY. *
*****************************************************************************/
/*!
* \file
*
* \brief Defines the default values for most of the properties
* required by the non-isotherm two-phase box model.
*/
#ifndef DUMUX_2PNI_PROPERTY_DEFAULTS_HH
#define DUMUX_2PNI_PROPERTY_DEFAULTS_HH
#include "2pniproperties.hh"
#include "2pnimodel.hh"
#include "2pniproblem.hh"
#include "2pnilocalresidual.hh"
#include "2pnivolumevariables.hh"
#include "2pnifluxvariables.hh"
#include "2pniindices.hh"
namespace Dumux
{
namespace Properties
{
//////////////////////////////////////////////////////////////////
// Property values
//////////////////////////////////////////////////////////////////
SET_INT_PROP(BoxTwoPNI, NumEq, 3); //!< set the number of equations to 3
//! Use the 2pni local jacobian operator for the 2pni model
SET_TYPE_PROP(BoxTwoPNI,
LocalResidual,
TwoPNILocalResidual<TypeTag>);
//! the Model property
SET_TYPE_PROP(BoxTwoPNI, Model, TwoPNIModel<TypeTag>);
//! the VolumeVariables property
SET_TYPE_PROP(BoxTwoPNI, VolumeVariables, TwoPNIVolumeVariables<TypeTag>);
//! the FluxVariables property
SET_TYPE_PROP(BoxTwoPNI, FluxVariables, TwoPNIFluxVariables<TypeTag>);
//! The indices required by the non-isothermal two-phase model
SET_TYPE_PROP(BoxTwoPNI, TwoPIndices, TwoPNIIndices<0>);
SET_TYPE_PROP(BoxTwoPNI, TwoPNIIndices, TwoPNIIndices<0>);
}
}
#endif
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