pyflightstream.workspace.wake_edges (stable)¶
Generated from the docstrings at build time: every one of the 22 names in the __all__ of pyflightstream.workspace.wake_edges has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
Wake-edge marking inputs, staged in the workspace.
Pipeline role: workspace layer. A campaign that marks its trailing edges from an imported node list needs three things the emitter cannot supply and cannot check: the nodes themselves, the edge type the marked edges take, and the distance within which an imported coordinate counts as sitting on a mesh edge. This module holds those three, refuses a combination that can mark nothing, and states the evidence the choice rests on.
WHY THE REFUSALS LIVE HERE AND NOT IN THE EMITTER. The emitter checks grammar, and every combination this module refuses is grammatically perfect: an empty node list is a file with no rows, and a tolerance of zero is a real number in the right position. The solver then marks nothing and reports nothing, and the campaign runs to completion with no wake where the wake was the point. A check that can only run before the script is written has to live above the script layer, which is here.
THE DEFAULT ROUTE WAS RUN ON ONE BUILD, and that is stated rather than
left for a reader to discover. Marking wake edges from a file replaces
trailing-edge auto detection, which is an angle criterion and cannot
find the edges this capability exists for; that is the reason for the
trade and it is a good one. The import was run on 26.124 only
(RPT-061), where it reads its node list from the path on the line after
the command and marks the edges whose mid-points the file names; the
builds before it print a grammar that build refuses. :func:evidence_notice
renders the standing from the command database at the moment it is
asked, so the day a compat report promotes the import the sentence
follows it, and a reader meeting the default never reads it as settled
practice.
THE NODE FILE IS WHAT 26.124 READS (RPT-061): the count, one coordinate
line the solver consumes and does not use, then the edge MID-POINTS in
the simulation's length unit. The file's unit is not read, so
:func:write_node_file converts the points to the simulation's unit
rather than declaring one, and the text itself comes from
:func:pyflightstream.script.helpers.render_wake_edge_node_file, the
one place that layout is written.
The two defaults are the vendor's own numbers rather than this package's taste: the manual page prints a sample call passing VORTEX_SHEDDING and 0.0001, and states the same number as the parameter default in its own table (FSM-26.122 p.324, FSM-26.123 p.323).
Advanced¶
pyflightstream.workspace.wake_edges.LENGTH_UNIT_COMMAND
module-attribute
¶
LENGTH_UNIT_COMMAND = 'SET_SIMULATION_LENGTH_UNITS'
pyflightstream.workspace.wake_edges.TRAILING_EDGE_DETECTION_COMMAND
module-attribute
¶
TRAILING_EDGE_DETECTION_COMMAND = (
"AUTO_DETECT_TRAILING_EDGES"
)
pyflightstream.workspace.wake_edges.TrailingEdgePoints
¶
Bases: NamedTuple
A trailing-edge points file as read.
Attributes:
| Name | Type | Description |
|---|---|---|
unit |
str
|
The length unit its first line names. |
points |
ndarray
|
The points, shape (n, 3), in |
lines |
tuple of int
|
The 1-based file line each point was read from, so a refusal can name the line a user has to open. |
pyflightstream.workspace.wake_edges.WAKE_EDGE_IMPORT_COMMAND
module-attribute
¶
WAKE_EDGE_IMPORT_COMMAND = 'IMPORT_WAKE_EDGES_FROM_FILE'
pyflightstream.workspace.wake_edges.WakeEdgeImport
¶
Bases: BaseModel
The inputs one wake-edge marking pass takes.
Attributes:
| Name | Type | Description |
|---|---|---|
nodes |
tuple of PointXyz
|
Node coordinates that name the edges to mark, in the simulation geometry reference frame, m. At least one; an empty list marks nothing and the solver says nothing about it. |
edge_type |
str
|
Edge type applied to every edge the import matches, one of
:func: |
tolerance |
float
|
Maximum distance between the mid-point of a mesh edge and an
imported node coordinate for the two to be treated as the same
edge, in the unit :func: |
Examples:
>>> from pyflightstream.workspace.inputs import PointXyz
>>> from pyflightstream.workspace.wake_edges import WakeEdgeImport
>>> settings = WakeEdgeImport(
... nodes=(PointXyz(x_m=1.0, y_m=0.0, z_m=0.0),), edge_type="VORTEX_SHEDDING"
... )
>>> settings.edge_type, settings.tolerance
('VORTEX_SHEDDING', 0.0001)
evidence_notice
¶
evidence_notice(canonical: str) -> str
Return :func:evidence_notice for one build.
Offered on the model so a caller holding the settings can print the notice at the moment it emits, without importing the module function separately. One implementation, delegated to.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canonical
|
str
|
Canonical build identifier, for example |
required |
Returns:
| Type | Description |
|---|---|
str
|
The paragraph :func: |
pyflightstream.workspace.wake_edges.edge_types
¶
edge_types() -> tuple[str, ...]
Return the edge types the command database records for the import.
Read from the command record on every call rather than copied into a constant. The set is per version in the database, and a constant here would be a second copy that cannot follow a build.
Returns:
| Type | Description |
|---|---|
tuple of str
|
The declared values of the import's |
Examples:
>>> from pyflightstream.workspace.wake_edges import edge_types
>>> "VORTEX_SHEDDING" in edge_types()
True
pyflightstream.workspace.wake_edges.evidence_notice
¶
evidence_notice(canonical: str) -> str
State the evidence behind the imported-node route, for one build.
The sentence names both commands, the build it is about, and which builds the replaced command was actually run on. It is derived from the command database at call time, so a probe that promotes the import moves the sentence in the same commit that writes the row, and a report id appears here as soon as one is cited.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canonical
|
str
|
Canonical build identifier, for example |
required |
Returns:
| Type | Description |
|---|---|
str
|
One paragraph, ready to be printed beside the emitted script or carried in a run record. |
Examples:
>>> from pyflightstream.workspace.wake_edges import evidence_notice
>>> "IMPORT_WAKE_EDGES_FROM_FILE" in evidence_notice("26.123")
True
pyflightstream.workspace.wake_edges.length_scale
¶
length_scale(from_unit: str, to_unit: str) -> float
Return the factor that turns a length in from_unit into to_unit.
The ratio is taken exactly and rounded once, so a millimetre-to-metre conversion multiplies by the float nearest 0.001 and a metre-to-metre one by exactly 1.0.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
from_unit
|
str
|
Tokens of :func: |
required |
to_unit
|
str
|
Tokens of :func: |
required |
Returns:
| Type | Description |
|---|---|
float
|
The factor to multiply a |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
If either token is |
Examples:
>>> from pyflightstream.workspace.wake_edges import length_scale
>>> length_scale("MILLIMETER", "METER")
0.001
pyflightstream.workspace.wake_edges.matched_trailing_edge_points
¶
matched_trailing_edge_points(
points: object,
*,
points_unit: str,
mesh: Any,
mesh_unit: str,
simulation_unit: str,
tolerance: float = DEFAULT_TOLERANCE,
source: str = "the trailing-edge points",
lines: Sequence[int] | None = None,
) -> numpy.ndarray
Return the trailing-edge points in the simulation unit, each matched to a mesh edge.
Every point is checked against the mesh before any run, and the first
that matches no edge is refused. The import marks an edge whose
mid-point lies within tolerance of a
point and marks nothing, in silence, for a point outside that distance
of every edge's mid-point (RPT-061); an end vertex of an edge is such a
point whenever the edge is longer than twice the tolerance. So each
point must lie within the tolerance of a mesh-edge mid-point,
compared in the simulation's length unit, and no two points
may be nearest one edge, since the solver would then log fewer
imported edges than points written and the run would be refused after
the seat is spent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
array_like
|
The points, shape (n, 3), in |
required |
points_unit
|
str
|
Their unit, a token of :func: |
required |
mesh
|
(str, Path or Trimesh)
|
The surface the points name edges of, as a file (a scene's bodies are joined) or loaded. |
required |
mesh_unit
|
str
|
The unit the mesh coordinates are in. |
required |
simulation_unit
|
str
|
The simulation's length unit, the one the tolerance is in and the one the points come back in. |
required |
tolerance
|
float
|
The import's tolerance, in |
DEFAULT_TOLERANCE
|
source
|
str
|
What the points are, for the refusal: ordinarily the file's path. |
'the trailing-edge points'
|
lines
|
sequence of int
|
The file line of each point, as :func: |
None
|
Returns:
| Type | Description |
|---|---|
ndarray
|
The points converted to |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
On the FIRST point farther than the tolerance from every mesh-edge mid-point, naming its position, its file line, its coordinates and its distance; on two points nearest one edge; and on a unit with no scale, a tolerance that is not positive and finite, points that are not (n, 3) finite coordinates, or a mesh with no faces. |
Notes
The mesh's edges are those of its triangles, so a mesh read from quads carries the diagonals its reader added, and a point on a diagonal's mid-point passes here although no edge of the solver's mesh may lie there. A trailing edge seldom runs along a diagonal; it is stated so a passing check is not read as more than it is.
Examples:
>>> from pyflightstream.workspace.wake_edges import (
... matched_trailing_edge_points,
... read_trailing_edge_points,
... )
>>> read = read_trailing_edge_points("wing.te.txt")
>>> in_metres = matched_trailing_edge_points(
... read.points,
... points_unit=read.unit,
... mesh="wing.stl",
... mesh_unit="METER",
... simulation_unit="METER",
... source="wing.te.txt",
... lines=read.lines,
... )
pyflightstream.workspace.wake_edges.node_file_units
¶
node_file_units() -> tuple[str, ...]
Return the length-unit tokens the command database records.
Read from the record on every call, for the same reason
:func:edge_types is: a constant here would be a second copy that
cannot follow a build.
Returns:
| Type | Description |
|---|---|
tuple of str
|
The declared values of the simulation length unit, in the order the manual page prints them. |
Examples:
>>> from pyflightstream.workspace.wake_edges import node_file_units
>>> "METER" in node_file_units()
True
pyflightstream.workspace.wake_edges.quad_families
¶
quad_families(families: dict[str, Any]) -> list[str]
Return the families whose faces are quadrilaterals for :data:QUAD_FAMILY_SHARE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
families
|
dict of str to list of faces
|
Each family's faces, each a sequence of vertex indices. |
required |
Returns:
| Type | Description |
|---|---|
list of str
|
The quad families, in the order of |
pyflightstream.workspace.wake_edges.read_trailing_edge_points
¶
read_trailing_edge_points(
path: str | Path,
) -> TrailingEdgePoints
Read a trailing-edge points file: a unit line, then one x,y,z per line.
The file :func:write_trailing_edge_points writes, or a user writes by
hand. Its first non-blank line names the length unit of the points, a
token of SET_SIMULATION_LENGTH_UNITS other than OTHER; every
later non-blank line is one point, three finite numbers separated by
commas. The unit is what lets the run convert the points to the
simulation's unit, since the solver's own file carries none.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
The points file. |
required |
Returns:
| Type | Description |
|---|---|
TrailingEdgePoints
|
Its unit, its points and the file line of each point. |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
If the file cannot be read, opens with anything but a unit line
(a line of numbers there is a file without one), names |
Examples:
>>> from pyflightstream.workspace.wake_edges import read_trailing_edge_points
>>> read = read_trailing_edge_points(tmp_path / "wing.te.txt")
>>> read.unit, read.points.shape
('METER', (16, 3))
pyflightstream.workspace.wake_edges.saved_wake_edge_verdict
¶
saved_wake_edge_verdict(
sets, folder: Path, collected: Sequence[str], build: str
)
Compare the marked saved mesh with every declared set in physical metres.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sets
|
sequence of mappings
|
Declared edge points, tolerances and source files. |
required |
folder
|
Path
|
Folder containing the collected saved simulation. |
required |
collected
|
sequence of str
|
Collected output names, including exactly one saved simulation. |
required |
build
|
str
|
Solver build associated with the marking pass. |
required |
Returns:
| Type | Description |
|---|---|
tuple or None
|
Failure status and diagnosis, or None when every declared point is marked. |
pyflightstream.workspace.wake_edges.tolerance_unit
¶
tolerance_unit() -> str
Return the unit the command database records for the tolerance.
READ FROM THE RECORD, never written here. The unit is DERIVED and printed nowhere in the manual: the page describes a distance between a mesh edge mid-point and an imported node coordinate, and both are expressed in the simulation's own length unit, so the tolerance can be in no other. That reading belongs to the command entry, which is where its citation lives, and a constant here would be a second copy that could disagree with it.
Returns:
| Type | Description |
|---|---|
str
|
The declared unit of the import's |
Examples:
>>> from pyflightstream.workspace.wake_edges import tolerance_unit
>>> tolerance_unit()
'simulation length units'
pyflightstream.workspace.wake_edges.write_level_trailing_edges
¶
write_level_trailing_edges(
verts: ndarray,
found: dict[str, set[tuple[int, int]]],
folder: Path,
stem: str,
*,
unit: str,
) -> list[Path]
Write a refined level's trailing edges, all and per family, for the solver and for ANSA.
<stem>.nodes.te.txt and <stem>.<family>.fs.te.txt in the format the
solver's wake-edge import reads (:func:write_node_file, in unit), and
<stem>.nodes.txt and <stem>.<family>.nodes.txt as ANSA node lists
(Id, Name, X, Y, Z), the ids the level OBJ's vertex numbers, and
<stem>.fs.nodes.txt and <stem>.<family>.fs.nodes.txt, the same nodes
(the edges' end vertices, not their mid-points) in the solver file's layout,
in unit, which a boundaries file's wake_termination_nodes reads
(FR-3401). Families with no edge write nothing; an empty found writes
nothing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
verts
|
ndarray
|
The level's vertices, shape (n, 3). |
required |
found
|
dict of str to set of (int, int)
|
Each family's trailing-edge edges, as vertex index pairs. |
required |
folder
|
Path
|
The level's folder. |
required |
stem
|
str
|
The level's name, the stem of every file written. |
required |
unit
|
str
|
The level's length unit; the solver files are written in it. |
required |
Returns:
| Type | Description |
|---|---|
list of pathlib.Path
|
The files written: the files of every family, then each family's. |
pyflightstream.workspace.wake_edges.write_node_file
¶
write_node_file(
path: str | Path,
nodes: object,
*,
unit: str,
simulation_unit: str,
overwrite: bool = False,
) -> Path
Write the node list the wake-edge import reads, from edge mid-points.
The seam between a third-party mesh reader and a solver input format: the extraction happens outside, with a mesh library, and this turns the mid-points it produced into the file the solver imports.
THE LAYOUT IS THE ONE 26.124 WAS MEASURED TO READ (RPT-061): the
number of points, one coordinate line the solver consumes and does
not use, then one x,y,z row per mesh-edge MID-POINT, in the
simulation's length unit, with no unit line and no ids. The layout the
manual prints for the GUI's import (a count, a unit token, then an id
and three coordinates per END VERTEX) was run and marks nothing, and
so does any file with a word on a line. The file's unit is not read,
so the points are CONVERTED from unit to simulation_unit here
rather than labelled. The text is
:func:pyflightstream.script.helpers.render_wake_edge_node_file's,
the one place the layout is written.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
Destination file. |
required |
nodes
|
array_like
|
The mid-points of the mesh edges to mark, shape (n, 3), in the
unit named by |
required |
unit
|
str
|
Length unit the given coordinates are in, one of
:func: |
required |
simulation_unit
|
str
|
The simulation's length unit, the one its
|
required |
overwrite
|
bool
|
Replace an existing destination. False refuses instead, because one path is one file and a second write would silently win. |
False
|
Returns:
| Type | Description |
|---|---|
Path
|
The file written. |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
If the node list is empty, is not (n, 3), carries a coordinate
that is not a finite number, names a unit with no scale ( |
Notes
The existing-destination refusal is an
:class:~pyflightstream.workspace.InputArtifactError rather than the
OutputExistsError the flow-visualization writers raise, because
that class lives in the post layer and this one sits below it;
importing it here would point upward. The rule it enforces is the
same rule.
The file is written with LF line ends on every platform, which is the form the measured file had.
Examples:
>>> import numpy
>>> from pyflightstream.workspace.wake_edges import write_node_file
>>> written = write_node_file(
... tmp_path / "wake_nodes.txt",
... numpy.array([[1000.0, -3750.0, 0.0], [1000.0, -3250.0, 0.0]]),
... unit="MILLIMETER",
... simulation_unit="METER",
... )
pyflightstream.workspace.wake_edges.write_trailing_edge_midnodes
¶
write_trailing_edge_midnodes(
source: str | Path,
path: str | Path,
*,
unit: str = "METER",
overwrite: bool = False,
accept_empty: bool = False,
) -> Path | None
Write the edge mid-points of an ANSA SET node-window export, in any node order.
The nodes are put in order along their lines: from an end, each step goes
to the nearest node left, and a step longer than :data:MIDNODE_GAP times
the node's distance to its nearest node starts a new line, so one list may hold the
trailing edges of every component. Each neighbouring pair gives one
mid-point. No mesh is needed. A closed line loses the mid-point of its
closing edge. Nodes at one position (two ids) are read once, with a
warning.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
str or Path
|
Comma-separated Id, Name, X, Y, Z rows; blank and comment lines are ignored. |
required |
path
|
str or Path
|
Destination points file. |
required |
unit
|
str
|
Length unit of the coordinates, written on the first line. |
'METER'
|
overwrite
|
bool
|
Allow replacement of an existing destination. |
False
|
accept_empty
|
bool
|
A list with fewer than two nodes, or whose nodes give no mid-point, is warned and nothing is written (None is returned); by default it is refused. |
False
|
Returns:
| Type | Description |
|---|---|
Path or None
|
The written points file; None when |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
For fewer than two nodes, malformed rows, repeated ids or non-finite coordinates, naming the source line; also for an invalid unit or an existing output. |
pyflightstream.workspace.wake_edges.write_trailing_edge_midnodes_per_family
¶
write_trailing_edge_midnodes_per_family(
source: str | Path,
mesh: str | Path,
path: str | Path,
*,
unit: str = "METER",
overwrite: bool = False,
accept_empty: bool = False,
) -> list[Path]
Write one points file per family of a mesh from an ANSA SET node list.
Each listed node is matched to the mesh vertex within a quarter of that
vertex's shortest edge, and every edge of a family joining two listed
nodes gives its mid-point, so the points are the mesh's own. The files are
named <path stem>.<family>.te.txt beside path; a family no edge
of the list lies on gets none, and a node that matches no vertex is
warned and skipped.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
str or Path
|
The node list saved from the SET (Id, Name, X, Y, Z), in any order. |
required |
mesh
|
str or Path
|
The OBJ the nodes belong to, in the same unit as the list. |
required |
path
|
str or Path
|
The points file the per-family names are built from. |
required |
unit
|
str
|
Length unit of the coordinates, written on each file's first line. |
'METER'
|
overwrite
|
bool
|
Allow replacement of existing destinations. |
False
|
accept_empty
|
bool
|
A list with no node read, or that joins no edge of the mesh, is warned and nothing is written (an empty list is returned); by default it is refused. |
False
|
Returns:
| Type | Description |
|---|---|
list of pathlib.Path
|
The written points files, in the mesh's family order. |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
For a list with no node read, a list that joins no edge of the mesh, an unreadable mesh, an invalid unit or an existing output. |
pyflightstream.workspace.wake_edges.write_trailing_edge_points
¶
write_trailing_edge_points(
path: str | Path,
points: object,
*,
unit: str,
overwrite: bool = False,
) -> Path
Write a trailing-edge points file: its unit, then one mid-point per line.
The PACKAGE-SIDE file a geometry names for its trailing edge, which a
user may also write by hand. It is not the file the solver reads: the
run reads it, checks every point against the mesh, converts the points
to the simulation's unit and writes the solver's node file from them
(:func:write_node_file). So the unit is stated here, on the first
line, where the solver's file carries none.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
Destination file. |
required |
points
|
array_like
|
The mid-points of the mesh edges on the trailing edge, shape (n, 3),
in |
required |
unit
|
str
|
The unit the points are in, one of :func: |
required |
overwrite
|
bool
|
Replace an existing destination. |
False
|
Returns:
| Type | Description |
|---|---|
Path
|
The file written. |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
On the refusals of :func: |
Examples:
>>> from pyflightstream.workspace.wake_edges import write_trailing_edge_points
>>> written = write_trailing_edge_points(
... tmp_path / "wing.te.txt", [(1.0, -3.75, 0.0)], unit="METER"
... )
pyflightstream.workspace.wake_edges.write_trailing_edge_points_from_nodes
¶
write_trailing_edge_points_from_nodes(
source: str | Path,
path: str | Path,
*,
unit: str = "METER",
overwrite: bool = False,
) -> Path
Write edge mid-points from an ordered ANSA SET node-window export.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
str or Path
|
Comma-separated Id, Name, X, Y, Z rows; blank and comment lines are ignored. |
required |
path
|
str or Path
|
Destination points file. No mesh is needed. |
required |
unit
|
str
|
Length unit of the coordinates, preserved in the output. |
'METER'
|
overwrite
|
bool
|
Allow replacement of an existing destination. |
False
|
Returns:
| Type | Description |
|---|---|
Path
|
The written points file, with one midpoint per neighbouring pair in listed order. |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
For fewer than two nodes, malformed rows, repeated ids or non-finite coordinates, naming the source line; also for an invalid unit or an existing output. |
OSError
|
If the input cannot be read or the destination cannot be written. |
Notes
Coordinates retain the input reference frame. Nodes are neither sorted nor joined by proximity: the supplied order defines the trailing-edge chain.
pyflightstream.workspace.wake_edges.write_trailing_edges_identified
¶
write_trailing_edges_identified(
mesh: str | Path,
source: str | Path | None = None,
families: Sequence[str] | None = None,
*,
aft: Sequence[float] = (1.0, 0.0, 0.0),
max_angle: float = 45.0,
unit: str | None = None,
simulation_unit: str | None = None,
overwrite: bool = False,
accept_empty: bool = False,
all_families: bool = False,
) -> list[Path]
Find the trailing edges of an OBJ; write their points and solver node files.
The trailing edge of a family is its rearmost line: the edges its surface
lies forward of (:func:pyflightstream.workspace._refine._obj.rearmost_edges,
aft the direction from the nose to the tail), taken among
- with
source, the lines of its listed nodes (an ANSA SET node-window export, any order, every perimeter in one file), each node joined to its near neighbours (:data:NEIGHBOUR_REACH): an edge whose two ends lie on those segments is on a line, so the OBJ may be a refined level whose nodes are not the listed ones; - without it, the boundaries of the family cut along its sharp edges, an
edge kept when its tangent makes
max_angledegrees or less with the plane acrossaft, the yz plane for +x (:func:pyflightstream.workspace._refine._prepare.rearmost_lines).
Beside the mesh, families given, each family's files are
<mesh stem>.<family>.te.txt, the points file a boundaries file names, and
<mesh stem>.<family>.fs.te.txt, the solver's format; else the trailing edges
of the quad families (every family with all_families) are one pair,
<mesh stem>.te.txt and <mesh stem>.nodes.te.txt. Without source, the
nodes found are also written as <mesh stem>.nodes.txt in the ANSA format, the
node list a refine file's [[perimeter]] reads. The node files are written by
:func:write_node_file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
str or Path
|
The OBJ, with its families (merged components, for a refined level). |
required |
source
|
str or Path
|
The node list saved from the SET (Id, Name, X, Y, Z), in the mesh's unit. |
None
|
families
|
sequence of str
|
The families, one pair of files each; a name the OBJ does not hold, or one on
which no trailing edge is found, is warned and skipped. Default: every
quad family (:func: |
None
|
aft
|
sequence of float
|
The aft direction, from the nose to the tail (default +x). |
(1.0, 0.0, 0.0)
|
max_angle
|
float
|
Without |
45.0
|
unit
|
str
|
The coordinates' unit; else the |
None
|
simulation_unit
|
str
|
The unit the solver reads the file in (default: |
None
|
overwrite
|
bool
|
Replace existing files. |
False
|
accept_empty
|
bool
|
A node list with fewer than two nodes, or no trailing edge found on any family, is warned and nothing is written (an empty list is returned); by default it is refused. |
False
|
all_families
|
bool
|
Without |
False
|
Returns:
| Type | Description |
|---|---|
list of pathlib.Path
|
The files written: the node files in the order of |
Raises:
| Type | Description |
|---|---|
InputArtifactError
|
For a node list with fewer than two nodes, an unreadable mesh, an invalid unit, an existing file, or no trailing edge found. |