introduce a mechanism to cache the volume variables

this is implemented by extending the existing functionality for hints
and leads to a significant reduction of the volume variables updates
required. unfortunately, the performance with cached volume variables
is basically identical to the non-cached case, so they are disabled by
default...

anyway, this makes the thermodynamic hints code more robust and
cleaner, so it does not hurt to add it...
This commit is contained in:
Andreas Lauser 2014-03-25 17:27:27 +01:00
parent 6b3b2ad281
commit 6e3f6834ef
4 changed files with 8 additions and 4 deletions

View File

@ -41,7 +41,8 @@ SET_TAG_PROP(Co2InjectionFlashEcfvProblem, SpatialDiscretizationSplice, EcfvDisc
// for the flash model we want to use thermodynamic hints or it will // for the flash model we want to use thermodynamic hints or it will
// get _very_ slow. // get _very_ slow.
SET_BOOL_PROP(Co2InjectionFlashEcfvProblem, EnableHints, true); SET_BOOL_PROP(Co2InjectionFlashEcfvProblem, EnableVolumeVariablesCache, true);
SET_BOOL_PROP(Co2InjectionFlashEcfvProblem, EnableThermodynamicHints, true);
// use the flash solver adapted to the CO2 injection problem // use the flash solver adapted to the CO2 injection problem
SET_TYPE_PROP( SET_TYPE_PROP(

View File

@ -40,7 +40,8 @@ SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableEnergy, true);
// for the flash model we want to use thermodynamic hints or it will // for the flash model we want to use thermodynamic hints or it will
// get _very_ slow. // get _very_ slow.
SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableHints, true); SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableVolumeVariablesCache, true);
SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableThermodynamicHints, true);
// use the CO2 injection problem adapted flash solver // use the CO2 injection problem adapted flash solver
SET_TYPE_PROP( SET_TYPE_PROP(

View File

@ -40,7 +40,8 @@ SET_BOOL_PROP(Co2InjectionFlashNiVcfvProblem, EnableEnergy, true);
// for the flash model we want to use thermodynamic hints or it will // for the flash model we want to use thermodynamic hints or it will
// get _very_ slow. // get _very_ slow.
SET_BOOL_PROP(Co2InjectionFlashNiVcfvProblem, EnableHints, true); SET_BOOL_PROP(Co2InjectionFlashNiVcfvProblem, EnableVolumeVariablesCache, true);
SET_BOOL_PROP(Co2InjectionFlashNiVcfvProblem, EnableThermodynamicHints, true);
// use the CO2 injection problem adapted flash solver // use the CO2 injection problem adapted flash solver
SET_TYPE_PROP( SET_TYPE_PROP(

View File

@ -41,7 +41,8 @@ SET_TAG_PROP(Co2InjectionFlashVcfvProblem, SpatialDiscretizationSplice, VcfvDisc
// for the flash model we want to use thermodynamic hints or it will // for the flash model we want to use thermodynamic hints or it will
// get _very_ slow. // get _very_ slow.
SET_BOOL_PROP(Co2InjectionFlashVcfvProblem, EnableHints, true); SET_BOOL_PROP(Co2InjectionFlashVcfvProblem, EnableVolumeVariablesCache, true);
SET_BOOL_PROP(Co2InjectionFlashVcfvProblem, EnableThermodynamicHints, true);
// use the flash solver adapted to the CO2 injection problem // use the flash solver adapted to the CO2 injection problem
SET_TYPE_PROP( SET_TYPE_PROP(