From 51a9c359b9f2d03dab0f253749a6d700dd3a5efc Mon Sep 17 00:00:00 2001 From: James McClure Date: Sat, 24 Jul 2021 10:52:18 -0400 Subject: [PATCH] added subphase analysis --- .../models/color/analysis/subphase.csv | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 docs/source/userGuide/models/color/analysis/subphase.csv diff --git a/docs/source/userGuide/models/color/analysis/subphase.csv b/docs/source/userGuide/models/color/analysis/subphase.csv new file mode 100644 index 00000000..b9ce36f8 --- /dev/null +++ b/docs/source/userGuide/models/color/analysis/subphase.csv @@ -0,0 +1,52 @@ +====================================== +Color model -- Subphase Analysis +====================================== + +The subphase analysis routine for the LBPM color model logs a time series +of averaged information to the space-delimited CSV file ``subphase.csv``. +The ``subphase_analysis_interval`` key should be specified to control the interval at +to perform basic analysis, which corresponds to the number of simulation timesteps +to perform between analyses. The subphase analys routine performs the following functions + +* analyzes the connectivity of fluid phases using a connected components algorithm +* constructs iso-surfaces to represent interfaces within the system + +Since it is more computationally expensive to carry out these operations compared to the +basic analysis, it may be useful to choose ``subphase_analysis_interval`` to be larger than +``analysis_interval``. Nevertheless, since analysis is performed in memory, it is orders of +magnitude faster than to analyze data in situ rather than writing fields to disc. Monitoring +the performance in MLUPS provides an easy way to tune the analysis interval so that the +overall simulation performance is not subject to significant penalties. + +There are three main entities that are constructed for subphase analysis + +* :math:`\Omega_w:\phi<0` : region of space filled by fluid w +* :math:`\Omega_n:\phi<0` : region of space filled by fluid n +* :math:`\Omega_i: |\nabla \phi<0| > \epsilon` : region of space for the interface region + +The phase regions are defined identical to what is reported in ``timelog.csv``. +The interface region is defined explicitly as the portion of space where +significant composition gradients are present. + +The list of measures logged to ``subphase.csv`` are defined as follows. +The region of space occupied by the wetting fluid is determined from the +phase indicator field, :math:`\Omega_w:\phi<0` + +* ``sw`` -- water saturation (fluid component 2) +* ``krw`` -- water effective permeability +* ``krn`` -- non-wetting fluid effective permeability +* ``krn`` -- non-wetting fluid effective permeability +* ``krwf`` -- non-wetting fluid effective permeability +* ``krnf`` -- non-wetting fluid effective permeability + + +More comprehensive analysis is performed in the ``subphase`` analysis module. + +.. code-block:: bash + +Analysis { + analysis_interval = 1000 + subphase_analysis_interval = 5000 + visualization_interval = 20000 + } +