cape.pylch.case
: Loci/CHEM case control module¶
This module contains Loci/CHEM-specific versions of some of the generic
methods from cape.cfdx.case
.
- class cape.pylch.casecntl.CaseRunner(fdir=None)¶
- finalize_files(j: int)¶
Clean up files after running one cycle of phase j
- Call:
>>> runner.finalize_files(j)
- Inputs:
- runner:
CaseRunner
Controller to run one case of solver
- j:
int
Phase number
- runner:
- Versions:
2024-10-17
@ddalle
: v1.0
- getx_iter() int | None ¶
Get the most recent iteration number for Loci/CHEM case
- Call:
>>> n = runner.getx_iter()
- Inputs:
- runner:
CaseRunner
Controller to run one case of solver
- runner:
- Outputs:
- n:
int
|None
Last iteration number
- n:
- Versions:
2024-10-17
@ddalle
: v1.0
- init_post()¶
Custom initialization for pyfun
- Call:
>>> runner.init_post()
- Inputs:
- runner:
CaseRunner
Controller to run one case of solver
- runner:
- Versions:
2023-06-28
@ddalle
: v1.0
- read_varsfile(j: int | None = None) VarsFile ¶
Read case
.vars
file- Call:
>>> yamlfile = runner.read_varsfile(j=None)
- Inputs:
- runner:
CaseRunner
Controller to run one case of solver
- j: {
None
} |int
Phase number
- runner:
- Outputs:
- varsfile:
VarsFIle
Loci/CHEM
.vars
file interface
- varsfile:
- Versions:
2024-11-07
@ddalle
: v1.0
- run_chem(j: int)¶
Run one phase of the
chem
executable- Call:
>>> runner.run_superlava(j)
- Inputs:
- runner:
CaseRunner
Controller to run one case of solver
- j:
int
Phase number
- runner:
- Versions:
2024-10-17
@ddalle
: v1.0
- run_phase(j: int)¶
Run one phase using appropriate commands
- Call:
>>> runner.run_phase(j)
- Inputs:
- runner:
CaseRunner
Controller to run one case of solver
- j:
int
Phase number
- runner:
- Versions:
2024-10-17
@ddalle
: v1.0
- cape.pylch.casecntl.run_chem()¶
Setup and run the appropriate LAVACURV command
- Call:
>>> run_chem()
- Versions:
2024-10-17
@ddalle
: v1.0;