Porosities are calculated by the Porcalc utility, which is included in the FLACS installation. Porcalc can be started from different origins, as discussed below.
Based on the obstruction file (co<JOBID>.dat3) and the grid file (cg<JOBID>.dat3), Porcalc computes the porosities and other geometric measures and stores them in the porosity file (cp<JOBID>.dat3). This file defines if each of the grid cells is open, blocked, or partially open/blocked. The porosity file is what the Flacs solver uses as geometric model when conducting a simulation.
Calculating porosities with Porcalc
Calculating porosities from CASD
In CASD, you can calculate the porosities by clicking on thebutton highlighted in the figure below.
Alternatively, you can launch the Porcalc from themenu in CASD, as shown in the figure below.
Calculating porosities from the FLACS RunManager
To calculate porosities from the FLACS RunManager, you mark the job for which you want to calculate porosities and then click on the Porcalc button to the right of the job selection.
Calculating porosities from the command line
To run Porcalc manually (or using a script) from the command line, use the command:
run porcalc <JOBID>
Note that <JOBID> is only the six-digit number of the job, without any prefix or extension.
To run porcalc without lauching the GUI you can write the command line as follows:
porcalc – <JOBID>
run porcalc – <JOBID>
Compatibility between Porcalc and FLACS
It is important to use consistent versions of Porcalc and the Flacs solver. When you use the RunManager, CASD, Porcalc and the Flacs solver from the same installed FLACS package, then Porcalc is compatible with the Flacs solver.
If you run Porcalc and the FLACS solver from different versions you must verify their compatibility in the version history table in the FLACS User’s Manual.