StackGeom Functions

This group of functions is available for interacting with a StackGeom through the API.

InitStackPreset(geom_id, preset)

Replace every XSec of a StackGeom with a preset starting point.

Details

openvsp.InitStackPreset(geom_id, preset)[source]

Replace every XSec of a StackGeom with a preset starting point. Most of the presets lay out a nacelle; which one you want depends on whether the model needs the inlet, the outlet, the external surface, the internal flowpath, or some combination. This discards the existing cross sections, so it belongs right after the StackGeom is created.

stack_id = AddGeom( "STACK", "" )

InitStackPreset( stack_id, STACK_PRESET_FLOWTHRU_MID_ORIG )

Update()

# Each preset lays down its own set of XSecs, replacing the default five.
xsec_surf = GetXSecSurf( stack_id, 0 )

assert GetNumXSec( xsec_surf ) == 7, "InitStackPreset did not rebuild the XSecs"
Parameters:
  • [in] – geom_id string StackGeom Geom ID

  • [in] – preset int Preset enum (see STACK_PRESETS)