simulation_setup – Common Simulation Setup

Provides abstract classes for block groups which are used by pyPost and pyTrace.

class tracesuite.simulation_setup.Block[source]

Python class representing a general block.

I.e. a structured or unstructured part of the computational domain handled by an instance of SolverCntl. Note that Trace holds meta information of all blocks on each rank but only allocates actual (e.g. solution) data on blocks that are assigned to its own rank (i.e. local blocks).

If this is a local block, dimensionalized access to the underlying data fields is provided. Furthermore, iterators can be used to loop over all cells in a single loop. All methods and properties are valid on each rank. Nevertheless, if the block is not local, fields will be empty and iterators loop length will be zero.

abstract property cells

Returns the cells of the block.

abstract property dim

Returns the dimension of the block.

abstract property family: BlockGroup

Returns the block’s family.

abstract property inner_cells

Returns the inner cells of the block.

abstract property is_local: bool

Returns true if the block is local.

abstract property name: str

Returns the name.

class tracesuite.simulation_setup.BlockGroup[source]

Abstract class for pyTrace and pyPost block groups.

abstract property blocks: dict[str, Block]

Returns a dictionary of all blocks.

abstract property local_blocks: dict[str, Block]

Returns dictionary of all local blocks.

abstract property name: str

Returns the block group name.

class tracesuite.simulation_setup.Component[source]

Specific BlockGroup representing a single component in turbomachinery context.

abstract property rows: dict[str, Row]

Returns dictionary of all rows.

abstract property stages: dict[str, Stage]

Returns dictionary of all stages.

class tracesuite.simulation_setup.Panel[source]

Python class representing a general panel.

All methods and properties are valid on each rank.

abstract property family: PanelGroup

Returns the panel’s family.

abstract property name: str

Returns the name.

class tracesuite.simulation_setup.PanelGroup[source]

Abstract class for pyTrace and pyPost panel groups.

abstract property n_bands: int

Return the number of bands.

abstract property name: str

Returns the panel group name.

class tracesuite.simulation_setup.Row[source]

Specific BlockGroup representing a single row in turbomachinery context.

abstract property is_rotating: bool

Returns true if the row is rotating.

abstract property parent_component: Component

Returns the parent component.

abstract property parent_stage: Stage

Returns the parent stage.

abstract property revolutions_per_minute: float

Returns the RPM of the row.

abstract property type

Returns the row type.

class tracesuite.simulation_setup.Setup[source]

Complete turbomachine setup.

abstract property block_groups: ChainMap[str, BlockGroup]

Returns dictionary of all blocks groups in either TRACE or POST.

abstract property blocks: dict[str, Block]

Returns dictionary of all blocks.

abstract property boundaries: dict[str, PanelGroup]

Returns dictionary of all boundaries.

abstract property components: dict[str, Component]

Returns dictionary of all components.

property panel_groups: ChainMap[str, PanelGroup]

Returns dictionary of all panel groups in either TRACE or POST.

abstract property rows: dict[str, Row]

Returns dictionary of all rows.

abstract property stages: dict[str, Stage]

Returns dictionary of all stages.

class tracesuite.simulation_setup.Stage[source]

Specific BlockGroup representing a single stage in turbomachinery context.

abstract property parent_component: Component

Returns the parent component.

abstract property rows: dict[str, Row]

Returns dictionary of all rows.