post – Run POST¶
PyPost offers structs and prototypes from POST for the usage in python.
Usage¶
With this you can create a powerful post-processing chain using the POST tasks. The interface operates on POST datasets. While most of the tasks operate on the given dataset, some e.g. the interpolateCellCenteredToVertexData- task feature a return type. As the pyPOST methods are auto generated based on the existing POST tasks, you can apply any known task in its long version including sub-options. The complete documentation of these methods/tasks can be found at Modules
After initializing pyPOST, the tasks can be used as shown in the subsequent example:
1from tracesuite.post import POST
2
3post = POST()
4
5dataset = post.input("TRACE.cgns")
6dataset_vertex = post.interpolateCellCenteredToVertexData(dataset)
7post.output(dataset_vertex, filename = "POST.plt")
Examples¶
An example how to handle loop tasks can be found in trace_suite/pytracesuite/examples/post/loopTasks.py.
#!/usr/bin/env python3
"""Example using a pyPOSTs loop task."""
from __future__ import annotations
import pathlib
from mpi4py import MPI
# Import POST module
from tracesuite.post import POST
# Parameters
input_file_abs = pathlib.Path.cwd() / "TRACE.fourier.cgns"
output_file_abs = pathlib.Path.cwd() / "output" / "TRACE_withEntropy.fourier.cgns"
# POST scripting starts here
# For testing and demonstration purposes only every second process participates in the POST processing.
# Notice, that the POST tasks return a None (or iterable None) on processes that are not member of 'comm_post'.
# For more information on mpi4py consult https://mpi4py.readthedocs.io
comm_post = MPI.COMM_WORLD.Split(color=0 if MPI.COMM_WORLD.Get_rank() % 2 else MPI.UNDEFINED)
# Create a POST instance
post = POST(comm_post)
# Read input CGNS
fourier_dataset_input = post.input(input_file_abs.as_posix())
# Definition of parameter for reconstructTimeHistory
frequency = 100.0
n_pics = 20
# Initialize accumulation PostDataSet for LoopEndTask
fourier_dataset_output = None
# LoopStartTask like reconstructTimeHistory are performed using an Iterator
# The Iterator performs all tasks defined in the For-loop before going on with the next iteration and producing the next
# picture (POST dataset)
# Start LoopStartTask reconstructTimeHistory
for ds in post.reconstructTimeHistory(fourier_dataset_input, n_pics, frequency):
# Calculate the Entropy for each picture
post.calcEntropyPost(ds)
# LoopEndTasks need an accumulator POST data set which is updated every iteration
# The accumulator DataSet is initialized before the LoopStartTask
# The Return value of LoopEndTask always need to be the accumulator PostDataset defined as second argument
# (here: fourier_dataset_output)
# Start LoopEndTask discreteFourierTransform
fourier_dataset_output = post.discreteFourierTransform(ds, fourier_dataset_output, n_pics, hl=[0, 1, 2, 3])
# Output to Fourier cgns
post.output(fourier_dataset_output, output_file_abs.as_posix())
You can also add your own calculations using numpy like this example shows:
1 # Read input CGNS
2 ds = post.input(input_file_abs.as_posix(), rbc=True)
3
4 # Loop over all blocks and calculate the Temperature in python
5 for block in ds.blocks.values():
6
7 # Get solution of the current block
8 sol = block.FlowSolution
9
10 # Initialize a Temperature field
11 temperature = None
12
13 # Calculate the Temperature if the block is local
14 if block.is_local:
15
16 R = 287.06
17
18 # Get Pressure and Density fields of the current block
19 p = sol.fields["Pressure"]
20 rho = sol.fields["Density"]
21
22 # The actual variable fields as numpy arrays are accessed using "field.v" (value)
23 # Calculate the Temperature using the ideal gas equation of state
24 temperature = p.v / (R * rho.v)
25
26 # The calculated Temperature is appended to the solution as a new User defined variable (already existing variables
27 # can be overwritten)
28 sol.append_field("TemperaturePython", temperature)
Modules¶
You can find details on every documented POST task in the main documentation of the tasks.
- class tracesuite.post.POST(post_communicator: ~mpi4py.MPI.Comm = <mpi4py.MPI.Intracomm object>, *, root_communicator: ~mpi4py.MPI.Comm = <mpi4py.MPI.Intracomm object>, show_splashscreen: bool = True)[source]¶
Representation of a POST instance.
- ExtendedTurbomachineryAnalysis_0D1D(dataSet: DataSet, cda: bool = False, domainDefinition: None | str = None, tecplotASCII: str = '../output/POST', ulist: str = '../output/POST/GTA.ulst', exitStagnationPressure: None | float = None, bidx: bool = False, legacyCD: bool = False) None¶
0D and 1D global turbomachine analysis including expert variables.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
cda – flag to compute derived averages (suboption for btm-task)
domainDefinition – global domain definition (suboption for btm-task)
tecplotASCII – Write in Tecplot ASCII format to specified directory (suboption for wgta-task).
ulist – Write in ULIST format to specified file (suboption for wgta-task).
exitStagnationPressure – Additional exit stagnation pressure
bidx – Process domain bands by index of inlet and outlet.
legacyCD – Calculate legacy CoefDiffusion in the 1D relations
- TurbomachineryAnalysis_0D1D(dataSet: DataSet, cda: bool = False, domainDefinition: None | str = None, tecplotASCII: str = '../output/POST', ulist: str = '../output/POST/GTA.ulst', MTU: bool = False, onlyMain: bool = False, bidx: bool = False, legacyCD: bool = False) None¶
Glora performs the 0D and 1D global turbomachine analysis.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
cda – Flag to compute derived averages (suboption for btm-task).
domainDefinition – Global domain definition (suboption for btm-task).
tecplotASCII – Write in Tecplot ASCII format to specified directory (suboption for wgta-task).
ulist – Write in ULIST format to specified file (suboption for wgta-task).
MTU – Flag to write the values in MTU specific dimensions (suboption for wgta-task).
onlyMain – Flag to build turbomachine only based on main inlets and outlets.
bidx – Process domain bands by index of inlet and outlet.
legacyCD – Calculate legacy CoefDiffusion in the 1D relations
- UnstructToStruct(dataSet: DataSet) None¶
Transforms an unstructured mesh into structured mesh using ‘StructuredIndices’.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- addControlDomain(dataSet: DataSet, name: str, mainInlet: str, mainOutlet: str, leaks: None | Iterable[str] = None, domainDefinition: str = 'user_defined') None¶
Add a control domain to the turbomachine.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
name – name of the control domain
mainInlet – main inlet panel group
mainOutlet – main outlet panel group
Optional Parameters
- Parameters:
leaks – list of leakage panel group
domainDefinition – domain definition
- addFlowFields(dataSet: DataSet | list[DataSet]) DataSet | None¶
Calculate the sum of two data sets.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
Return Value
- Returns:
DataSet or None if current process does not execute POST
- addMeshDeformation(dataSet: DataSet, md: None | str = None, phase: float = 0.0, amp: float = 1.0, rmd: bool = False, fsi: bool = False) None¶
Perturb mesh by a (possibly complex) mesh deformation.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
md – Name of mesh deformation (eigenmode).
phase – Phase shift.
amp – Scaling factor for deformation amplitude.
rmd – Perturbs mesh by (real) modal displacements coming from a coupled simulation.
fsi – Perturbs mesh by (real) displacements coming from a fully coupled simulation.
- addTemperatureIncrement(dataSet: DataSet, deltaTtabs: float, families: None | Iterable[str] = None) None¶
Add specified TemperatureStagnationAbs increment for specified blockgroups or entire configuration. The thermodynamic state of the flow is then changed while keeping PressureStagnationAbs and MachAbs constant.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
deltaTtabs – Specify the increase of TemperatureStagnationAbs.
Optional Parameters
- Parameters:
families – Specify the names of the blockgroups to consider for the TemperatureStagnationAbs increase (default:entire configuration).
- addXiEtaToBandIntegrals(dataSet: DataSet) None¶
Add Xi and Eta to all available band integral values using the S2Mblock.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- aeAnalysis(dataSet: DataSet) None¶
Computes aerodynamic work, damping, stiffness, etc. for all eigenmodes.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- applyReynoldsStressRealizability(dataSet: DataSet) None¶
Apply realizability constraints to Reynolds stresses.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- assembleRadialDistributions(dataSet: DataSet) None¶
Assembly of radial distributions on intersection families from block integral values of S1 blade cuts.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- averagedGridSize(dataSet: DataSet) None¶
Calculates the representative grid size according to ASME Standard.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- averaging(dataSet: DataSet, signed: bool = False, splitAvg: bool = False, order: int = 2, deadStatePressure: None | float = None) None¶
This task performs circumferential area-/mass-/flux-averaging for boundary/analysis/interface-panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
signed – Specifies if weighting factor is the signed massflow. Otherwise it’s the magnitude of the massflow. (avgm-task option)
splitAvg – Three types of averaging are performed. Standard averaging for all bands and panels and additionally just for ingoing/outgoing massflow on panels. (avga/avgm/avgf-task option)
order – Choose interpolation order. 1st or 2nd order (default).
deadStatePressure – Dead state pressure (for flow mechanical work potential)
- averagingByArea(dataSet: DataSet, splitAvg: bool = False, preserveFields: bool = False, deadStatePressure: None | float = None) None¶
Performs an area averaging for bands and panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
splitAvg – Three types of averaging are performed. Standard area averaging for all bands and panels and additionally an area averaging just for ingoing/outgoing massflow on panels
preserveFields – Keep existing fields from being overwritten
deadStatePressure – Dead state pressure (for flow mechanical work potential)
- averagingByFlux(dataSet: DataSet, splitAvg: bool = False) None¶
Performs a flux averaging for bands and panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
splitAvg – Three types of averaging are performed. Standard flux averaging for all bands and panels and additionally a flux averaging just for ingoing/outgoing massflow on panels
- averagingByMassFlow(dataSet: DataSet, signed: bool = False, splitAvg: bool = False, workAvg: bool = False, workAvgSimple: bool = False, deadStatePressure: None | float = None, preserveFields: bool = False) None¶
Performs a mass averaging for bands and panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
signed – Specifies if weighting factor is the signed massflow. Otherwise it’s the magnitude of the massflow.
splitAvg – Three types of averaging are performed. Standard mass averaging for all bands and panels and additionally a mass averaging just for ingoing/outgoing massflow on panels
workAvg – Replace mass weighted sum of total pressure by an expression consistent with total enthalpy conservation, other variables keep mass weighted
workAvgSimple – Simplified version of work average
deadStatePressure – Dead state pressure (for flow mechanical work potential)
preserveFields – Keep existing fields from being overwritten
- averagingInversion(dataSet: DataSet) None¶
Retrieves integral physical quantities. Call after the other averaging routines.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- averagingUnsteady(dataSet: DataSet, accumulatorDataSet: None | DataSet, nPics: int, signed: bool = False, splitAvg: bool = False, order: int = 2, deadStatePressure: None | float = None) DataSet | None¶
This task performs circumferential area-/mass-/flux-averaging for boundary/analysis/interface-panels with proper time averaging.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
accumulatorDataSet – AccumulationDataSet for dataSet for task, None for first iteration
nPics – Number of iterations for this task
Optional Parameters
- Parameters:
signed – Specifies if weighting factor is the signed massflow. Otherwise it’s the magnitude of the massflow. (avgm-task option)
splitAvg – Three types of averaging are performed. Standard averaging for all bands and panels and additionally just for ingoing/outgoing massflow on panels. (avga/avgm/avgf-task option)
order – Choose interpolation order. 1st or 2nd order (default).
deadStatePressure – Dead state pressure (for flow mechanical work potential)
Return Value
- Returns:
Updated accumulationDataSet for task or None if current process does not execute POST. Should be passed in next iteration.
- bladePressureDistribution(dataSet: DataSet, avgType: str = 'flux') None¶
Calculate cp and Mach isentropic.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
avgType – Specify averaging type: flux, mass or area.
- bladePressureDistributionSolid2d(dataSet: DataSet, avgType: str = 'flux') None¶
Calculate cp and Mach isentropic on solid panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
avgType – Specify averaging type: flux, mass or area.
- blendingFunctionsMenter(dataSet: DataSet, cmu: None | float = None, sigma: float = 0.856, llcd: float = 1e-20, F1mod: bool = False) None¶
Compute Menter’s blending functions F1, F2, as well as the single arguments.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
cmu – Value for model constant C_mu (default 0.09_f)
sigma – Value for model constant sigma_w2 (default 0.856).
llcd – Value for model constant lower limit cross diffusion (default 1.0E-20).
F1mod – Apply F1 modification like for Gamma and Gamma-Re-Theta model.
- buildCartesianS2M(dataSet: DataSet, deep: int = 2, autodeep: bool = False, nAxial: int = 500, nRadial: int = 500, x_min: None | float = None, x_max: None | float = None, r_min: None | float = None, r_max: None | float = None) None¶
Performs a S2M-averaging by a recursive Tetrahedron decomposition and projection to a 2D Raster grid (RTP).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
deep – deep: recursive refinement steps
autodeep – Flag to use adaptive deep refinement (defined deep factor is ignored!).
nAxial – Mesh Size Axial
nRadial – Mesh Size Radial
x_min – Mesh X min
x_max – Mesh X max
r_min – Mesh R min
r_max – Mesh R max
- buildTurbomachine(dataSet: DataSet, cda: bool = False, domainDefinition: None | str = None, onlyMain: bool = False) None¶
Create turbomachinery configuration for global turbomachinery analysis.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
cda – flag to compute derived averages
domainDefinition – global domain definition
onlyMain – flag to build turbomachine only based on main inlets and outlets
- calcAnisotropyInvariants(dataSet: DataSet) None¶
Calculates the second, third and combined invariants of the Reynolds stress anisotropy tensor.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcAnisotropyTensor(dataSet: DataSet) None¶
Calculates the Reynolds stress anisotropy tensor.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcAnisotropyTensorBarycentricWeights(dataSet: DataSet, offset: float = 0.0, exponent: float = 1.0) None¶
Calculates the Eigenvalues of Reynolds stress anisotropy tensor and derived from that coordinates in barycentric map as well as weights for RGB coloring.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
offset – Offset for barycentric weight
exponent – Exponent for barycentric weight
- calcBandExtrema(dataSet: DataSet) None¶
Calculate maximal and minimal values of all variables along bands (absolute value for complex variables).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcCartesianVelocityComponents(dataSet: DataSet) None¶
Calculates the Cartesian components of the velocity vector in relative frame of reference (radial, circumferential).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcCascadeLoss(dataSet: DataSet, height: float = 0.5) None¶
Add CoefPressureStagDiffDynTh to panel integral values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
height – The channel height at which the reference values are read.
- calcCellEdgeLengths(dataSet: DataSet) None¶
Computation of respective cell edge lengths.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcCircFourierDecomp(dataSet: DataSet, pf: None | Iterable[str] = None) None¶
Performs circumferential Fourier decomposition at given plane (panel family or analysis plane).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
pf – List of panel families on which the circumferential Fourier decomposition is computed.
- calcCircMixingEntropy(dataSet: DataSet, mt: None | Iterable[str] = None) None¶
Compute circumferential mixing entropy.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
mt – List of wave mode types which are taken into account: Entropy, VorticityRadial, VorticityCircumferential, AcousticDownstream, AcousticUpstream
- calcCoefFriction(dataSet: DataSet) None¶
Computation of skin friction coefficient.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcCoefFrictionSolid2D(dataSet: DataSet, eta: bool = False) None¶
Computation of skin friction coefficient on solid panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
eta – use CoordinateEta
- calcCoefPressure(dataSet: DataSet) None¶
Computation of pressure coefficient.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcCoefPressureSolid2D(dataSet: DataSet, eta: bool = False) None¶
Computation of pressure coefficient on solid panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
eta – use CoordinateEta
- calcCompressibilityFactor(dataSet: DataSet) None¶
Computation of compressibility factor.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcConservativeVariables(dataSet: DataSet) None¶
Calculates conservative variables as preparation for averaging routines. The task is generalized for arbitrary dimensions and arbitrary grid locations.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcCylindricalCoordinates(dataSet: DataSet) None¶
Computes cylindrical coordinates (i.e. ‘CoordinateR’ and ‘CoordinateTheta’) at current grid location and stores them alongside with the other field variables.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcCylindricalVelocityComponents(dataSet: DataSet) None¶
Calculates the cylindrical components of the velocity vector in relative frame of reference (radial, circumferential) and the meridional velocity magnitude.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcCylindricalVelocityComponentsAbs(dataSet: DataSet) None¶
Calculates the cylindrical components of the velocity vector in absolute frame of reference (radial, circumferential) and the meridional velocity magnitude.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcDeterministicStresses(dataSet: DataSet | list[DataSet]) DataSet | None¶
Computes the deterministic stresses.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
Return Value
- Returns:
DataSet or None if current process does not execute POST
- calcDissipationK(dataSet: DataSet) None¶
Calculates the dissipation of turbulent kinetic energy.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcEntropyPost(dataSet: DataSet) None¶
Computation of entropy.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcFaceArea(dataSet: DataSet) None¶
Calculates the area for each face.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcFaceMassFlow(dataSet: DataSet) None¶
Calculates the mass flow (in the relative system) for each face.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcFlameIndex(dataSet: DataSet, fuel: str, threshold: float) None¶
Computation of Takeno flame index.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
fuel – Fuel species name
threshold – Flame index threshold
- calcForceAndTorque(dataSet: DataSet) None¶
Compute force and torque (x-component only) at solid walls.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcFundamentalDerivative(dataSet: DataSet) None¶
Computation of fundamental derivative of gas dynamics.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcHTCKaderWallLaw(dataSet: DataSet, nwd: float = 50, htcmin: None | float = None, htcmax: None | float = None) None¶
Approximate the Heat Transfer Coefficient (HTC) and corresponding Reference Temperature according to B.A. Kader [1991] using the temperature wall law,i.e. by using equation 24a for the part of the boundary layer which is close to the wall.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
nwd – Nondimensional wall distance (y+) used for approximating the reference temperature (default: 50).
htcmin – Lower limit for the HTC approximation.
htcmax – Upper limit for the HTC approximation.
- calcJacobian(dataSet: DataSet) None¶
Calculate Jacobians and some cell normal vector components and store them in the flow solution.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcKatoLaunderProductionK(dataSet: DataSet) None¶
Calculates the production of turbulent kinetic energy according to Kato-Launder modification.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcLambda2(dataSet: DataSet, gradVar: Iterable[str] = ('VelocityX', 'VelocityY', 'VelocityZ')) None¶
Calculates lambda2 for the visualization of vortex structures.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, velocity gradient tensor is computed.
- calcLoadBalance(dataSet: DataSet, nprocs: int, output: None | str = None, splitBlocks: bool = False, transposeBlocks: bool = False, splitJournal: None | str = None, mergeJournal: None | str = None, implicitWeight: None | float = None, RungeKuttaMethod: None | str = None, unstructuredWeight: None | float = None, minimumEfficiency: None | float = None) None¶
Create a load balance file.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
nprocs – Number of processors.
Optional Parameters
- Parameters:
output – Name of the load balance file to be created (Default: ‘BALANCE_<nprocs>PROC.post’).
splitBlocks – Create split and merge files.
transposeBlocks – Transpose blocks in split and merge files for SIMD friendliness.
splitJournal – Name of the GMC split journal to be created (Default: ‘split.jou.post’).
mergeJournal – Name of the GMC merge journal to be created (Default: ‘merge.jou.post’).
implicitWeight – Factor to weight implicit blocks relative to explicit blocks.
RungeKuttaMethod – Name of the IMEX Runge-Kutta method (determines the max. stable CFL number).
unstructuredWeight – Factor to weight unstructured blocks relative to structured blocks (Default 1.3)
minimumEfficiency – Minimum load balance efficiency in percent (Default 97)
- calcMach(dataSet: DataSet) None¶
Computation of Mach number in the relative frame of reference.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcMachAbs(dataSet: DataSet) None¶
Computation of Mach number in the absolute system.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcMachIsentropic(dataSet: DataSet) None¶
Computation of isentropic Mach number.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcMachIsentropicSolid2D(dataSet: DataSet, eta: bool = False) None¶
Computation of isentropic Mach number on solid panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
eta – use CoordinateEta
- calcMachMeridional(dataSet: DataSet) None¶
Computation of meridional Mach number.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcMaximumEdgeLength(dataSet: DataSet) None¶
Computation of maximum edge length direction for each cell.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcMolecularViscosity(dataSet: DataSet) None¶
Compute molecular viscosity using the Sutherland law.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcNorm(dataSet: DataSet, f: str) None¶
Calculates the norms (L1, L2, Lmax) of current data set.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
f – Specify output file.
- calcOffsetCurvesCriteria(dataSet: DataSet) None¶
Calculate criteria based on a curve and it’s “offset”-curve twin.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcPerturbedAnisotropyTensor(dataSet: DataSet) None¶
Calculates the perturbed Reynolds stress anisotropy tensor.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcPopeCriterion(dataSet: DataSet, cd: None | float = None) None¶
Computation of Pope-Criterion.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
cd – Value for model constant C_d (default 0.09_f)
- calcPressureNormalized(dataSet: DataSet) None¶
Computation of normalized pressure.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcPressureNormalizedSolid2D(dataSet: DataSet, eta: bool = False) None¶
Computation of normalized pressure on solid panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
eta – use CoordinateEta
- calcPressureStagnation(dataSet: DataSet) None¶
Computation of stagnation pressure.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcPressureStagnationAbs(dataSet: DataSet) None¶
Computation of stagnation pressure in the absolute system.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcPrimitiveVariables(dataSet: DataSet) None¶
Calculates primitive variables. The task is generalized for arbitrary dimensions and arbitrary grid locations.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcPrimitiveVarsCylind(dataSet: DataSet) None¶
Calculates primitive variables in the cylindrical coordinate system based on conservative variables in the cylindrical coordinate system.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcProductionK(dataSet: DataSet) None¶
Calculates the production of turbulent kinetic energy.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcRelToAbs(dataSet: DataSet) None¶
Transform relative quantities to absolute frame of reference.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcReynoldsNumber(dataSet: DataSet, refLength: None | float = None, refLengthEdge: bool = False) None¶
Computation of Reynolds number on every cell from flow data.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
refLength – Reference length.
refLengthEdge – Use maximal edge length as local reference length.
- calcReynoldsStresses(dataSet: DataSet) None¶
Calculates the Reynolds stresses. Input velocity should be fluctuations!
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcReynoldsStressesBoussinesq(dataSet: DataSet, gradVar: Iterable[str] = ('VelocityX', 'VelocityY', 'VelocityZ')) None¶
Calculates the Reynolds stresses as given by Boussinesq assumption.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, velocity gradient tensor is computed.
- calcReynoldsStressesEARSM(dataSet: DataSet, gradVar: Iterable[str] = ('VelocityX', 'VelocityY', 'VelocityZ')) None¶
Calculates the Reynolds stresses as given by Boussinesq assumption and extra anisotropy by EARSM.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, velocity gradient tensor is computed.
- calcReynoldsStressesIsotropic(dataSet: DataSet) None¶
Calculates the Reynolds stresses as isotropic.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcScaledJacobians(dataSet: DataSet, order: None | int = None, nodeset: None | str = None) None¶
Computation of scaled Jacobians for high-order DG grids.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
order – Desired order of lagrange polynomials to investigate.
nodeset – Desired node set to investigate. (Uniform, Legendre-Gauss, Legendre-Gauss-Lobatto)
- calcSchlieren(dataSet: DataSet, gradVar: Iterable[str] = ('Density',), magnitude: bool = True) None¶
Calculate Schlieren (density gradient)
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, density gradient is computed.
magnitude – Magnitude of all gradients is computed
- calcSoundPower(dataSet: DataSet) None¶
Compute sound power from circumferential mode decomposition.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcSpecificImpedance(dataSet: DataSet) None¶
Computes the specific impedance on solid walls.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcSpeedOfSound(dataSet: DataSet) None¶
Computation of local speed of sound from flow data.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsConvectionReynoldsStresses(dataSet: DataSet) None¶
Computation of mean convection of reynolds stresses.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsMassFlux(dataSet: DataSet) None¶
Computation of statistical moments from average values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsMolecularDiffusion(dataSet: DataSet) None¶
Computation of molecular diffusion.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsPressureStrain(dataSet: DataSet) None¶
Computation of turbulent pressure strain from average values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsSecondMoments(dataSet: DataSet) None¶
Computation of second moments from statistical values, e.g. Reynolds stresses.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsSkewnessAndFlatness(dataSet: DataSet) None¶
Computation of skewness and flatness.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsTKEbudgetTerms(dataSet: DataSet) None¶
Computation of scalar budget terms based on statistic budget terms of Reynolds stresses transport equation
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsTurbulentDiffusion(dataSet: DataSet) None¶
Computation of turbulent diffusion.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsTurbulentDissipationRate(dataSet: DataSet) None¶
Computation of turbulent dissipation rate
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsTurbulentDissipationRateBasedOnBudget(dataSet: DataSet) None¶
Computation of turbulent dissipation rate based on budget of Reynolds stresses
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsTurbulentProduction(dataSet: DataSet) None¶
Computation of turbulent production from average values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsVelocityFavreAveraged(dataSet: DataSet) None¶
Computation of Favre-averaged velocity.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStatisticsVelocityGradientsFavreAveraged(dataSet: DataSet) None¶
Computation of statistical moments from average values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcStrainRateTensor(dataSet: DataSet, gradVar: Iterable[str] = ('VelocityX', 'VelocityY', 'VelocityZ')) None¶
Calculates the strain rate in Cartesian coordinates.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, velocity gradient tensor is computed.
- calcStreamwiseVorticity(dataSet: DataSet) None¶
This task calculates the streamwise vorticity vector.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcSubgridLengthScale(dataSet: DataSet, hybridApproach: str, subgridApproach: str = 'GridBased') None¶
Computation of subgrid length scale for scale-resolving simulations. Original grid-based length scale is computed by default..
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
hybridApproach – Applied hybrid approach. [DES, DDES or IDDES]
Optional Parameters
- Parameters:
subgridApproach – Applied subgrid length scale approach. [Default = GridBased, Chauvet, Probst, Mockett, Shur]
- calcSurgeMargin(dataSet: DataSet, wln: str, cdn: str) None¶
Calculates the surge margin with respect to a specified working line.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
wln – file name of working line
cdn – name of respective control domain
- calcTemperature(dataSet: DataSet) None¶
Computation of static temperature.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcTemperatureRothalpy(dataSet: DataSet) None¶
Computation of rothalpy temperature.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcTemperatureStagnation(dataSet: DataSet) None¶
Computation of stagnation temperature.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcTemperatureStagnationAbs(dataSet: DataSet) None¶
Computation of stagnation temperature in the absolute system of reference.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcTemperatureStagnationRot(dataSet: DataSet) None¶
Computation of stagnation temperature in rotating frame.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcThermodynamicProperties(dataSet: DataSet) None¶
Computation of thermodynamic properties: ratio of specific heats etc.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcTurbomachineryFieldVariables(dataSet: DataSet) None¶
Computes field variables commonly required for the analysis of turbomachinary.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcTurbulenceIntensity(dataSet: DataSet, sgs: bool = False) None¶
Calculates the turbulence intensity.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
sgs – Compute sub-grid and total turbulence intensity in addition to resolved turbulent kinetic energy (for statistics CGNS).
- calcTurbulentHeatFluxEAHF(dataSet: DataSet) None¶
Calculates turbulent heat fluxes based on different turbulent energy diffusion models.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcTurbulentKineticEnergy(dataSet: DataSet, sgs: bool = False, ratio: bool = False) None¶
Calculates the turbulent kinetic energy from normal Reynolds stresses.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
sgs – Compute sub-grid and total turbulent kinetic energy in addition to resolved turbulent kinetic energy (for statistics CGNS).
ratio – Compute ratio of resolved and total turbulent kinetic energy. Only possible, if -sgs option was called (for statistics CGNS).
- calcTurbulentLengthScale(dataSet: DataSet) None¶
Calculates the turbulent length scale.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcVelocityAngleAlphaZEpsilon(dataSet: DataSet) None¶
Computes VelocityAngleAlpha(Abs), VelocityAngleAlphaZ(Abs), VelocityAngleEpsilon
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcVelocityAngles(dataSet: DataSet) None¶
Computes VelocityAngleR and VelocityAngleTheta
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcVelocityAnglesAbs(dataSet: DataSet) None¶
Computes VelocityAngleThetaAbs.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcVelocityAnglesAbsTranslational(dataSet: DataSet) None¶
Computes VelocityAngleYAbs and VelocityAngleZAbs.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcVelocityAnglesTranslational(dataSet: DataSet) None¶
Computes VelocityAngleY and VelocityAngleZ
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcVelocityMagnitudeAbs(dataSet: DataSet) None¶
Calculates the magnitude of velocity in absolute system.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcVelocityNorm(dataSet: DataSet) None¶
Calculates the (Euclidean) norm of velocity vector given by (velocityX,velocityY,velocityZ).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- calcVorticityVector(dataSet: DataSet, gradVar: Iterable[str] = ('VelocityX', 'VelocityY', 'VelocityZ')) None¶
This task calculates the 3D vorticity vector in cartesian coordinates and its norm.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, velocity gradient tensor is computed.
- computeAeroMisc(dataSet: DataSet, f: None | float = None, ibpa: None | float = None, em: None | str = None) None¶
Computes miscellaneous aerodynamic quantities.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
f – Frequency for which the modal work per cycle was computed. Necessary if there are several aerowork solutions.
ibpa – IBPA for which the modal work per cycle was computed. Necessary if there are several aerowork solutions. Notice: ibpa(aerowork) = ibpa(harmonic flow solution) - ibpa(eigenmode)
em – Eigenmode for which the modal work per cycle is computed. Necessary if there are several aerowork solutions.
- computeAerowork(dataSet: DataSet, r: bool = False, f: None | float = None, mff: bool = False) None¶
Computes aerodynamic work per area for all eigenmodes.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
r – Read aerowork at faces from cgns file and do not computed it.
f – Frequency for which the modal work per cycle is computed. Necessary if there are several harmonics.
mff – Filter modal forces. If used then only modal force harmonics with analysis frequency and zero interblade phase angle will be computed (harmonic solution and displacement must have the same ibpa).
- computeAverageS1(dataSet: DataSet, var: None | Iterable[str] = None, suf: bool = False) None¶
Compute average on 1D block or families and store on integral values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
var – Compute average for specified variables (real and imaginary). Omit to get all variables.
suf – Sum up whole intersection families.
- computeMachMax(dataSet: DataSet) None¶
Compute maximal mach number on 1D block and store on integral values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- computeStatisticalValues(dataSet: DataSet, gradVar: Iterable[str] = ('Density', 'Pressure', 'MomentumDensityX', 'MomentumDensityY', 'MomentumDensityZ', 'ViscousStressXX', 'ViscousStressXY', 'ViscousStressXZ', 'ViscousStressYY', 'ViscousStressYZ', 'ViscousStressZZ')) None¶
Compute statistical values (moments) from average fields.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, velocity gradient tensor is computed.
- convertLogWToOmega(dataSet: DataSet) None¶
Conversion of turbulent dissipation rate omega from log(omega).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- convertOmegaToLogW(dataSet: DataSet) None¶
Conversion of logarithmic turbulent dissipation rate log(omega) from omega.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- createBandedInterfaces(dataSet: DataSet, ignoreAnalysisLines: bool = False, ignoreBoundaryPanels: bool = False, name: None | Iterable[str] = None, zonal: bool = False, ascendingEta: bool = False) None¶
Create bands for all or specified interfaces.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
ignoreAnalysisLines – ignore families of analysis lines
ignoreBoundaryPanels – ignore families of boundary panels
name – list of family names
zonal – create bands for zonal interfaces connecting rows or ducts too
ascendingEta – ensure that band-order is eta-ascending (requires a S2m grid, see –readS2m).
- createMeanLineDistribution(dataSet: DataSet, sol: str = 'FlowSolution', output: str = '../output/POST/meanLine.dat') None¶
Creates and writes a 1D mesh with averaged data from xi-const analysis planes created by the intersect3DS2MPlane task for generating 1D distributions.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
sol – Name of solution whose data is taken
output – Name of output file including directory
- createS2MPlane(dataSet: DataSet, typeDB: Iterable[str] = ('analysis2d',), sol: str = 'FlowSolution', avgType: Iterable[str] = ('flux', 'mass', 'area'), output: str = '../output/POST/s2m.dat') None¶
This Task creates and writes a S2M Plane based on previous averaging.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
typeDB – Specify nothing! (dB-task option)
sol – Please specify the solution name to be shown. (bS2m-task option)
avgType – Please specify the weighting method (‘flux’, ‘mass’, ‘area’). (bS2m-task option)
output – Name of the output file including directory. (wS2m-task option)
- createThetaLines(dataSet: DataSet, gf: str, cf: str, bf: str) None¶
Creates r-constant lines in theta direction on analysis families.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
gf – Tecplot file with grid to define the cut.
cf – Tecplot file to define cutting positions.
bf – Tecplot file to define band positions.
- crossDiffusionKW(dataSet: DataSet, name: Iterable[str] = ('TurbulentEnergyKinetic', 'TurbulentDissipationRate')) None¶
Compute cross diffusion term of turbulent kinetic energy and dissipation rate.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
name – Specify the two variable names for turbulent kinetic energy and dissipation rate for gradient task.
- deleteBlock(dataSet: DataSet, kind: None | Iterable[str] = None, dim: None | int = None, fam: None | Iterable[str] = None, famtype: None | Iterable[str] = None, asn: None | str = None, bnl: None | Iterable[str] = None, bc: None | Iterable[str] = None, bb: None | Iterable[float] = None, dg: bool = False, regex: bool = False, keep: bool = False) None¶
Delete specified blocks.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
kind – Select blocks of type ‘boundary’, ‘analysis2d’, ‘analysis1d’ or ‘undefined’.
dim – Select blocks of specified cell dimension.
fam – Select blocks in specified family.
famtype – Select blocks in specified family type.
asn – Select analysis surface with specified names.
bnl – Select all blocks with specified names.
bc – Select all boundary blocks with specified boundary conditions.
bb – Select all blocks outside a bounding box (xmin ymin zmin xmax ymax zmax)
dg – Select all blocks, which are not refined (DG task -rfm).
regex – Use regular expression syntax to find matching names.
keep – Keep blocks specified by criteria and delete rest.
- deleteDuplicatedVertices(dataSet: DataSet, tol: None | float = None) None¶
Delete duplicated vertices
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
tol – Specify tolerance for identifying duplicated vertices. Geometric tolerance is used as default.
- deletePhysics(dataSet: DataSet, var: None | Iterable[str] = None, sol: None | Iterable[str] = None, keep: bool = False) None¶
Delete variables or solutions.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
var – Delete specified variables (real and imaginary).
sol – Delete solutions of specified names.
keep – Keep variables/solutions specified by criteria and delete rest.
- desEvaluation(dataSet: DataSet, hybridApproach: str, basisModel: str, tau: float, blendingLowerLimit: float = 0.0, subgridApproach: str = 'GridBased', additionalOutput: bool = False, kappa: float = 0.4, retain: bool = False, var: Iterable[str] = ('VelocityXGradientX', 'VelocityXGradientY', 'VelocityXGradientZ', 'VelocityYGradientX', 'VelocityYGradientY', 'VelocityYGradientZ', 'VelocityZGradientX', 'VelocityZGradientY', 'VelocityZGradientZ', 'StrainRateXX', 'StrainRateXY', 'StrainRateXZ', 'StrainRateYY', 'StrainRateYZ', 'StrainRateZZ'), gradVariables: Iterable[str] = ('VelocityX', 'VelocityY', 'VelocityZ')) None¶
Process chain for DES evaluation.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
hybridApproach – Applied hybrid approach. [DES, DDES or IDDES]
basisModel – Applied basis model. [SpalartAllmaras, Wilcox1988 or MenterSST2003]
tau – Characteristic time scale
Optional Parameters
- Parameters:
blendingLowerLimit – Define the lower limit of Riemann blending (default: 0.0).
subgridApproach – Applied subgrid length scale approach. [Default = GridBased, Chauvet, Probst, Mockett, Shur]
additionalOutput – Activates additional output values for blending and shielding function task.
kappa – Value for model constant kappa applied within DES shielding function (default 0.40).
retain – Retains variables such as i.e. strain rate from intermediate steps
var – Variables to delete
gradVariables – Specify needed gradients. By default, velocity gradient tensor is computed.
- detStressFourier(dataSet: DataSet) DataSet | None¶
Computes the deterministic stress tensor based on Fourier data.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Return Value
- Returns:
DataSet or None if current process does not execute POST
- diffFlowFields(dataSet: DataSet | list[DataSet], var: None | Iterable[str] = None, rel: bool = False, dap: bool = False) DataSet | None¶
Calculate the difference between two data sets.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
Optional Parameters
- Parameters:
var – Variables to limit the difference calculations to.
rel – Calculate differences relative to second (of two) input data set(s).
dap – Calculate the difference of complex amplitude and phase (and convert back to cartesian complex plane).
Return Value
- Returns:
DataSet or None if current process does not execute POST
- diffStatistics(dataSet: DataSet | list[DataSet]) DataSet | None¶
Difference of statistics sums.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
Return Value
- Returns:
DataSet or None if current process does not execute POST
- discreteFourierTransform(dataSet: DataSet, accumulatorDataSet: None | DataSet, nPics: int, hl: Iterable[int], f: None | Iterable[float] = None) DataSet | None¶
Perform discrete Fourier transform of movie data set.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
accumulatorDataSet – AccumulationDataSet for dataSet for task, None for first iteration
nPics – Number of iterations for this task
hl – order(s) of harmonics to be processed, e.g. 1-3 5 7
Optional Parameters
- Parameters:
f – list of frequencies (by default frequency is read from cgns)
Return Value
- Returns:
Updated accumulationDataSet for task or None if current process does not execute POST. Should be passed in next iteration.
- discretePassageFourierTransform(dataSet: DataSet, fam: None | Iterable[str] = None, ibpa: None | Iterable[float] = None) None¶
Performs discrete, passagewise Fourier transform.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
fam – List of blockgroups for which the discrete, passagewise Fourier transform is computed.
ibpa – List of interblade phase angles for which the discrete, passagewise Fourier transform is computed.
- distanceWallCoordinate(dataSet: DataSet) None¶
Compute first distances to the wall in wall coordinates (yPlus).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- duplicateAndReconstructFourierData(dataSet: DataSet | list[DataSet], t: float, nSegments: None | int = None, annulus: bool = False, pitch: None | float = None, oneToOne: bool = False) DataSet | None¶
Duplicate, rotate and reconstruct Fourier data in a single task.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
t – Absolute time in seconds. Mind phase shift when restarting from t!=0
Optional Parameters
- Parameters:
nSegments – Required number of segments.
annulus – Duplicates data to create full annulus (rotational, only).
pitch – Create segments with the specified pitch (degrees or meters).
oneToOne – Duplicate passages to automatically generate 1-to-1 connections.
Return Value
- Returns:
DataSet or None if current process does not execute POST
- duplicateData(dataSet: DataSet, nSegments: None | int = None, annulus: bool = False, pitch: None | float = None, oneToOne: bool = False) None¶
Duplicate a data set and rotate by pitch.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
nSegments – Required number of segments.
annulus – Duplicates data to create full annulus (rotational, only).
pitch – Create segments with the specified pitch (degrees or meters).
oneToOne – Duplicate passages to automatically generate 1-to-1 connections.
- evaluateReynoldsStressRealizability(dataSet: DataSet) None¶
Evaluates fraction of cells in which Reynolds stress realizability constraints have been applied.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- extractIsoSurface(dataSet: DataSet, var: str, value: float) None¶
Creates 2D blocks derived from iso-surface of specified ‘var’ and ‘value’ for every 3D block (with appropriate value range).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
var – variable to create iso-surface from
value – variable’s value to create iso-surface with
- extractPointProbes(dataSet: DataSet, input: str, outputPath: str) None¶
Extracts probe data using kdTree.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
input – Tecplot file defining points to probe.
outputPath – Output path.
- extractProbeXYZ(dataSet: DataSet, x: float, y: float, z: float) None¶
Extract data at given coordinates and write to file.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
x – x coordinate.
y – y coordinate.
z – z coordinate.
- favreAverageSpatially(dataSet: DataSet, index: Iterable[str]) None¶
Compute a spatial Favre average along specified homogeneous index directions.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
index – Indices of homogeneous directions.
- frictionVelocity(dataSet: DataSet) None¶
Compute friction velocity on 2D panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- fullBoundaryLayerAnalysis(dataSet: DataSet, rayLength: float, order: int = 2, oversample: int = 1, tetra: bool = False, generate1DBlocks: bool = False, periodic: bool = False, pressureStagnationCriterion: float = 0.995, noQuadraticLoadBalancing: bool = False) None¶
Perform all steps necessary for boundary layer analysis.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
rayLength – Length of each analysis ray in m. Values that are too large or too small may lead to unexpected results.
Optional Parameters
- Parameters:
order – Interpolation order for interpolating 3D data onto 1D segments. Default is 2nd order.
oversample – Oversampling factor for interpolation. Setting this to >1 will synthesize that many additional vertices in each cell. Default is no oversampling.
tetra – If flag is set a tetrahedron based interpolation method is used.
generate1DBlocks – If enabled, a 1D Post block is create for each analysis ray.
periodic – If enabled, 3D cell intersection is also performed over periodic boundaries.
pressureStagnationCriterion – Criterion for boundary layer edge detection, between zero and one (default: 0.995).
noQuadraticLoadBalancing – If enabled the default load balancing algorithm which builds a matrix of size O(nProc^2) is replaced with a suboptimal algorithm that only requires O(nProc) memory.
- generateAuxiliaryS2Mesh(dataSet: DataSet, hub: None | Iterable[str] = None, tip: None | Iterable[str] = None, simple: bool = False, nCuts: int = 18, kind: str = 'max', typeDB: Iterable[str] = ('cutHub', 'cutTip'), reference: str = 'hub', xieta: str = 'length') None¶
This Task generates an auxiliary S2 mesh required for S2M-averaging.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
hub – Please specify all hub boundary blocks by listing up their names (space-separated!) (gtc-task option)
tip – Please specify all tip boundary blocks by listing up their names (space-separated!) (gtc-task option)
simple – Automatic hub/tip- boundary detection for simple configurations using GMC-nomenclature. Default is deactivated. (gtc-task option)
nCuts – Specify the number of theta = const cuts (gtc-task option) (default 18)
kind – Please specify ‘min’ (minimal silhouette is generated) or ‘max’ (maximal silhouette is generated) (geo-task option)
typeDB – Specify nothing!
reference – Specify whether the ‘hub’ or the ‘tip’ line is the reference curve. If nothing’s specified the line with the most vertices is taken (genS2-task option).
xieta – Specify in which way the xi and eta values should be generated (‘index’- or ‘length’-based). (genS2-task option)
- generateOffsetCurves(dataSet: DataSet, offset: float) None¶
Generate curves with an offset from airfoil sections curve.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
offset – Offset in m.
- generateQ3DS2M(dataSet: DataSet) None¶
Creates S2M block for Q3D test cases (z-direction).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- geomDiff(dataSet: DataSet | list[DataSet], invDir: bool = False) DataSet | None¶
Calculates the vertex-by-vertex difference of two data sets with identical grid topology and gathers the sum of all vertex distances for each block to a global metric.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
Optional Parameters
- Parameters:
invDir – Invert direction of vectors for geometric differences.
Return Value
- Returns:
DataSet or None if current process does not execute POST
- globalTurbomachineryAnalysis(dataSet: DataSet, bidx: bool = False, legacyCD: bool = False) None¶
0D and 1D analysis of a turbomachinery configuration.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
bidx – Process domain bands by index of inlet and outlet.
legacyCD – Calculate legacy CoefDiffusion in the 1D relations
- gradient(dataSet: DataSet, name: None | Iterable[str] = None, velocity: bool = False, magnitude: bool = False, ugg: bool = False, unn: bool = False, ufa: bool = False, sm: None | str = None) None¶
Calculate gradients for the given variable set.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
name – List of variables.
velocity – Calculate the velocity gradient.
magnitude – Calculate magnitudes of gradients.
ugg – Use Green-Gauss to calculate gradients for unstructured zones.(default)
unn – Use Least-Square (Node Neighbors) to calculate gradients for unstructured zones.
ufa – Use Least-Square (Full Augmentation) to calculate gradients for unstructured zones.
sm – Specify least squares system solution method QR or LU. Defaults to QR if -sm is not given.
- gtaCalc3DParameters(dataSet: DataSet, avg: str = 'mass', height: float = 0.5, pitchShift: None | Iterable[str] = None) None¶
Calculate ‘gta’ parameters on analysis surfaces or sections of them.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
avg – The averaging type of the reference values at inlet and outlet.
height – The channel height at which the reference values are read.
pitchShift – Shift relative pitch for each specified S3 plane. Usage example: -pitchShift ME1 0.23 ME4 -0.42
- heatTransferCoefficient(dataSet: DataSet | list[DataSet]) DataSet | None¶
This task calculates the heat transfer coefficient from an adiabatic and a diabatic input. Two input data sets are required, the output contains the flow field of the 2nd data set! The standard usage is -input diabatic.cgns -input adiabatic.cgns.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
Return Value
- Returns:
DataSet or None if current process does not execute POST
- helicityRelative(dataSet: DataSet) None¶
Compute the relative helicity.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- static help(specific_task: None | str = None) None[source]¶
Print POST general help or help of a specific task.
- input(filename: str, hl: None | Iterable[int] = None, hlm: None | Iterable[int] = None, sn: None | str = None, vn: None | Iterable[str] = None, ias: bool = False, rbc: bool = False, slf: None | str = None, cc: bool = False, family: None | Iterable[str] = None, noGhost: bool = False, dcrs: bool = False) DataSet | None¶
Read a (list of) CGNS/Tecplot ASCII file(s) into a data set. Sub-option only valid for CGNS files.
Mandatory Parameters
- Parameters:
filename – Name of the file
Optional Parameters
- Parameters:
hl – Specify a list of harmonics to be read (deprecated, use -slf instead).
hlm – Specify harmonic indices to be associated with harmonic names (deprecated, no longer supported).
sn – Specify the name of one solution to be read.
vn – Specify the names of the variables to be read.
ias – Ignore all flow solutions, harmonics, etc..
rbc – Read boundary conditions and create boundary blocks.
slf – Specify the name of the file containing the solutions to be processed.
cc – Treat multicomponent gas as a constant composition mixture.
family – Specify a list of block group families to be read. All blocks of other families will be ignored.
noGhost – Ignore the ghost cells while reading.
dcrs – Don’t check if the reference state equals those in previously loaded files.
Return Value
- Returns:
DataSet or None if current process does not execute POST
- interpolate1d(dataSet: DataSet, vertexBased: bool = False, order: int = 2, linear: bool = False, noLeastSquaresMatrixRegularization: bool = False) None¶
Interpolate field data from parent zones onto analysis lines.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
vertexBased – If flag is set interpolation is made directly on Vertices.
order – Choose interpolation order. 1st or 2nd order (default).
linear – If flag is set interpolation is linear. Requires options ‘-vertexBased’ and ‘-order 2’.
noLeastSquaresMatrixRegularization – If flag is set no additional vertex is added to the least squares stencil.
- interpolate2d(dataSet: DataSet, order: int = 2, linear: bool = False) None¶
Interpolate field data from parent zones onto analysis and boundary panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
order – Choose interpolation order for interpolation on analysis planes. 1st or 2nd order (default: 2nd order).
linear – If flag is set interpolation is linear.
- interpolate3Dto1D(dataSet: DataSet, through2d: bool = False, onVertex: bool = False, order: int = 2, tetra: bool = False) None¶
Interpolates 3D field data from (grand)parent 3d blocks onto analysis lines.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
through2d – Apply task only to the 1d blocks with parents being 2d blocks (w/o the option only direct children of 3d blocks are considered).
onVertex – Interpolation on vertices.
order – Choose interpolation order: 1st or 2nd order (default).
tetra – Tetrahedron based interpolation.
- interpolate3dToLines(dataSet: DataSet, onVertex: bool = False, order: int = 2, tetra: bool = False) None¶
Interpolate field data from volume zones onto analysis lines using a kdTree. This task is intended for interpolation if no parent block information is available.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
onVertex – Interpolation on vertices.
order – Order of interpolation function. Default is 2nd order.
tetra – If flag is set interpolation is tetrahedron based.
- interpolateCellCenteredToVertexData(dataSet: DataSet) DataSet | None¶
Interpolation of cell centered flow data to vertex based flow data.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Return Value
- Returns:
DataSet or None if current process does not execute POST
- interpolateS2MToBoundary(dataSet: DataSet) None¶
Interpolate relative mass flow, eta and channel height from S2M block to all boundaries.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- interpolateVertexToCellCenteredData(dataSet: DataSet) DataSet | None¶
Interpolation of vertex based flow data to cell centered flow data.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Return Value
- Returns:
DataSet or None if current process does not execute POST
- intersect3DAndAddInterfacesForS2m(dataSet: DataSet, nCuts: int = 101, nBands: int = 71, main: bool = False, xiRange: None | Iterable[float] = None, etaRange: None | Iterable[float] = None, etaExpCoeff: None | Iterable[float] = None, etaRelDist: None | Iterable[float] = None, etaLocation: str = 'both') None¶
Combined task for generation of re-banded interfaces and xi cuts used for the S2M-plane.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
nCuts – Specify number of cuts.
nBands – Specify number of bands.
main – Cut only main block groups (ROTOR, STATOR, DUCT_R, DUCT_S).
xiRange – Optionally specify range of xi as min max.
etaRange – Optionally specify range of eta as min max..
etaExpCoeff – Use an exponential function for eta distribution specifying the amplitude (and a scaling factor).
etaRelDist – Use an exponential function for eta distribution specifying the first relative distance and the stretching ratio.
etaLocation – Use eta distribution at both sides or at one side only. Allowed values: <both|lower|upper> (default: both).
- intersect3DS2MPlane(dataSet: DataSet, nCuts: int = 101, nBands: int = 71, main: bool = False, xiRange: None | Iterable[float] = None, etaRange: None | Iterable[float] = None, etaExpCoeff: None | Iterable[float] = None, etaRelDist: None | Iterable[float] = None, etaLocation: str = 'both') None¶
Generates xi = const cuts (xi = running length) of a 3D configuration using the S2M-plane.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
nCuts – Specify number of cuts.
nBands – Specify number of bands.
main – Cut only main block groups (ROTOR, STATOR, DUCT_R, DUCT_S).
xiRange – Optionally specify range of xi as min max.
etaRange – Optionally specify range of eta as min max.
etaExpCoeff – Use an exponential function for eta distribution specifying the amplitude (and a scaling factor).
etaRelDist – Use an exponential function for eta distribution specifying the first relative distance and the stretching ratio.
etaLocation – Use eta distribution at both sides or at one side only. Allowed values: <both|lower|upper> (default: both).
- intersectLine(dataSet: DataSet, cf: None | str = None, Kp: bool = False, q3d: bool = False) None¶
Create analysis lines.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
cf – Tecplot file to define cutting positions.
Kp – If flag is set the mesh’s K-planes are used to cut instead of Xi/Eta level sets.
q3d – Cut Q3D cases in half for all solid panels.
- intersectPanel(dataSet: DataSet, gf: None | str = None, cf: None | str = None, bf: None | str = None, clf: None | str = None, cn: None | str = None, main: bool = False) None¶
Create analysis surfaces.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gf – Tecplot file with grid to define the cut.
cf – Tecplot file to define cutting positions.
bf – Tecplot file to define band positions.
clf – Tecplot file to define clipping boundaries.
cn – Name of cut (mandatory for universal type cuts).
main – Cut only main block groups.
- inverseDiscreteFourierTransform(dataSet: DataSet | list[DataSet], t: float) DataSet | None¶
Perform inverse discrete Fourier transform to compute solution at a given time.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
t – Absolute time in seconds.
Return Value
- Returns:
DataSet or None if current process does not execute POST
- inverseDiscretePassageFourierTransform(dataSet: DataSet, fam: None | Iterable[str] = None) None¶
Performs inverse discrete, passagewise Fourier transform.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
fam – List of blockgroups for which the inverse discrete, passagewise Fourier transform is computed.
- property is_comm_member: bool¶
Return ‘True’ if the process is member of the POST root communicator.
- isolateImplicitCells(dataSet: DataSet, RungeKuttaMethod: str, dt: None | float = None, useMinEdgeLength: bool = False, output: None | str = None, dot: bool = False, maxCutTreeDepth: None | int = None, minCellDim: None | int = None) None¶
Create a GMC journal file to separate implicit and explicit cells.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
RungeKuttaMethod – Name of the IMEX Runge-Kutta method (determines the max. stable CFL number).
Optional Parameters
- Parameters:
dt – Time-step size to be used to calculate the CFL number.
useMinEdgeLength – Compute the CFL number using the minimum edge length (FV only).
output – Name of the GMC journal file to be created.
dot – Create block split dot files.
maxCutTreeDepth – Maximum cut tree depth (default IIC_MAXIMUM_CUT_TREE_DEPTH_DEFAULT)
minCellDim – Minimum block cell dimensions (default IIC_MINIMUM_BLOCK_CELL_DIMENSION_DEFAULT)
- linearizedPressureStagnation(dataSet: DataSet) None¶
Calculate the linearized stagnation pressure for harmonic solutions.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- linearizedTemperatureStagnation(dataSet: DataSet) None¶
Calculate the linearized stagnation temperature for harmonic solutions.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- localCFL(dataSet: DataSet, dt: None | float = None, useMinEdgeLength: bool = False) None¶
Computation of local CFL number for physical time step.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
dt – Time-step size to be used to calculate the CFL number.
useMinEdgeLength – Compute the CFL number using the minimum edge length (FV only).
- maxPPW(dataSet: DataSet, f: float) None¶
Calculate the resolution in points per wavelength for a given frequency.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
f – Frequency to use.
- mergeAnalysisLines(dataSet: DataSet, blc: bool = False, parentBlockInfo: bool = False, identifierSS: None | str = None) None¶
This task merges corresponding existing S1 blade cuts and boundary layer cuts into single 1D blocks.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
blc – Merge only boundary layer cuts.
parentBlockInfo – Add parent info to a new solution “ParentBlockInfo”.
identifierSS – Add a identifier-string (e.g. Wall_ss), the panelgroup-names of the suction side contain to merge the lines starting along the suction side.
- mergeDataSets(dataSet: DataSet | list[DataSet]) DataSet | None¶
Creates a data set from specified input files and solutions.
Mandatory Parameters
- Parameters:
dataSet – A dataSet or a list of two dataSets
Return Value
- Returns:
DataSet or None if current process does not execute POST
- meshStatistics(dataSet: DataSet, RungeKuttaMethod: str, nDataBins: None | int = None) None¶
Computation of mesh statistics.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
RungeKuttaMethod – Name of the IMEX Runge-Kutta method (determines the max. stable CFL number).
Optional Parameters
- Parameters:
nDataBins – Number of data bins used to create the histogram.
- nonDimensionalCellSize(dataSet: DataSet) None¶
Compute non-dimensional cell sizes of wall adjacent cell.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- output(dataSet: DataSet, filename: str, cmc: bool = False, sts: bool = False, wgc: bool = False, bf: None | Iterable[str] = None, ffs: bool = False, As: bool = False, ap: bool = False, dss: bool = False, kind: None | Iterable[str] = None, dim: None | int = None, fam: None | Iterable[str] = None, famtype: None | Iterable[str] = None, asn: None | str = None, bnl: None | Iterable[str] = None, bc: None | Iterable[str] = None, bb: None | Iterable[float] = None, dg: bool = False, regex: bool = False, invert: bool = False) None¶
Write a data set into a file with the specified name. (‘.cgns’ for a CGNS file, ‘.dat’ for a Tecplot ASCII file, ‘.plt’ for a Tecplot Binary file, ‘.pvtu’ for a parallel VTK file)
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
filename – Name of the file
Optional Parameters
- Parameters:
cmc – Create master CGNS file for the output picture series.
sts – Set time strands so that Tecplot automatically recognizes solution time.
wgc – Write ghost cells in Tecplot output.
bf – Specify the block group families to be written to Tecplot file. (Deprecated. Use option -fam instead.)
ffs – Create the output CGNS file from scratch.
As – Append solutions to an existing CGNS file. Restart solutions have to be written first, without this option.
ap – Write amplitude and phase for complex fields
dss – Write a dataset-summary file of the output-data, i.e. block & family metadata. available for cgns and plt output
kind – Select blocks of type ‘boundary’, ‘analysis2d’, ‘analysis1d’ or ‘undefined’.
dim – Select blocks of specified cell dimension.
fam – Select blocks in specified family.
famtype – Select blocks in specified family type.
asn – Select analysis surface with specified names.
bnl – Select all blocks with specified names.
bc – Select all boundary blocks with specified boundary conditions.
bb – Select all blocks outside a bounding box (xmin ymin zmin xmax ymax zmax)
dg – Select all blocks, which are not refined (DG task -rfm).
regex – Use regular expression syntax to find matching names.
invert – Invert block selection.
- outputIntegralData(dataSet: DataSet, fileName: str, avgType: str, bandCenterAsVertex: bool = False, fam: None | Iterable[str] = None, sol: None | Iterable[str] = None, var: None | Iterable[str] = None, dim: int = 0) None¶
Write 0D/1D boundary/interface/analysis integral values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
fileName – Output file name.
avgType – Specify averaging type: flux, mass, area.
Optional Parameters
- Parameters:
bandCenterAsVertex – Flag to write the band centers as vertices.
fam – List of families.
sol – Solution list.
var – Variable List.
dim – Specify dimension: 0 (default), 1
- probeAtIJK(dataSet: DataSet, zone: None | int = None, zoneName: None | str = None, withDuplicates: bool = False, output: None | str = None, i: None | Iterable[int] = None, j: None | Iterable[int] = None, k: None | Iterable[int] = None) None¶
Extracts data at given indices or ranges and writes it to file.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
zone – index of zone to be probed (CGNS notation)
zoneName – name of zone to be probed
withDuplicates – extend probing to zones with the same name (as are created using ‘–duplicateData / -dd’).
output – name of the Tecplot output file, without extension (‘.dat’ will be added)
i – i index or range, in CGNS notation
j – j index or range, in CGNS notation
k – k index or range, in CGNS notation
- qCriterion(dataSet: DataSet, gradVar: Iterable[str] = ('VelocityX', 'VelocityY', 'VelocityZ')) None¶
Computes Q-criterion for the visualization of vortex structures.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, velocity gradient tensor is computed.
- radialAverage(dataSet: DataSet, mass: bool = False, area: bool = False, daType: None | str = None) None¶
Overwrites panel averages by a mass or area averaging of the corresponding bands.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
mass – use mass averaging in radial direction
area – use area averaging in radial direction
daType – derived average type (‘work’|’mechanicalWorkPotential’|’entropy’): choose between work average, mechanical work potential based, and entropy average. Default is ‘none’, i.e., no derived quantities are computed from averages.
- readInterfaceFiles(dataSet: DataSet, f: None | Iterable[str] = None, autoSelectFiles: bool = False, bdDir: str = './output/residual', bdPrefix: str = 'bd', radialDir: str = './output/boundary', radialPrefix: str = 'radial', dota: bool = False, excludeNames: None | Iterable[str] = None) None¶
This task reads interface files (0D and 1D), written e.g. by TRACE. You must use exactly one the sub-options -f or -autoSelectFiles.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
f – Tecplot ASCII files containing 0D or 1D values. Not compatible with -autoSelectFiles
autoSelectFiles – Automatically select appropriate bd and radial files for bd-based GTA chain. Not compatible with -f
bdDir – Path to directory containing bd-files. Use together with -autoSelectFiles. (default: ./output/residual/)
bdPrefix – Prefix for bd-files. Use together with -autoSelectFiles. (default: bd)
radialDir – Path to directory containing radial-files. Use together with -autoSelectFiles. (default: ./output/boundary/)
radialPrefix – Prefix for radial-files. Use together with -autoSelectFiles. (default: radial)
dota – Do not overwrite time averages with instantaneous values, i.e., use instantaneous values only if time averages are unavailable.
excludeNames – List of strings to exclude from search in *.dat filenames.
- readS2m(dataSet: DataSet, lS2: str, xieta: None | str = None) None¶
This task reads in a Tecplot file containing a structured S2-mesh.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
lS2 – Load a Tecplot file with S2M-grid
Optional Parameters
- Parameters:
xieta – Specify in which way the xi and eta values should be generated (‘index’-, ‘length’- or ‘xhrel’-based).
- reconstructTimeHistory(dataSet: DataSet, nPics: int, f: float, positionTheta: None | float = None, positionY: None | float = None, exact: bool = False) Generator[DataSet | None]¶
Reconstruct time history from Fourier data.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
nPics – number of pictures to be created
f – frequency to use in reconstruction of time history
Optional Parameters
- Parameters:
positionTheta – Angular position (in degree) near a multiple of segments to which the block groups are to be rotated.
positionY – Average position (y-coordinate) to which the block groups are to be translated.
exact – Rotate exactly to angular position given by ‘positionTheta’.
Return Value
- Returns:
Iterator over [DataSet or None if current process does not execute POST].
- redefineBandIntegrals(dataSet: DataSet, icf: str) None¶
Redefine band integrals of all boundaries and control domains.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
icf – Tecplot file to define cutting positions.
- redefineBands(dataSet: DataSet, mf: None | Iterable[float] = None, area: None | Iterable[float] = None, family: None | str = None, cleaks: bool = False, igf: None | str = None, ibf: None | str = None, boundaries: None | str = None, transferSol: bool = False, ewc: None | str = None, pos: None | Iterable[float] = None, familyToCopyAndClip: None | str = None, flowRegion: str = 'core', newFamily: None | str = None) None¶
Redefine bands on surfaces.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
mf – List of relative massflow values.
area – List of relative area values used to compute relative massflow values at the given family.
family – Family used for converting area in massflow values or used as reference for the cleaks option.
cleaks – Consider massflow leaks at hub and tip streamtubes.
igf – Tecplot file with grid to define the bands.
ibf – Tecplot file to define band positions.
boundaries – Kind of boundary families to be processed (‘all’|’zonals’|’none’).
transferSol – Transfer existing flow solutions to the new bands.
ewc – Tecplot file with hub and Tip lines for not axial symmetric Bands
pos – List of relative positions that seperates the new bands for ewc mode.
familyToCopyAndClip – Family to be copied. The copy will be clipped using the leaked massflows and will receive new bands according to the mf option.
flowRegion – Flow region to copy: hub, core, tip.
newFamily – Name of the new family, result of clipping.
- removeAllStatisticsSums(dataSet: DataSet, var: Iterable[str] = ('temp', 'PressureVelocityX', 'PressureVelocityY', 'PressureVelocityZ', 'DensityVelocityXVelocityX', 'DensityVelocityXVelocityY', 'DensityVelocityXVelocityZ', 'DensityVelocityYVelocityX', 'DensityVelocityYVelocityY', 'DensityVelocityYVelocityZ', 'DensityVelocityZVelocityX', 'DensityVelocityZVelocityY', 'DensityVelocityZVelocityZ', 'DensityDensity', 'PressurePressure', 'DensityVelocityXXX', 'DensityVelocityXXY', 'DensityVelocityXXZ', 'DensityVelocityXYY', 'DensityVelocityXYZ', 'DensityVelocityXZZ', 'DensityVelocityYYY', 'DensityVelocityYYZ', 'DensityVelocityYZZ', 'DensityVelocityZZZ', 'DensityVelocityXQuaded', 'DensityVelocityYQuaded', 'DensityVelocityZQuaded', 'ViscousStressXXVelocityX', 'ViscousStressXYVelocityX', 'ViscousStressXZVelocityX', 'ViscousStressYYVelocityX', 'ViscousStressYZVelocityX', 'ViscousStressZZVelocityX', 'ViscousStressXXVelocityY', 'ViscousStressXYVelocityY', 'ViscousStressXZVelocityY', 'ViscousStressYYVelocityY', 'ViscousStressYZVelocityY', 'ViscousStressZZVelocityY', 'ViscousStressXXVelocityZ', 'ViscousStressXYVelocityZ', 'ViscousStressXZVelocityZ', 'ViscousStressYYVelocityZ', 'ViscousStressYZVelocityZ', 'ViscousStressZZVelocityZ', 'MomentumDensityXGradientX', 'MomentumDensityXGradientY', 'MomentumDensityXGradientZ', 'MomentumDensityYGradientX', 'MomentumDensityYGradientY', 'MomentumDensityYGradientZ', 'MomentumDensityZGradientX', 'MomentumDensityZGradientY', 'MomentumDensityZGradientZ', 'ViscousStressXXGradientX', 'ViscousStressXYGradientX', 'ViscousStressXZGradientX', 'ViscousStressYYGradientX', 'ViscousStressYZGradientX', 'ViscousStressZZGradientX', 'ViscousStressXXGradientY', 'ViscousStressXYGradientY', 'ViscousStressXZGradientY', 'ViscousStressYYGradientY', 'ViscousStressYZGradientY', 'ViscousStressZZGradientY', 'ViscousStressXXGradientZ', 'ViscousStressXYGradientZ', 'ViscousStressXZGradientZ', 'ViscousStressYYGradientZ', 'ViscousStressYZGradientZ', 'ViscousStressZZGradientZ', 'ViscousStressXX', 'ViscousStressXY', 'ViscousStressXZ', 'ViscousStressYY', 'ViscousStressYZ', 'ViscousStressZZ', 'DissipationRateXX', 'DissipationRateXY', 'DissipationRateXZ', 'DissipationRateYY', 'DissipationRateYZ', 'DissipationRateZZ', 'StrainRateXX', 'StrainRateXY', 'StrainRateXZ', 'StrainRateYY', 'StrainRateYZ', 'StrainRateZZ', 'PressureStrainRateXX', 'PressureStrainRateXY', 'PressureStrainRateXZ', 'PressureStrainRateYY', 'PressureStrainRateYZ', 'PressureStrainRateZZ')) None¶
Remove all statistical sums, which are not required for further analysis.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
var – Variables to delete
- renameSolution(dataSet: DataSet, sol: Iterable[str]) None¶
Rename all solutions with the specified name.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
sol – <original solution name> <new solution name> .
- rescaleDisplacements(dataSet: DataSet, andFlow: bool = False, f: None | float = None, amp: None | Iterable[float] = None) None¶
Rescale displacements, harmonic flow solutions and modal force per area for all eigenmodes.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
andFlow – Also rescale harmonic flow perturbations and modal forces.
f – Frequency of the fundamental harmonic.
amp – Amplitude for rescaling (real and imaginary part).
- rotateAerowork(dataSet: DataSet) None¶
Computes aerodynamic work integral from aerowork stored in the input file and rotate face values by the integral values phase. Requires the -aea task to compute integral values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- rotateData(dataSet: DataSet, family: None | str = None, offset: None | int = None, positionTheta: None | float = None, positionY: None | float = None, exact: bool = False) DataSet | None¶
Rotate data set using the specified segment offset.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
family – Block group family to be rotated.
offset – Integer segment offset.
positionTheta – Angular position (in degree) near a multiple of segments to which the block groups are to be rotated.
positionY – Average position (y-coordinate) to which the block groups are to be translated.
exact – Rotate exactly to angular position given by ‘positionTheta’.
Return Value
- Returns:
DataSet or None if current process does not execute POST
- s1coordinates(dataSet: DataSet, sol: str = 'FlowSolution', detLETEbyDist: bool = False, detLETEbyXi: bool = False, relDist: float = 0.125, indexShift: int = 13, signed: bool = False, signedByNames: bool = False) None¶
Calculate normalized coordinates along an airfoil section.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
sol – The solution to which the coordinates will be added.
detLETEbyDist – Flag to determine LE and TE by max. distance instead of maximum curvature.
detLETEbyXi – Flag to determine LE and TE by min. and max. xi instead of maximum curvature.
relDist – Specify the relative distance from initially determined LE and TE to search for maximum curvature.
indexShift – Specify index shift to define left and right leg from current vertex to search for maximum curvature.
signed – Add signed coordinates, negative on the suction side and positive on the pressure side. SS and PS determined by Pressure.
signedByNames – Add signed coordinates, negative on the suction side and positive on the pressure side. This sub-option expects a correctly merged S1-cut from the -mal task using suboption identifierSS.
- s1cylindricalCoordinates(dataSet: DataSet, sol: str = 'FlowSolution') None¶
Calculate cylindrical coordinates along an airfoil section.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
sol – The solution to which the coordinates will be added.
- s1relations(dataSet: DataSet) None¶
Compute relations on bases of S1 blade cuts.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- s2mRTP(dataSet: DataSet, deep: int = 2, autodeep: bool = False, nAxial: int = 500, nRadial: int = 500, x_min: None | float = None, x_max: None | float = None, r_min: None | float = None, r_max: None | float = None) None¶
Performs a S2M-averaging by a recursive Tetrahedron decomposition and projection to a 2D Raster grid (RTP).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
deep – deep: recursive refinement steps
autodeep – Flag to use adaptive deep refinement (defined deep factor is ignored!).
nAxial – Mesh Size Axial
nRadial – Mesh Size Radial
x_min – Mesh X min
x_max – Mesh X max
r_min – Mesh R min
r_max – Mesh R max
- setMassAveragedPressureStagnation(dataSet: DataSet, kind: str, cda: bool = False) None¶
Set mass average stagnation pressure to work or entropy averaged value or to the value derived from the mechanical work potential.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
kind – averaging type (‘work’|’mechanicalWorkPotential’|’entropy’): choose between work average, mechanical work potential based, and entropy average.
Optional Parameters
- Parameters:
cda – flag to compute derived averages
- setupGeometry(dataSet: DataSet) None¶
Geometry setup.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- setupMetrics(dataSet: DataSet) None¶
Metrics setup.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- shearStressWall(dataSet: DataSet) None¶
Calculate wall shear stress vector on all solid walls.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- storeElementCentersToFields(dataSet: DataSet) None¶
Stores element center coordinates to fields, i.e. as variable ‘CoordinateCenterX’, ‘CoordinateCenterY’ and ‘CoordinateCenterZ’.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- storeFaceNormalsToFields(dataSet: DataSet) None¶
Stores face normal vector components of 2D blocks to fields, i.e. as variable ‘NormalX’, ‘NormalY’ and ‘NormalZ’.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- storeReferenceValues(dataSet: DataSet, avgType: str = 'flux', cd: None | str = None) None¶
Store reference values (panel integral values or band value at cut position) of corresponding inlet panel.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
avgType – Specify averaging type: flux, mass or area.
cd – Specify a control domain used for all panel as reference. Default is the block group of each panel.
- surfaceHeatFlux(dataSet: DataSet) None¶
Calculate surface temperature gradient and heat flux on solids.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- thermalConductivityTask(dataSet: DataSet) None¶
Calculate thermal conductivity on solids.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- timeAverage(dataSet: DataSet, accumulatorDataSet: None | DataSet, nPics: int) DataSet | None¶
Compute time average of field and integral data values.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
accumulatorDataSet – AccumulationDataSet for dataSet for task, None for first iteration
nPics – Number of iterations for this task
Return Value
- Returns:
Updated accumulationDataSet for task or None if current process does not execute POST. Should be passed in next iteration.
- timeDistanceDataset(dataSet: DataSet, accumulatorDataSet: None | DataSet, nPics: int, name: Iterable[str], baseFrequency: None | float = None) DataSet | None¶
This task creates a 2D-dataset for time-distance-diagrams. The task requires s1 blade cuts that are reconstructed into time domain (movie-files or reconstructed fourier data).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
accumulatorDataSet – AccumulationDataSet for dataSet for task, None for first iteration
nPics – Number of iterations for this task
name – Name of the airfoil section cuts to be merged. e.g. row02Blade002_3dH050.00
Optional Parameters
- Parameters:
baseFrequency – Base frequency to create a normalized time variable (normalizedTime = time*baseFrequency).
Return Value
- Returns:
Updated accumulationDataSet for task or None if current process does not execute POST. Should be passed in next iteration.
- transferBandIntegralsToSurfaces(dataSet: DataSet, avgType: str = 'mass') None¶
Read integral values of bands and write the values to the corresponding panels.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
avgType – The averaging type of the band integrals.
- transformCartesianMeshToCylindrical(dataSet: DataSet) None¶
Transforms Cartesian mesh coordinates to cylindrical coordinate system
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- transformCircFourierCoeffsToAbsSystem(dataSet: DataSet) None¶
Transforms circumferential Fourier coefficients from relative to absolute frame of reference.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- transformCylindricalMeshToCartesian(dataSet: DataSet) None¶
Transforms cylindrical mesh coordinates to Cartesian coordinate system
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- transformMeshAndFlowSolution(dataSet: DataSet, mod: bool = False) None¶
Transform mesh and flow solution to actual position.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
mod – Use modulo operation on rotation angle to keep it within one pitch.
- transformReynoldsStressCylindrical(dataSet: DataSet) None¶
Transforms the Reynolds stress tensor to cylindrical basis (x-r-theta).
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- translateMesh(dataSet: DataSet, vec: Iterable[float] = (0, 0, 0)) None¶
Translate the mesh with a given vector.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
vec – vector for the translation (x y z)
- updateInterfaceIntegrals(data_set: DataSet, trace: _trace.TRACE, *, time_average_type: TemporalAveraging = TemporalAveraging.TIME_AVERAGE) None[source]¶
Read 0D/1D interface data from a pyTRACE instance.
This is the in-memory pendant to the ‘readInterfaceFiles’ [py]POST task.
- Parameters:
data_set – dataset
trace – pyTRACE instance
time_average_type – Time averaging type used. For unsteady simulations ‘TemporalAveraging.INSTANTANEOUS’ can be explicitly requested.
- valueRMS(dataSet: DataSet, accumulatorDataSet: None | DataSet, nPics: int) DataSet | None¶
Calculates the root mean square of all values. Input value should be fluctuations!
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
accumulatorDataSet – AccumulationDataSet for dataSet for task, None for first iteration
nPics – Number of iterations for this task
Return Value
- Returns:
Updated accumulationDataSet for task or None if current process does not execute POST. Should be passed in next iteration.
- velocityCrossVorticityNorm(dataSet: DataSet) None¶
Compute the norm of the cross product of velocity and vorticity vectors.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
- velocityRMS(dataSet: DataSet, accumulatorDataSet: None | DataSet, nPics: int) DataSet | None¶
Calculates the root mean square of velocities. Input velocity should be fluctuations!
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
accumulatorDataSet – AccumulationDataSet for dataSet for task, None for first iteration
nPics – Number of iterations for this task
Return Value
- Returns:
Updated accumulationDataSet for task or None if current process does not execute POST. Should be passed in next iteration.
- visualizeDGSolutions(dataSet: DataSet, cc: bool = False, order: None | int = None, dg: bool = True, connect: bool = False, tol: None | float = None) None¶
Process DG solution for visualization. This creates a linear uniform sub-cell grid (vertex-based) and interpolates the DG solution onto the new grid. DG solutions are automatically removed afterwards.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
cc – Create mesh for cell centered flow solutions.
order – Specify order of the polynomial representation.
dg – DG blocks are selected by default.
connect – Remove duplicate vertices of rfm task and connect mesh.
tol – Specify tolerance for identifying duplicated vertices. Geometric tolerance is used as default.
- vortexDetection(dataSet: DataSet, gradVar: Iterable[str] = ('VelocityX', 'VelocityY', 'VelocityZ'), delete: Iterable[str] = ('VelocityXGradientX', 'VelocityXGradientY', 'VelocityXGradientZ', 'VelocityYGradientX', 'VelocityYGradientY', 'VelocityYGradientZ', 'VelocityZGradientX', 'VelocityZGradientY', 'VelocityZGradientZ', 'StrainRateXX', 'StrainRateXY', 'StrainRateXZ', 'StrainRateYY', 'StrainRateYZ', 'StrainRateZZ', 'StrainNorm')) None¶
Computes Vorticity, QCriterion and Lambda2 for the visualization of vortex structures. Velocity gradient and strain rate tensors are deleted by default.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
gradVar – Specify needed gradients. By default, velocity gradient tensor is computed.
delete – Delete specified temporary variables afterwards. By default, velocity gradient and strain rate tensor are deleted.
- writeAEData(dataSet: DataSet, f: str, computeTotalAerodynamicWork: bool = False, referenceModalEnergy: None | float = None) None¶
Write integral data of aeroelastic post processing.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
f – Specify output file.
Optional Parameters
- Parameters:
computeTotalAerodynamicWork – Compute total aerodynamic work, i.e., the sum over all eigenmodes.
referenceModalEnergy – Specify a total energy for the computation of the total aerodynamic damping and stiffness (requires ‘-computeTotalAerodynamicWork’).
- writeCircFourierDecomp(dataSet: DataSet, outputPath: str, ap: bool = False, average: bool = False) None¶
Write circumferential Fourier decomposition. Fourier coefficients have to be computed by ‘–calcCircFourierDecomp/-ccfd’ task in advance.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
outputPath – Output path to which the output is written.
Optional Parameters
- Parameters:
ap – Write amplitude and phase for complex fields
average – Flag for calculating radial averages of amplitudes.
- writeDataSetSummary(dataSet: DataSet, filename: str) None¶
Write a summary of the data set, i.e. block & family metadata.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
filename – Filename of data set output.
- writeS1Average(dataSet: DataSet, tecplotASCII: str) None¶
Write Averages on S1 cuts.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
tecplotASCII – Write in Tecplot ASCII format to specified directory.
- writeS1criteria(dataSet: DataSet, outDir: None | str = None) None¶
Write radial distributions on intersection families as Tecplot scatter data.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
outDir – Specifies relative path to output directory.
- writeS2M(dataSet: DataSet, name: str) None¶
Write s2m data from global turbomachinery analysis in specified file.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
name – name of output file.
- writeSolutionList(dataSet: DataSet, output: str) None¶
Create and write list of solutions to file.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
output – Name of the ASCII output file.
- writeThermodynamicPropertiesTable(dataSet: DataSet, nTemp: int = 500, minTemp: float = 0, maxTemp: float = 0) None¶
Write a Props.dat file containing the thermodynamic properties as a function of the temperature for each species.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
Optional Parameters
- Parameters:
nTemp – Number of temperature values. Default: 500
minTemp – Minimum temperature. Default: lower polynomial bound
maxTemp – Maximum temperature. Default: upper polynomial bound
- writeTraceBdVal(dataSet: DataSet, fileName: str, panelFamily: None | str = None, avgType: None | Iterable[str] = None, bandCenterAsVertex: bool = False, writeAllVars: bool = False, add0D: bool = False) None¶
Write 0D/1D boundary/interface/analysis surface values which can be read in by TRACE for entries/exits. Values have to be computed by averaging task in advance.
Mandatory Parameters
- Parameters:
dataSet – Input dataSet for task
fileName – Name of file to which the output is written or format string, e.g. bd_%s_%s_%s.dat (panel family name, averaging type, 0D/1D will be inserted).
Optional Parameters
- Parameters:
panelFamily – Panel family for which the boundary values are written.
avgType – Specify averaging types: flux, mass, area.
bandCenterAsVertex – Flag to write the band centers as vertices.
writeAllVars – Flag to write all available (and meaningful) variables.
add0D – Flag to additionally write 0D data.
- class tracesuite.post.dataset.DataSet(post_dataset: _post.Dataset)[source]¶
Representation of a POST dataset including blocks and metadata.
- property analysis_surfaces: dict[str, AnalysisSurface]¶
Returns dictionary of all analysis panel groups.
- property block_groups: collections.ChainMap[str, setup.BlockGroup]¶
Returns dictionary of all blocks groups.
- property blocks: dict[str, Block]¶
Return all blocks of the current DataSet.
- Returns:
A dictionary of all blocks.
- check_for_post_field(solution_name: str, field_name: str) bool[source]¶
Check if a field specified by field_name is present in a solution on all blocks.
- Parameters:
solution_name – Name of the solution to search in.
field_name – Name of the field to search for.
- Returns:
True if field exists at all blocks in specified solution.
- has_harmonic_flow_solutions() bool[source]¶
Check if any block has a harmonic solution.
- Returns:
True if a harmonic solution exists in the data set
- merge_radial_distributions(*radial_distributions: _trace.OutputBufferRadialDistribution) None[source]¶
Merge the radial distributions from TRACE into the dataset.
- Parameters:
radial_distributions – the radial distribution(s); can also contain 0D data
- class tracesuite.post.block.Solution(block: Block, name: str)[source]¶
Contains a set of variable fields which form a solution.
- property fields¶
Return the fields of the current solution.
- property location¶
Return the grid location of the solution values (Cell/Vertex).
- property name¶
Return the name of the solution.
- class tracesuite.post.block.Block(post_dataset: _post.Dataset, name: str)[source]¶
Representation of a POST block including coordinates, solutions and metadata.
- property coordinates¶
Get all the blocks coordinates.
- property dim¶
Return the blocks dimension.
- property is_local¶
Return True if the blocks is local to this process.
- property is_structured¶
Return True if the block is structured.
- property name¶
Return the blocks name.
- property r¶
Get the blocks r coordinates.
- property shape¶
Return the blocks shape.
- property solutions¶
Get a list of all solutions of this block.
- property theta¶
Get the blocks theta coordinates.
- property x¶
Get the blocks x coordinates.
- property y¶
Get the blocks y coordinates.
- property z¶
Get the blocks z coordinates.