Online micromodel#

Overview#

This case uses the micromodel shown in Fig. 2a of Joekar-Niasar et al. (2009). The image was captured as online.png with 1068 × 1068 pixels.

Configuration#

 1length = 600e-6       # Image-related, length of the microsystem [m]
 2width = 600e-6        # Image-related, height of the microsystem [m]
 3thickness = 1.8e-6    # Image-related, depth of the microsystem [m]
 4grainMeaning = 1      # Image-related, 0 for light grains or 1 for dark grains
 5threshold = 0.5       # Image-related, threshold for converting the image to binary
 6rescale = 1           # Image-related, rescaling factor for the input image
 7grainsSize = 50       # Image-related, minimum size of the grain clusters
 8borderTol = 1         # Image-related, tolerance for approximating the border as a polygon
 9grainsTol = 1         # Image-related, tolerance for approximating the grains as polygons
10lineWidth = 1         # Figure-related, line width for contours in the generated figures
11channelWidth = 6e-6   # Device-related, width of the top and bottom channels [m]
12meshSize = 1e-6       # Mesh-related, mesh size [m]
13viscosity = 1e-6      # Fluid-related, kinematic viscosity [m2/s]
14diffusion = 1e-12     # Fluid-related, tracer diffusion coefficient [m2/s]
15inletLocation = "top" # Simulation-related, inlet location: left, top, right, or bottom
16inletValue = 2.0e-3   # Simulation-related, inlet pressure divided by fluid density [Pa/(kg/m3)]
17tracerTime = 120      # Simulation-related, end time for the tracer simulation [s]
18tracerWrite = 1       # Simulation-related, interval for writing tracer results [s]
19pressureConv = 1e-7   # Solver-related, pressure convergence criterion
20velocityConv = 1e-8   # Solver-related, velocity convergence criterion
21iterationsMax = 10000 # Solver-related, maximum number of Stokes iterations
22tracerStep = 1        # Solver-related, tracer simulation time step [s]

Command#

A source-built Gmsh executable was supplied with the canonical --gmsh flag:

pymm -i online.png -p configuration.toml -m device -t all --gmsh /home/AD.NORCERESEARCH.NO/dmar/Github/gmsh/build/gmsh

The reported execution time was approximately 15 minutes.

Results#

Pressure field for the online micromodel
Velocity field for the online micromodel
Tracer concentration for the online micromodel

Pressure, velocity, and tracer concentration.#

Back to examples gallery