Skip to main content

Module case

Module case 

Source
Expand description

Whole-case reader (system/, constant/polyMesh, a time directory).

FoamCase::read loads an OpenFOAM case directory into memory:

  • system/controlDict, system/fvSchemes, system/fvSolution (and any other system/ dictionaries) as FoamFile dictionaries;
  • constant/polyMesh as a PolyMesh (plus a derived FvMesh);
  • the fields in a time directory (default 0/) as CaseFields, dispatched by their FoamFile class (volScalarField / volVectorField).

Field classes other than scalar/vector volume fields are skipped and their file names recorded in FoamCase::skipped_fields (honest partial coverage — nothing is silently lost). FoamCase::write is a best-effort counterpart that re-emits the system dictionaries, the mesh, and the scalar/vector fields.

Structs§

FoamCase
An in-memory OpenFOAM case.

Enums§

CaseField
A field loaded from a time directory, tagged by its value type.