runtraj.Simulation#
- class runtraj.Simulation(release: 'Release', variant: 'Variant', output: 'Output', directory: 'Path | None' = None, realization: 'int | None' = None) None[source]#
One release run under one variant, as one realization of an ensemble or alone.
A simulation is a value: its release, its variant, and the output directory its results are in. From those it knows where the transport model’s result (its particles, or another type:
result_path), the file of each stage (path()), and its log are, whether they exist (has(),is_complete), and how to read them. It runs nothing itself; the workers inruntraj.executionrun the transport model and the stages.You rarely build one yourself. Get it from a project instead, as in
project.simulation(release_id, "hrrr").
Parameters
releaseReleaseWhere and when particles are released.
variantVariantThe variant, resolved: its configs, and the hashes that find its particles folder and its stages’ folders.
outputOutputThe output directory.
directoryPath, optionalThe project directory, where a relative file name in the settings starts.
Nonestarts it from the working directory.realizationint, optionalWhich realization of an ensemble variant (
realizations: N),0toN - 1.Nonefor a variant that runs once.
Attributes#
The concentration result, a child per grid ( |
|
Why this simulation is not complete, as the worker recorded it, or |
|
Whether the particle file exists. |
|
Whether the transport model's result exists, whatever its type. |
|
|
|
Whether every expected result exists. |
|
Where a failed run's working directory is kept, or |
|
Text of the transport model's log. |
|
Path of the transport model's log in the output directory, or |
|
The particle table, one row per particle per output step. |
|
Path of the particle file in the output directory, or |
|
The transport model's result, of the type the variant makes. |
|
Path of the transport model's result in the output directory, or |
|
The trajectory table, one row per trajectory per output time ( |
|
The transport config this simulation runs with. |