SurfaceSelector#

class SurfaceSelector[source]#

Bases: EntitySelector

Pattern-based selector for Surface entities. Stores matching rules, enabling reusable SimulationParams templates.

Example

>>> # Simple: match surfaces by glob pattern
>>> fl.SurfaceSelector(name="wing_surfaces").match("wing*")
>>> # With OR logic: match surfaces matching either pattern
>>> sel = fl.SurfaceSelector(
...     name="wing_and_tail", logic="OR",
...     description="Wing and tail surfaces"
... ).match("wing*").match("tail*")

Attributes

description: str, optional#

Customizable description of the selector.

Default:

None

name: str#

Unique name for this selector.

logic: Literal['AND', 'OR']#
Default:

'AND'

children: list[Predicate]#
Default:

[]

Additional Constructors

match(pattern, *, attribute='name')#

Append a matches predicate and return self for chaining.

Glob dialect: flow360_schema.framework.glob_pattern.

Parameters:
Return type:

Self

not_match(pattern, *, attribute='name')#

Append a not-matches predicate and return self for chaining.

Glob dialect: flow360_schema.framework.glob_pattern.

Parameters:
Return type:

Self

any_of(values, *, attribute='name')#

Append an in predicate and return self for chaining.

Parameters:
Return type:

Self

not_any_of(values, *, attribute='name')#

Append a notIn predicate and return self for chaining.

Parameters:
Return type:

Self