BodyGroupSelector#
- class BodyGroupSelector[source]#
Bases:
EntitySelectorPattern-based selector for body group entities. Stores matching rules, enabling reusable SimulationParams templates.
Example
>>> # Simple: match body groups by glob pattern >>> fl.BodyGroupSelector(name="rotor_bodies").match("rotor*") >>> # With OR logic: match specific bodies by name >>> sel = fl.BodyGroupSelector( ... name="rotating_bodies", logic="OR", ... description="Bodies for rotation" ... ).any_of(["body1", "body2"])
Attributes
- logic: Literal['AND', 'OR']#
- Default:
'AND'
Additional Constructors
- match(pattern, *, attribute='name')#
Append a matches predicate and return self for chaining.
Glob dialect: flow360_schema.framework.glob_pattern.
- not_match(pattern, *, attribute='name')#
Append a not-matches predicate and return self for chaining.
Glob dialect: flow360_schema.framework.glob_pattern.
- any_of(values, *, attribute='name')#
Append an in predicate and return self for chaining.