Loading...
Searching...
No Matches
blackoilextensivequantities.hh
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 EWOMS_BLACK_OIL_EXTENSIVE_QUANTITIES_HH
#define EWOMS_BLACK_OIL_EXTENSIVE_QUANTITIES_HH
#include <opm/models/blackoil/blackoilbioeffectsmodules.hh>
#include <opm/models/blackoil/blackoildiffusionmodule.hh>
#include <opm/models/blackoil/blackoilenergymodules.hh>
#include <opm/models/blackoil/blackoilpolymermodules.hh>
#include <opm/models/blackoil/blackoilsolventmodules.hh>
#include <opm/models/common/multiphasebaseextensivequantities.hh>
namespace Opm {
template <class TypeTag>
class BlackOilExtensiveQuantities
: public MultiPhaseBaseExtensiveQuantities<TypeTag>
, public BlackOilSolventExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnableSolvent>()>
, public BlackOilPolymerExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnablePolymer>()>
, public BlackOilEnergyExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnableEnergy>()>
, public BlackOilDiffusionExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnableDiffusion>()>
, public BlackOilBioeffectsExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnableBioeffects>()>
{
using MultiPhaseParent = MultiPhaseBaseExtensiveQuantities<TypeTag>;
using Implementation = GetPropType<TypeTag, Properties::ExtensiveQuantities>;
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
enum { enableDiffusion = getPropValue<TypeTag, Properties::EnableDiffusion>() };
using DiffusionExtensiveQuantities = BlackOilDiffusionExtensiveQuantities<TypeTag, enableDiffusion>;
public:
void update(const ElementContext& elemCtx, unsigned scvfIdx, unsigned timeIdx)
{
MultiPhaseParent::update(elemCtx, scvfIdx, timeIdx);
asImp_().updateSolvent(elemCtx, scvfIdx, timeIdx);
asImp_().updatePolymer(elemCtx, scvfIdx, timeIdx);
asImp_().updateEnergy(elemCtx, scvfIdx, timeIdx);
DiffusionExtensiveQuantities::update_(elemCtx, scvfIdx, timeIdx);
}
template <class Context, class FluidState>
void updateBoundary(const Context& ctx,
unsigned bfIdx,
unsigned timeIdx,
const FluidState& fluidState)
{
MultiPhaseParent::updateBoundary(ctx, bfIdx, timeIdx, fluidState);
asImp_().updateEnergyBoundary(ctx, bfIdx, timeIdx, fluidState);
}
protected:
Implementation& asImp_()
{ return *static_cast<Implementation*>(this); }
const Implementation& asImp_() const
{ return *static_cast<const Implementation*>(this); }
};
} // namespace Opm
#endif
blackoilbioeffectsmodules.hh
Contains the classes required to extend the black-oil model by bioeffects.
blackoildiffusionmodule.hh
Classes required for molecular diffusion.
blackoilenergymodules.hh
Contains the classes required to extend the black-oil model by energy.
blackoilpolymermodules.hh
Contains the classes required to extend the black-oil model by polymer.
blackoilsolventmodules.hh
Contains the classes required to extend the black-oil model by solvents.
Opm::BlackOilBioeffectsExtensiveQuantities
Provides the bioeffects specific extensive quantities to the generic black-oil module's extensive qua...
Definition blackoilbioeffectsmodules.hh:653
Opm::BlackOilDiffusionExtensiveQuantities
Provides the quantities required to calculate diffusive mass fluxes.
Definition blackoildiffusionmodule.hh:53
Opm::BlackOilEnergyExtensiveQuantities
Provides the energy specific extensive quantities to the generic black-oil module's extensive quantit...
Definition blackoilenergymodules.hh:517
Opm::BlackOilExtensiveQuantities
This template class contains the data which is required to calculate the fluxes of the fluid phases o...
Definition blackoilextensivequantities.hh:59
Opm::BlackOilExtensiveQuantities::update
void update(const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx)
Update the extensive quantities for a given sub-control-volume-face.
Definition blackoilextensivequantities.hh:77
Opm::BlackOilPolymerExtensiveQuantities
Provides the polymer specific extensive quantities to the generic black-oil module's extensive quanti...
Definition blackoilpolymermodules.hh:755
Opm::BlackOilSolventExtensiveQuantities
Provides the solvent specific extensive quantities to the generic black-oil module's extensive quanti...
Definition blackoilsolventmodules.hh:1178
Opm::MultiPhaseBaseExtensiveQuantities
This class calculates the pressure potential gradients and the filter velocities for multi-phase flow...
Definition multiphasebaseextensivequantities.hh:53
Opm::MultiPhaseBaseExtensiveQuantities::updateBoundary
void updateBoundary(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &fluidState)
Update the extensive quantities for a given boundary face.
Definition multiphasebaseextensivequantities.hh:114
Opm::MultiPhaseBaseExtensiveQuantities::update
void update(const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx)
Update the extensive quantities for a given sub-control-volume-face.
Definition multiphasebaseextensivequantities.hh:80
multiphasebaseextensivequantities.hh
This class calculates the pressure potential gradients and the filter velocities for multi-phase flow...
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
Opm::GetPropType
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:233
Opm::getPropValue
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240