3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Functions
test_immiscibleflash.cc File Reference

This is a program to test the flash calculation which uses non-linear complementarity problems (NCP). More...

#include <config.h>
#include <dumux/material/constraintsolvers/misciblemultiphasecomposition.hh>
#include <dumux/material/constraintsolvers/computefromreferencephase.hh>
#include <dumux/material/constraintsolvers/immiscibleflash.hh>
#include <dumux/material/fluidstates/immiscible.hh>
#include <dumux/material/fluidsystems/h2on2.hh>
#include <dumux/material/fluidmatrixinteractions/mp/mplinearmaterial.hh>
#include <dumux/material/fluidmatrixinteractions/mp/mpadapter.hh>
#include <dumux/material/fluidmatrixinteractions/2p/linearmaterial.hh>
#include <dumux/material/fluidmatrixinteractions/2p/regularizedlinearmaterial.hh>
#include <dumux/material/fluidmatrixinteractions/2p/regularizedbrookscorey.hh>
#include <dumux/material/fluidmatrixinteractions/2p/efftoabslaw.hh>
#include <dune/common/exceptions.hh>

Description

This is a program to test the flash calculation which uses non-linear complementarity problems (NCP).

A flash calculation determines the pressures, saturations and composition of all phases given the total mass (or, as in this case the total number of moles) in a given amount of pore space.

Functions

template<class Scalar , class FluidState >
void checkSame (const FluidState &fsRef, const FluidState &fsFlash)
 
template<class Scalar , class FluidSystem , class MaterialLaw , class FluidState >
void checkImmiscibleFlash (const FluidState &fsRef, typename MaterialLaw::Params &matParams)
 
template<class Scalar , class FluidSystem , class MaterialLaw , class FluidState >
void completeReferenceFluidState (FluidState &fs, typename MaterialLaw::Params &matParams, int refPhaseIdx)
 
int main ()
 

Function Documentation

◆ checkImmiscibleFlash()

template<class Scalar , class FluidSystem , class MaterialLaw , class FluidState >
void checkImmiscibleFlash ( const FluidState &  fsRef,
typename MaterialLaw::Params &  matParams 
)

◆ checkSame()

template<class Scalar , class FluidState >
void checkSame ( const FluidState &  fsRef,
const FluidState &  fsFlash 
)

◆ completeReferenceFluidState()

template<class Scalar , class FluidSystem , class MaterialLaw , class FluidState >
void completeReferenceFluidState ( FluidState &  fs,
typename MaterialLaw::Params &  matParams,
int  refPhaseIdx 
)

◆ main()

int main ( )
Include dependency graph for test_immiscibleflash.cc: