RegionBase
RegionBase
Bases: ABC
Extension base for defining regions in a model.
Region objects do not self-register and do not assign their own tags. A RegionManager owns lifecycle operations, tag assignment, removal, and retagging for a local model context.
Methods:
| Name | Description |
|---|---|
set_damping |
Assign damping through the validated damping property. |
to_tcl |
Render the concrete region's solver definition without executing it. |
get_type |
Return the concrete family label used for type reporting/default names. |
Attributes:
| Name | Type | Description |
|---|---|---|
tag |
Optional[int]
|
Current manager-assigned region tag, or None while unmanaged. |
name |
str
|
User label stored on this region, not a generated solver node group. |
damping |
Optional[Damping]
|
Associated damping object, or None when unassigned or collected. |
Attributes
tag
property
writable
Current manager-assigned region tag, or None while unmanaged.
Tag zero is reserved for the model's global region. Do not manually assign tags to bypass registration or overwrite registry ownership.
damping
deletable
property
writable
Associated damping object, or None when unassigned or collected.
The region holds a weak reference. Keep damping registered with its model manager so that its definition remains alive and exportable.
Methods:
set_damping
Assign damping through the validated damping property.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
damping_instance
|
Damping
|
Definition to associate with this region. |
required |
Shared regions affect all their consumers; this method neither creates a private copy nor updates files already exported to the solver.
to_tcl
abstractmethod
Render the concrete region's solver definition without executing it.
Returns:
| Name | Type | Description |
|---|---|---|
command |
str
|
Subclass-defined Tcl requiring appropriate export context and registry identity. |