Skip to content

pyflightstream.cases.ccs_wing (provisional)

Generated from the docstrings at build time: every one of the 6 names in the __all__ of pyflightstream.cases.ccs_wing has an entry below. The names a guide or an example uses come first; the others follow under Advanced.

The CCS route: a row's CCS file made into a mesh by the solver's CCS commands.

Pipeline role: the cases row, where a row's solver commands are emitted. A matrix row names a CCS file in its GEOMETRY cell and the [import.ccs] table of the file's sidecar says how it becomes a mesh (:class:~pyflightstream.cases._ccs.CcsImportOptions). This module holds the route every kind shares, :func:emit_ccs_geometry, which the workflows reach through one short hook where they open a geometry, and the wing (:func:emit_ccs_wing) with the control surfaces a wing declares (CCS-2). The fuselage and the body of revolution are :mod:pyflightstream.cases.ccs_fuselage and :mod:pyflightstream.cases.ccs_revolution.

THE CURVE ROUTE is the one licensed round 1 accepted on 26.124 for a wing, a fuselage and a body of revolution, each saving a simulation that lists the new boundary (RPT-096, "probe round 1 on 26.124", 2026-09-30: probes C1, C4, C5)::

CAD_CREATE_INITIALIZE
CAD_CREATE_IMPORT_CURVE_CCS <units> 1 <component>
<the CCS file>
CAD_CREATE_CURVE_SELECT -1
<the kind's settings: subdivisions, control surfaces>
CAD_CREATE_<WING|FUSELAGE|REVOLVE>_MESH_FROM_CCS <name> ...

The GUI hands the selected virtual curves to the CCS tool with a button and no script command does that, so the loft reads the selection that CAD_CREATE_CURVE_SELECT -1 leaves. Nothing else is opened, imported or created before it: the route is the probed one, in the probed order.

THE FILE ROUTE (kind = "file") is CCS_IMPORT, which imported all three components of one file on 26.124, listing the boundaries PYFS_CCS_WING, PYFS_CCS_FUS and PYFS_CCS_REV (RPT-096, "probe round 1 on 26.124", probe C0). It is the only route that reads a component's Relaxed_TE line, whose last value is the direction of the relaxed wake's parametric shedding line (FSM-26.124 p.85); the script commands NEW_CCS_FUSELAGE_RELAXED_TE and NEW_CCS_REVOLVE_RELAXED_TE take no direction. So a row choosing that direction (CCS_SHEDDING, G35) is a row on the file route, and the run imports its own copy of the file with every Relaxed_TE line restated in the row's direction. Round 1 imported the same fuselage with the digit 0 and 1 and the two saved simulations differ in 5 lines (RPT-096, "probe round 1 on 26.124", section 3.2); that round did not decode the lines or compare geometry, so the geometric effect of the digit is not measured there.

Advanced

pyflightstream.cases.ccs_wing.REFERENCE_FRAME module-attribute

REFERENCE_FRAME = 1

pyflightstream.cases.ccs_wing.emit_ccs_geometry

emit_ccs_geometry(script: Script, case: SimCase) -> None

Make the case's CCS file a mesh: the loft its table names, or the whole file.

The workflows call this where they open a geometry, for a GEOMETRY whose suffix is a CCS file's; the length unit and the boundary inventory are stated by the caller right after, as after every import.

Parameters:

Name Type Description Default
script Script

Script under construction, still empty.

required
case SimCase

The case naming the CCS file.

required

Raises:

Type Description
CampaignConfigError

A CCS file with no [import.ccs] table; a table beside import operations or a CAD table, which this route does not apply; a case loading a saved solver initialization into a mesh it creates; a sidecar declaring the raw-mesh boundary-condition tables; CCS_SHEDDING on a loft; and every refusal of the kind's own emitter.

pyflightstream.cases.ccs_wing.emit_ccs_wing

emit_ccs_wing(script: Script, case: SimCase) -> None

Emit the CCS wing of one point: prelude, subdivisions, control surfaces, loft.

Parameters:

Name Type Description Default
script Script

The script being built for the point.

required
case SimCase

The point's case, whose [import.ccs] table says kind = "wing".

required

Raises:

Type Description
CampaignConfigError

As :func:loft_component refuses.

pyflightstream.cases.ccs_wing.emit_curve_prelude

emit_curve_prelude(
    script: Script, case: SimCase, component: int
) -> None

Emit the curve route's prelude: initialize, import one component, select every curve.

Parameters:

Name Type Description Default
script Script

The script being built for the point.

required
case SimCase

The case naming the CCS file; its [import] unit is the one the curves are read in.

required
component int

The component to import, counted from 1.

required

pyflightstream.cases.ccs_wing.loft_component

loft_component(
    case: SimCase, kind: str
) -> tuple[CcsImportOptions, str, int]

Check one loft of the curve route and return its table, boundary name and component.

Parameters:

Name Type Description Default
case SimCase

The case naming the CCS file.

required
kind str

wing, fuselage or revolution: the loft the caller emits.

required

Returns:

Type Description
tuple of (CcsImportOptions, str, int)

The table, the boundary name the loft makes (the sidecar's first boundaries entry) and the component it lofts.

Raises:

Type Description
CampaignConfigError

A table of another kind; the FILE unit, which is the file route's; the OTHER unit, which names no length; a component the file does not hold; a sidecar naming no boundary, or more than the loft and its control surfaces make; a boundary name carrying whitespace.

pyflightstream.cases.ccs_wing.refuse_ccs_options_off_a_ccs_file

refuse_ccs_options_off_a_ccs_file(
    case: SimCase, suffix: str
) -> None

Refuse an [import.ccs] table beside a geometry that is not a CCS file.

Parameters:

Name Type Description Default
case SimCase

The case whose geometry is opened or imported.

required
suffix str

The geometry's suffix, lower case.

required

Raises:

Type Description
CampaignConfigError

Where the table would be read by nothing: beside a raw mesh, a CAD file or a saved simulation; and where a row states MORPHING or MORPHING_ANGLE and its geometry is not a CCS wing loft, which alone carries morphing surfaces (FR-1600).