Command line¶
zvcfd follows the conventions of zvtools and bridge-sim: argparse
subcommands, kebab-case flags, comma-separated shapes (--shape Z,Y,X),
exit status 0 on success. python -m zvcfd is the same command.
Command |
Does |
|---|---|
|
report capabilities; with |
|
memory and time for a domain (Plan a run) |
|
summarise an ASCII Fluent mesh and plan voxel runs of it; with |
|
import any mesh into a Zarr Vectors mesh collection, the input both solvers run from |
|
voxelise a mesh collection (or a Fluent mesh) into a sparse domain with inlet/outlet patches; report patch voxel counts |
|
synthetic geometries |
|
run a configuration, on one GPU or several ( |
|
describe a run collection, mesh collection or store |
zvcfd plan¶
Flag |
Default |
Meaning |
|---|---|---|
|
fluid voxels; or give |
|
|
bounding box in voxels (required for |
|
|
fluid fraction of the box |
|
|
0.6 |
brick fill (sparse layout) |
|
|
|
|
|
|
|
8 |
|
|
|
|
|
|
comma list of |
|
adds a total time |
|
|
|
|
|
machine-readable rows |
zvcfd mesh-info¶
Takes --fill, --gpus, --gpu, --method as plan does, and
--voxel-size as a comma list in mesh units.
With --volume it reads the whole volume mesh instead (ASCII or binary)
and reports, for the finite-volume solver: element counts by type, the
dual-geometry checks (control volumes against element volumes, closure,
minimum orthogonality), blocks per row of the coupled system, flux
points, and the GPU memory the solve would need in double, mixed and
DILU variants. On the HiP-CT coronary mesh this takes about 4 minutes
and 11 GB of host memory.
zvcfd import-mesh¶
Reads a mesh and writes it as a mesh collection (Mesh collections): a volume store and a boundary store, in metres. Both solvers run from a collection, so this is the first step for any mesh.
Source |
Read by |
|---|---|
Ansys Fluent |
|
VTK |
|
Gmsh, Abaqus, Exodus, MED, Nastran, … |
meshio, if installed: tagged boundary faces (Gmsh physical groups, cell sets) become zones, untagged ones zone |
Flag |
Default |
Meaning |
|---|---|---|
|
|
the collection |
|
|
the source’s coordinate unit |
|
a quarter of the longest box edge |
spatial chunk edge, metres |
|
boundary store only, enough for the voxel solver |
A zone whose name contains inlet is a velocity inlet and one containing
outlet a pressure outlet, unless the source says otherwise; zvcfd run
maps zones to conditions by the boundaries.patches rules either way.
$ zvcfd import-mesh "mesh 1.msh" --out coronary.zvmesh --unit mm
read mesh 1.msh: 5,673,949 nodes, {'tet': 6546228, 'pyramid': 87, 'wedge': 8244327}, 82 zones (64.3 s)
wrote coronary.zvmesh (70.5 s)
5,673,949 nodes, {'tet': 6546228, 'pyramid': 87, 'wedge': 8244327}; chunk 16.5526 mm; box [58.481, 58.765, 66.21] mm
zone 3 wall 4 faces from-lumen_…-to-xmax-wall
…
zone 84 velocity-inlet 1,822 faces from-lumen_…-to-cor_inlet_001_amira_amiranode_329-velocity-inlet
zvcfd run¶
The configuration file is YAML (needs pyyaml) or JSON. Its schema is
zvcfd.config.RunConfig, validated strictly
(Your first simulation).
Section |
Keys |
|---|---|
|
|
|
|
|
|
|
|
|
finite-volume settings ( |
|
|
|
|
|
|
With source.kind: mesh, path is a mesh collection (.zvmesh), or
any mesh import-mesh reads. A raw mesh is imported once into
<output.path>/meshes/<name>-<hash>.zvmesh and reused by later runs; the
key covers the file’s path, size and modification time, unit and
fv.chunk. The voxel solver voxelises the collection’s boundary store,
and the finite-volume solver solves on the mesh read back from its volume
store. The run collection links the mesh collection (node
mesh-collection).
A run writes monitors.json (flux history, imbalance, convergence) and
patches.csv (per patch: kind, voxels, area, flow, split, mean pressure)
into the run collection. A finite-volume run also writes node-field
snapshots (fields/step-*.zarr: velocity, pressure, wall shear at wall
nodes) and, after a transient, TAWSS, OSI and RRT as vertex attributes of
the boundary store; monitors.json records each outer iteration’s
residuals, linear iterations and convergence, the linear solver used, and
any switches of the auto ladder. Settings: Finite-volume numerics;
examples: examples/pipe_fv.yaml, examples/coronary_fv.yaml.