Functions | |
| load_module (str name, Path path) | |
| Load a repository script as an importable module. | |
| schema_leaves (dict schema) | |
| Yield every key path a schema accepts that is not itself a nested mapping. | |
| list | uncovered_inputs (core) |
| Name every solver-facing input with no recorded physical dimension. | |
| str | dimension_name (core, dimension) |
| Name a dimension triple by its constant in the conductor core. | |
| dict | physical_inputs (core) |
| Every input that carries a physical dimension, as the input index lists it. | |
| dict | compiled_field_dimensions () |
Field name to (catalog, FIELD_DIM_* suffix) for every compiled entry. | |
| str | page_section (str heading) |
One @section body of page 19. | |
| dict | documented_rows (str heading) |
| Rows of the first table in a section: first column to second and third. | |
| int | main () |
| Fail when an input lacks a dimension or an index disagrees with the code. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | CORE = REPO_ROOT / "picurv_cli" / "core.py" |
| str | IC_GENERATOR = REPO_ROOT / "generators" / "ic.gen" |
| str | EULERIAN_CATALOG = REPO_ROOT / "src" / "field_catalog.c" |
| str | PARTICLE_CATALOG = REPO_ROOT / "src" / "particle_field_catalog.c" |
| str | PAGE = REPO_ROOT / "docs" / "pages" / "19_Nondimensionalization.md" |
| dict | SOLVER_INPUT_SCHEMAS |
| dict | DEDICATED_TABLE_SURFACES |
| dict | BUILTIN_IC_GENERATORS = {"zero", "constant", "streamwise_constant", "poiseuille"} |
| ENTRY_RE = re.compile(r"\b(?:FIELD_ENTRY|FIELD_COORDINATE_ENTRY|PARTICLE_FIELD_ENTRY)\(") | |
| DIMENSION_RE = re.compile(r"FIELD_DIM_(\w+)") | |
| NAME_RE = re.compile(r'"([^"]+)"') | |
| INDEX_ROW_RE = re.compile(r"^\|\s*`([^`]+)`\s*\|\s*(\w+)\s*\|\s*`?(\w+)`?\s*\|", re.M) | |
| audit_units.load_module | ( | str | name, |
| Path | path | ||
| ) |
Load a repository script as an importable module.
| [in] | name | Module name to register. |
| [in] | path | Source path of the script. |
Definition at line 58 of file audit_units.py.
| audit_units.schema_leaves | ( | dict | schema | ) |
Yield every key path a schema accepts that is not itself a nested mapping.
A path mapped to None accepts arbitrary keys and is yielded as a leaf: its contents are covered as a whole or by a dedicated table. A list's children are keyed under path + ("[]",), so any path prefixing an entry is interior.
| [in] | schema | Key schema mapping parent paths to allowed key sets. |
Definition at line 72 of file audit_units.py.
| list audit_units.uncovered_inputs | ( | core | ) |
Name every solver-facing input with no recorded physical dimension.
| [in] | core | Loaded conductor core. |
Definition at line 93 of file audit_units.py.
| str audit_units.dimension_name | ( | core, | |
| dimension | |||
| ) |
Name a dimension triple by its constant in the conductor core.
| [in] | core | Loaded conductor core. |
| [in] | dimension | (length, velocity, density) exponents. |
VELOCITY. Definition at line 131 of file audit_units.py.
| dict audit_units.physical_inputs | ( | core | ) |
Every input that carries a physical dimension, as the input index lists it.
Dimensionless and non-quantity inputs are omitted: there is nothing to convert. Payload inputs whose dimension follows their content are listed with dimension PAYLOAD.
| [in] | core | Loaded conductor core. |
(dimension name, conversion site). Definition at line 145 of file audit_units.py.
| dict audit_units.compiled_field_dimensions | ( | ) |
Field name to (catalog, FIELD_DIM_* suffix) for every compiled entry.
| ValueError | when an entry carries no dimension argument. |
Definition at line 179 of file audit_units.py.
| str audit_units.page_section | ( | str | heading | ) |
One @section body of page 19.
| [in] | heading | Section anchor to extract. |
Definition at line 203 of file audit_units.py.
| dict audit_units.documented_rows | ( | str | heading | ) |
Rows of the first table in a section: first column to second and third.
| [in] | heading | Section anchor. |
Definition at line 215 of file audit_units.py.
| int audit_units.main | ( | ) |
Fail when an input lacks a dimension or an index disagrees with the code.
Definition at line 225 of file audit_units.py.
| audit_units.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 26 of file audit_units.py.
| str audit_units.CORE = REPO_ROOT / "picurv_cli" / "core.py" |
Definition at line 27 of file audit_units.py.
| str audit_units.IC_GENERATOR = REPO_ROOT / "generators" / "ic.gen" |
Definition at line 28 of file audit_units.py.
| str audit_units.EULERIAN_CATALOG = REPO_ROOT / "src" / "field_catalog.c" |
Definition at line 29 of file audit_units.py.
| str audit_units.PARTICLE_CATALOG = REPO_ROOT / "src" / "particle_field_catalog.c" |
Definition at line 30 of file audit_units.py.
| str audit_units.PAGE = REPO_ROOT / "docs" / "pages" / "19_Nondimensionalization.md" |
Definition at line 31 of file audit_units.py.
| dict audit_units.SOLVER_INPUT_SCHEMAS |
Definition at line 35 of file audit_units.py.
| dict audit_units.DEDICATED_TABLE_SURFACES |
Definition at line 43 of file audit_units.py.
| dict audit_units.BUILTIN_IC_GENERATORS = {"zero", "constant", "streamwise_constant", "poiseuille"} |
Definition at line 50 of file audit_units.py.
| audit_units.ENTRY_RE = re.compile(r"\b(?:FIELD_ENTRY|FIELD_COORDINATE_ENTRY|PARTICLE_FIELD_ENTRY)\(") |
Definition at line 52 of file audit_units.py.
| audit_units.DIMENSION_RE = re.compile(r"FIELD_DIM_(\w+)") |
Definition at line 53 of file audit_units.py.
| audit_units.NAME_RE = re.compile(r'"([^"]+)"') |
Definition at line 54 of file audit_units.py.
| audit_units.INDEX_ROW_RE = re.compile(r"^\|\s*`([^`]+)`\s*\|\s*(\w+)\s*\|\s*`?(\w+)`?\s*\|", re.M) |
Definition at line 55 of file audit_units.py.