Setup
LST calculation setup functions for parsing, tracking, and spectra.
Functions
parsing_setup
Set up the parsing step (initial frequency/wavenumber sweep).
lst_tools.setup.parsing_setup
parsing_setup(*, cfg: Mapping[str, Any] | None = None, out_dir: str | Path = '.', out_name: str = 'lst_input_parsing.dat', auto_fill: bool = False, force: bool = False, cfg_path: str | Path | None = None) -> Path
Create a minimal parsing case in out_dir.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
Mapping[str, Any]
|
Already-loaded configuration dictionary. |
None
|
out_dir
|
str | Path
|
Directory to write the input deck into. Created if missing. |
'.'
|
out_name
|
str
|
File name for the input deck (default: "lst_input_parsing.dat"). |
'lst_input_parsing.dat'
|
auto_fill
|
bool
|
When True, derive |
False
|
cfg_path
|
str | Path
|
Path to the config file on disk. Used by |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
Path to the written input deck. |
tracking_setup
Set up the tracking step (spatial marching along disturbance trajectories).
lst_tools.setup.tracking_setup
tracking_setup(*, cfg: Mapping[str, Any] | None = None, fname_parsing: str | None = None, debug_path: Path | str | None = None, auto_fill: bool = False, force: bool = False, cfg_path: str | Path | None = None, finit: float | None = None, case_reporter: Callable[[str, float], None] | None = None) -> Path
Set up eigenvalue tracking cases for all requested beta values.
Pipeline
- Resolve and validate configuration
- Auto-fill unset sweep parameters (if requested)
- Read parsing solution and baseflow data
- Determine beta values to track
- For each beta: scaffold directory, find initial guess, write input deck and HPC script
- Write a launcher script to submit all jobs
spectra_setup
Set up spectra calculations at multiple streamwise locations.
lst_tools.setup.spectra_setup
Set up spectral analysis calculations for LST solver.
Creates LST input decks configured for spectral analysis at streamwise
locations specified in the configuration file with frequency and wavenumber
ranges from [lst.params].
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
Mapping[str, Any]
|
Configuration dictionary. If None, will search for and load lst.cfg. |
None
|
Returns:
| Type | Description |
|---|---|
list[Path]
|
list[Path]: Paths to the written input decks. |