VolumeSelector#
- class VolumeSelector[source]#
Bases:
EntitySelectorPattern-based selector for volume zone entities. Stores matching rules, enabling reusable SimulationParams templates.
Example
>>> # Simple: match volumes by glob pattern >>> fl.VolumeSelector(name="fluid_zones").match("fluid*") >>> # With OR logic: match specific zones by name >>> sel = fl.VolumeSelector( ... name="porous_zones", logic="OR", ... description="Zones for porous medium" ... ).any_of(["zone1", "zone2"])
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.