|
| 1 | +====================================== |
| 2 | +Color model -- Sw Steady |
| 3 | +====================================== |
| 4 | + |
| 5 | +The water saturation steady state protocol is identical to the centrifuge protocol, with |
| 6 | +the exception that the simulation explicity converges on the saturation state of fluid |
| 7 | +A. |
| 8 | + |
| 9 | +That is, the simulation exits when |
| 10 | + |
| 11 | +.. math:: |
| 12 | + :nowrap: |
| 13 | +
|
| 14 | + $$ |
| 15 | + \frac{\left | S_{w, i+1} - S_{w, i} \right |}{S_{w, i}} \le \epsilon |
| 16 | + $$ |
| 17 | +
|
| 18 | +averaged over the ``analysis_interval`` where :math:`S_{w,i}` is the saturation of fluid |
| 19 | +A at step :math:`i` and :math:`\epsilon` is an allowed convergence threshold, or when |
| 20 | +the ``timestepMax`` is reached, whichever occurs first. |
| 21 | + |
| 22 | +By default, :math:`\epsilon` is set to zero (i.e., the simulation continues through the |
| 23 | +``timestepMax``), but can be set via ``tolerance`` within the ``Analysis`` section of |
| 24 | +the input file database as shown below. |
| 25 | + |
| 26 | + |
| 27 | +.. code-block:: c |
| 28 | +
|
| 29 | + Color { |
| 30 | + protocol = "sw_steady" |
| 31 | + timestepMax = 1000000 // maximum timtestep |
| 32 | + alpha = 0.005 // controls interfacial tension |
| 33 | + rhoA = 1.0 // controls the density of fluid A |
| 34 | + rhoB = 1.0 // controls the density of fluid B |
| 35 | + tauA = 0.7 // controls the viscosity of fluid A |
| 36 | + tauB = 0.7 // controls the viscosity of fluid B |
| 37 | + F = 0, 0, -1.0e-5 // body force |
| 38 | + din = 1.0 // inlet density (controls pressure) |
| 39 | + dout = 1.0 // outlet density (controls pressure) |
| 40 | + WettingConvention = "SCAL" // convention for sign of wetting affinity |
| 41 | + ComponentLabels = 0, -1, -2 // image labels for solid voxels |
| 42 | + ComponentAffinity = 1.0, 1.0, 0.6 // controls the wetting affinity for each label |
| 43 | + Restart = false |
| 44 | + } |
| 45 | + Domain { |
| 46 | + Filename = "Bentheimer_LB_sim_intermediate_oil_wet_Sw_0p37.raw" |
| 47 | + ReadType = "8bit" // data type |
| 48 | + N = 900, 900, 1600 // size of original image |
| 49 | + nproc = 2, 2, 2 // process grid |
| 50 | + n = 200, 200, 200 // sub-domain size |
| 51 | + offset = 300, 300, 300 // offset to read sub-domain |
| 52 | + voxel_length = 1.66 // voxel length (in microns) |
| 53 | + ReadValues = -2, -1, 0, 1, 2 // labels within the original image |
| 54 | + WriteValues = -2, -1, 0, 1, 2 // associated labels to be used by LBPM |
| 55 | + BC = 3 // boundary condition type (0 for periodic) |
| 56 | + } |
| 57 | + Analysis { |
| 58 | + analysis_interval = 1000 // logging interval for timelog.csv |
| 59 | + subphase_analysis_interval = 5000 // loggging interval for subphase.csv |
| 60 | + visualization_interval = 100000 // interval to write visualization files |
| 61 | + N_threads = 4 // number of analysis threads (GPU version only) |
| 62 | + restart_interval = 1000000 // interval to write restart file |
| 63 | + restart_file = "Restart" // base name of restart file |
| 64 | + tolerance = 1e-9 // Sw convergence tolerance |
| 65 | + } |
| 66 | + Visualization { |
| 67 | + write_silo = true // write SILO databases with assigned variables |
| 68 | + save_8bit_raw = true // write labeled 8-bit binary files with phase assignments |
| 69 | + save_phase_field = true // save phase field within SILO database |
| 70 | + save_pressure = false // save pressure field within SILO database |
| 71 | + save_velocity = false // save velocity field within SILO database |
| 72 | + } |
0 commit comments