Expand description
Layer 2 — field containers (VolField/SurfaceField), boundary
conditions, and field-level tensor algebra.
Field types: the discretised quantities carried on the mesh.
This module holds the data containers the FV operators read and write:
- [
Field] — a flatVec<T>with element-wise arithmetic; the raw storage with no mesh or dimension bookkeeping (mirrorsFoam::Field<Type>). - [
boundary] — boundary conditions ([BoundaryCondition]) and per-patch boundary values ([PatchField]). - [
VolField] (and theVol*Fieldaliases) — cell-centred volume fields: one value per cell plus onePatchFieldper boundary patch. - [
SurfaceField] (and theSurface*Fieldaliases) — face fields: one value per internal face plus onePatchFieldper boundary patch. - [
vol_field_algebra] — pure per-element tensor algebra (tr,symm,dev, …) lifted to whole volume fields.
Physical units are not tracked at this layer; a field simply carries f64,
Vector3, Tensor, or SymmTensor values in whatever SI units the caller
assigns them.
Re-exports§
pub use field::Field;pub use boundary::*;pub use surface_field::*;pub use vol_field::*;
Modules§
- boundary
- Boundary conditions and per-patch boundary field values.
- field
- surface_
field - vol_
field - vol_
field_ algebra - Field-level (
GeometricField) tensor algebra.