show_extended#

varextcfd.show_extended(p0: str) int#

Make extended CFD variables available or not.

For extended CFD variables to be computed, the basis variables must be identified and the basis constants defined. Once the basis variables and constants are defined, and this command makes them available - the variables can be computed when activated or used.
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
#
# Activating all variables in this case
#
ensight.variables.activate_all()
#
# Making extended variables available
#
ensight.varextcfd.show_extended("ON")
#
# Setting the basis variables and constants
#
ensight.varextcfd.modify_begin()
ensight.varextcfd.density("Density")
ensight.varextcfd.momentum("Momentum")
ensight.varextcfd.total_energy("Energy")
ensight.varextcfd.ratio_of_spec_heat("1.4000e+00")
ensight.varextcfd.freestream_mach(1.0000e+00)
ensight.varextcfd.gas_constant(1.0000e+00)
ensight.varextcfd.freestream_density(1.0000e+00)
ensight.varextcfd.freestream_speed_sound(1.0000e+00)
ensight.varextcfd.modify_end()
Returns:

zero on success, non-zero on error