Configuration file

Let us consider the image below (this image and the real dimensions can be extracted from Fig. 52 in Benali2019 and Fig. 1c in Liu2022.

_images/microsystem.png

Grains and pore space configuration.

This image (2D) consists of 805x252 pixels, and the real dimensions (3D) are 6.74e-3 x 2.5e-3 x 0.03e-3 [m]. We remark that the image of the pattern used in the numerical simulations in Liu2022 has a much higher resolution.

The current implementation allows for the following input parameters:

 1"""Set the framework parameters"""
 26.74e-3     #Image-related, length of the microsystem [m]
 32.5e-3      #Image-related, height of the microsystem [m]
 40.03e-3     #Image-related, depth of the microsystem [m]
 5160         #Image-related, threshold for converting the image to binary
 61.0         #Image-related, rescaled factor for the input image
 70           #Image-related, minimum size of the grain clusters
 80           #Image-related, tolerance to approximate the border as polygon
 90           #Image-related, tolerance to approximate the grains as polygon
101.0         #Figure-related, line width to show the contours in the produced figures
110.2e-3      #Device-related, width of the top and bottom channels in the micromodel device [m]
128e-6        #Mesh-related, mesh size [m]
131e-6        #Fluid-related, kinematic viscosity [Dynamic viscosity/fluid_density, m2/s]
141e-12       #Tracer-related, diffusion coefficient [m2/s]
155.0e-4      #Simulation-related, inlet boundary condition (Pressure/fluid_density, [Pa/(kg/m3)])
16120.0       #Simulation-related, end time for the tracer simulation [s]
171.0         #Simulation-related, time interval to write the tracer results [s]
181e-7        #Solver-related, convergence criterium for the pressure solution in the numerical scheme for the Stokes simulation
191e-8        #Solver-related, convergence criterium for the velocity solution in the numerical scheme for the Stokes simulation
2010000       #Solver-related, maximum number of iterations for the Stokes simulation in case the convergence criteria have not been reached
211.0         #Solver-related, time step in the numerical scheme for the Tracer simulation [s]

Warning

Do not remove # in each line (in the current implementation this is used for the reading of the parameters).

Remaining parameters

The remaining parameters are OpenFOAM related. Refer to the online OpenFOAM resources for details about the simulator and this nice presentation using the OpenFOAM solver simpleFoam in another micromodel application. Details about the solver simpleFoam and mathematical model can be found in this link. Details about the solver scalarTransportFoam and mathematical model can be found here.