diff --git a/docs/source/userGuide/models/mrt/mrt.rst b/docs/source/userGuide/models/mrt/mrt.rst index ac5a4e5b..eddf10d4 100644 --- a/docs/source/userGuide/models/mrt/mrt.rst +++ b/docs/source/userGuide/models/mrt/mrt.rst @@ -165,13 +165,6 @@ The relaxation parameters are determined based on the relaxation time :math:`\ta $$ - -**************************** -Example Input File -**************************** - - - **************************** Boundary Conditions @@ -207,3 +200,29 @@ the inlet or outlet, the ``Domain`` section of the database may specify the foll - ``InletLayerPhase = 2`` -- establish a reservoir of component B at the inlet - ``OutletLayerPhase = 1`` -- establish a reservoir of component A at the outlet + **************************** +Example Input File +**************************** + +.. code-block:: c + + MRT { + tau = 1.0 + F = 0.0, 0.0, 1.0e-5 + timestepMax = 2000 + tolerance = 0.01 + } + Domain { + Filename = "Bentheimer_LB_sim_intermediate_oil_wet_Sw_0p37.raw" + ReadType = "8bit" // data type + N = 900, 900, 1600 // size of original image + nproc = 2, 2, 2 // process grid + n = 200, 200, 200 // sub-domain size + offset = 300, 300, 300 // offset to read sub-domain + voxel_length = 1.66 // voxel length (in microns) + ReadValues = 0, 1, 2 // labels within the original image + WriteValues = 0, 1, 2 // associated labels to be used by LBPM + InletLayers = 0, 0, 10 // specify 10 layers along the z-inlet + BC = 0 // boundary condition type (0 for periodic) + } + diff --git a/models/GreyscaleColorModel.h b/models/GreyscaleColorModel.h index 525eac07..fb9dd9e6 100644 --- a/models/GreyscaleColorModel.h +++ b/models/GreyscaleColorModel.h @@ -79,6 +79,7 @@ public: * \brief Debugging function to dump simulation state to disk */ void WriteDebug(); + void WriteVisFiles(); bool Restart,pBC; bool REVERSE_FLOW_DIRECTION; @@ -159,6 +160,5 @@ private: * \brief Seed phase field */ double SeedPhaseField(const double seed_water_in_oil); - void WriteVisFiles(); }; diff --git a/tests/lbpm_greyscaleColor_simulator.cpp b/tests/lbpm_greyscaleColor_simulator.cpp index ad7dbf49..f2e8d74a 100644 --- a/tests/lbpm_greyscaleColor_simulator.cpp +++ b/tests/lbpm_greyscaleColor_simulator.cpp @@ -53,7 +53,7 @@ int main(int argc, char **argv) GreyscaleColor.Create(); // creating the model will create data structure to match the pore structure and allocate variables GreyscaleColor.Initialize(); // initializing the model will set initial conditions for variables GreyscaleColor.Run(); - GreyscaleColor.WriteVis(); + GreyscaleColor.WriteVisFiles(); PROFILE_STOP("Main"); PROFILE_SAVE("lbpm_greyscaleColor_simulator",1);