DampingManager
DampingManager
Define damping models through model.damping.
Factories construct and register damping definitions, assigning unique tags and generated names when no explicit name is supplied. Associate a definition with a region or mesh part separately; registration is not a global solver damping command and does not launch an analysis.
Example
Note
Damping ratios are fractions, not percentages. Follow each concrete component's frequency and coefficient conventions. Combining damping sources requires physical calibration; successful creation does not establish an appropriate total damping or explicit stability limit.
Methods:
| Name | Description |
|---|---|
rayleigh |
Create a Rayleigh damping model. |
modal |
Create a modal damping model. |
frequency_rayleigh |
Create a frequency-based Rayleigh damping model. |
uniform |
Create a uniform damping model. |
secant_stiffness_proportional |
Create a secant stiffness-proportional damping model. |
add |
Register a damping object and assign its tag and default name. |
get |
Return a damping definition by integer-convertible tag, or None. |
get_all |
Return a shallow tag-to-definition snapshot with shared objects. |
remove |
Detach a damping definition and compact surviving registry tags. |
clear |
Detach all damping objects and empty name/tag indices. |
set_tag_start |
Set the positive damping-tag origin and retag existing definitions. |
get_available_types |
Return human-readable damping family labels supported by this manager. |
Methods:
rayleigh
rayleigh(*, alphaM: float = 0.0, betaK: float = 0.0, betaKInit: float = 0.0, betaKComm: float = 0.0, user_name: str | None = None) -> RayleighDamping
Create a Rayleigh damping model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alphaM
|
float
|
Mass-proportional damping factor. |
0.0
|
betaK
|
float
|
Current stiffness-proportional damping factor. |
0.0
|
betaKInit
|
float
|
Initial stiffness-proportional damping factor. |
0.0
|
betaKComm
|
float
|
Committed stiffness-proportional damping factor. |
0.0
|
user_name
|
str | None
|
Optional unique name for the damping object. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If any damping factor is negative or if all factors are zero. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
RayleighDamping
|
Registered definition; no solver is launched. |
modal
modal(*, numberofModes: int, damping_factors: Iterable[float] | str, user_name: str | None = None) -> ModalDamping
Create a modal damping model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
numberofModes
|
int
|
Number of modes to apply damping to. |
required |
damping_factors
|
Iterable[float] | str
|
Damping ratios (between 0.0 and 1.0) for each mode. Can be a list of floats or a comma-separated string. |
required |
user_name
|
str | None
|
Optional unique name for the damping object. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If number of modes is invalid, or if the damping factors
do not match the mode count, or are outside |
Returns:
| Name | Type | Description |
|---|---|---|
component |
ModalDamping
|
Registered definition; no solver is launched. |
frequency_rayleigh
frequency_rayleigh(*, damping_factor: float, f1: float = 0.2, f2: float = 20.0, user_name: str | None = None) -> FrequencyRayleighDamping
Create a frequency-based Rayleigh damping model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
damping_factor
|
float
|
Target damping ratio (between 0.0 and 1.0). |
required |
f1
|
float
|
First control frequency in Hz. |
0.2
|
f2
|
float
|
Second control frequency in Hz. |
20.0
|
user_name
|
str | None
|
Optional unique name for the damping object. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If frequencies are non-positive or if damping_factor is
outside |
Returns:
| Name | Type | Description |
|---|---|---|
component |
FrequencyRayleighDamping
|
Registered definition; no solver is launched. |
uniform
uniform(*, dampingRatio: float, freql: float, freq2: float, Ta: float | None = None, Td: float | None = None, tsTagScaleFactorVsTime: int | None = None, user_name: str | None = None) -> UniformDamping
Create a uniform damping model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dampingRatio
|
float
|
Constant damping ratio (between 0.0 and 1.0). |
required |
freql
|
float
|
Lower bound of the frequency range in Hz. |
required |
freq2
|
float
|
Upper bound of the frequency range in Hz (must exceed |
required |
Ta
|
float | None
|
Optional activation time in seconds. |
None
|
Td
|
float | None
|
Optional deactivation time in seconds. |
None
|
tsTagScaleFactorVsTime
|
int | None
|
Optional time series tag for scaling damping. |
None
|
user_name
|
str | None
|
Optional unique name for the damping object. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If dampingRatio, freql, or freq2 parameters are invalid. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
UniformDamping
|
Registered definition; no solver is launched. |
secant_stiffness_proportional
secant_stiffness_proportional(*, damping_factor: float, Ta: float | None = None, Td: float | None = None, tsTagScaleFactorVsTime: int | None = None, user_name: str | None = None) -> SecantStiffnessProportional
Create a secant stiffness-proportional damping model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
damping_factor
|
float
|
Damping ratio proportional to secant stiffness (between 0.0 and 1.0). |
required |
Ta
|
float | None
|
Optional activation time in seconds. |
None
|
Td
|
float | None
|
Optional deactivation time in seconds. |
None
|
tsTagScaleFactorVsTime
|
int | None
|
Optional time series tag for scaling damping. |
None
|
user_name
|
str | None
|
Optional unique name for the damping object. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If damping_factor is outside |
Returns:
| Name | Type | Description |
|---|---|---|
component |
SecantStiffnessProportional
|
Registered definition; no solver is launched. |
add
Register a damping object and assign its tag and default name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
damping
|
Damping
|
Unmanaged object or one already owned here. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
damping |
Damping
|
Same object, retained by this manager. |
Raises:
| Type | Description |
|---|---|
TypeError
|
Input is not a Damping. |
ValueError
|
Name/tag conflict or ownership by another manager. |
get
Return a damping definition by integer-convertible tag, or None.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tag
|
int
|
Registry key; conversion errors propagate. |
required |
get_all
Return a shallow tag-to-definition snapshot with shared objects.
remove
Detach a damping definition and compact surviving registry tags.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tag
|
int
|
Current tag; missing entries are ignored. |
required |
Regions are not rewritten. They hold weak references to damping objects, so an externally retained detached object can remain visible until released. Cached integer tags can become stale.
clear
Detach all damping objects and empty name/tag indices.
Region assignments are not actively removed and no solver command is sent. Use coordinated model clearing when rebuilding the entire model.
set_tag_start
Set the positive damping-tag origin and retag existing definitions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_tag
|
int
|
Origin validated by the tagging policy. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
Invalid origin. Exported files are not updated. |