-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Support Abaqus 2025 (#5842)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
13f87e7
commit bc7de77
Showing
17 changed files
with
813 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
from __future__ import annotations | ||
|
||
from typing_extensions import List | ||
|
||
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc | ||
|
||
from ..UtilityAndView.abaqusConstants import OFF, Boolean | ||
from .FluidExchange import FluidExchange | ||
from .Interaction import Interaction | ||
|
||
|
||
@abaqus_class_doc | ||
class FluidExchangeActivation(Interaction): | ||
"""The FluidExchnageActivation object is used to define the activation of fluid exchanges within the fluid cavity. | ||
The FluidExchangeActivation object is derived from the Interaction object. | ||
.. note:: | ||
This object can be accessed by:: | ||
import interaction | ||
mdb.models[name].interactions[name] | ||
The corresponding analysis keywords are: | ||
- FLUID EXCHANGE ACTIVATION | ||
.. versionadded:: 2025 | ||
The ``FluidExchangeActivation`` class was added. | ||
""" | ||
|
||
#: A String specifying the repository key. | ||
name: str | ||
|
||
#: A String specifying the name of the step in which the FluidExchange object is created. | ||
createStepName: str | ||
|
||
#: A List specifying fluid exchanges to be activated. | ||
exchanges: List[FluidExchange] | ||
|
||
#: A String specifying the name of the amplitude curve defining a mapping between the inflation time and the actual | ||
#: time. | ||
amplitude: str | ||
|
||
#: A Boolean specifying the vent and leakage area obstruction by contacted surfaces. | ||
isBlockage: Boolean | ||
|
||
#: A Boolean specifying if the flow of fluid is only from the first fluid cavity to the second fluid cavity defined | ||
#: in the FluidExchange object. | ||
isOnlyOutflow: Boolean | ||
|
||
#: A Float specifying the ratio of the actual surface area over the initial surface area at which you want the fluid | ||
#: to leak. | ||
deltaLeakageArea: float | ||
|
||
@abaqus_method_doc | ||
def __init__( | ||
self, | ||
name: str, | ||
createStepName: str, | ||
exchanges: List[FluidExchange], | ||
amplitude: str, | ||
isBlockage: Boolean = OFF, | ||
isOnlyOutflow: Boolean = OFF, | ||
deltaLeakageArea: float = 0.0, | ||
): | ||
"""This method creates an FluidExchangeActivation object. | ||
.. note:: | ||
This function can be accessed by:: | ||
mdb.models[name].FluidExchangeActivation | ||
Parameters | ||
---------- | ||
name | ||
A String specifying the repository key. | ||
createStepName | ||
A String specifying the name of the step in which the FluidExchangeActivation object is created. | ||
exchanges | ||
A List specifying fluid exchanges to be activated. | ||
amplitude | ||
A String specifying the name of the amplitude curve defining a mapping between the inflation time and the actual | ||
time. | ||
isBlockage | ||
A Boolean specifying the vent and leakage area obstruction by contacted surfaces. | ||
isOnlyOutflow | ||
A Boolean specifying if the flow of fluid is only from the first fluid cavity to the second fluid cavity defined | ||
in the FluidExchange object. | ||
deltaLeakageArea | ||
A Float specifying the ratio of the actual surface area over the initial surface area at which you want the fluid | ||
to leak. | ||
Returns | ||
------- | ||
FluidExchangeActivation | ||
A FluidExchangeActivation object. | ||
""" | ||
super().__init__() | ||
|
||
@abaqus_method_doc | ||
def setValues( | ||
self, | ||
exchanges: List[FluidExchange], | ||
amplitude: str, | ||
isBlockage: Boolean = OFF, | ||
isOnlyOutflow: Boolean = OFF, | ||
deltaLeakageArea: float = 0.0, | ||
): | ||
"""This method modifies the FluidExchangeActivation object. | ||
Parameters | ||
---------- | ||
Parameters | ||
---------- | ||
exchanges | ||
A List specifying fluid exchanges to be activated. | ||
amplitude | ||
A String specifying the name of the amplitude curve defining a mapping between the inflation time and the actual time. | ||
isBlockage | ||
A Boolean specifying the vent and leakage area obstruction by contacted surfaces. | ||
isOnlyOutflow | ||
A Boolean specifying if the flow of fluid is only from the first fluid cavity to the second fluid cavity defined in the FluidExchange object. | ||
deltaLeakageArea | ||
A Float specifying the ratio of the actual surface area over the initial surface area at which you want the fluid to leak. | ||
""" | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
from __future__ import annotations | ||
|
||
from typing_extensions import Literal | ||
|
||
from abqpy.decorators import abaqus_class_doc | ||
|
||
from ..UtilityAndView.abaqusConstants import Boolean | ||
from ..UtilityAndView.abaqusConstants import abaqusConstants as C | ||
from .InteractionState import InteractionState | ||
|
||
|
||
@abaqus_class_doc | ||
class FluidExchangeActivationState(InteractionState): | ||
"""The FluidExchangeActivationState object stores the propagating data for a FluidExchangeActivation object. One | ||
instance of this object is created internally by the FluidExchangeActivation object for each step. The instance | ||
is also deleted internally by the FluidExchangeActivation object. | ||
The FluidExchangeActivationState object has no constructor or methods. | ||
The FluidExchangeActivationState object is derived from the InteractionState object. | ||
.. note:: | ||
This object can be accessed by:: | ||
import interaction | ||
mdb.models[name].steps[name].interactionStates[name] | ||
.. versionadded:: 2025 | ||
The ``FluidExchangeActivationState`` class was added. | ||
""" | ||
|
||
#: A SymbolicConstant specifying the propagation state of the exchanges member. Possible values are UNSET, SET, UNCHANGED, and FREED. | ||
exchangesState: Literal[C.UNSET, C.SET, C.UNCHANGED, C.FREED] | ||
|
||
#: A String specifying the name of the FluidExchange object associated with this interaction. | ||
exchanges: str | ||
|
||
#: A SymbolicConstant specifying the propagation state of the amplitude member. Possible values are UNSET, SET, UNCHANGED, and FREED. | ||
amplitudeState: Literal[C.UNSET, C.SET, C.UNCHANGED, C.FREED] | ||
|
||
#: A String specifying the name of the Amplitude object associated with this interaction. | ||
amplitude: str | ||
|
||
#: A SymbolicConstant specifying the propagation state of the isBlockage member. Possible values are UNSET, SET, UNCHANGED, and FREED. | ||
isBlockageState: Literal[C.UNSET, C.SET, C.UNCHANGED, C.FREED] | ||
|
||
#: A Boolean specifying whether to consider vent and leakage area obstruction by contacted surfaces. | ||
isBlockage: Boolean | ||
|
||
#: A SymbolicConstant specifying the propagation state of the isOnlyOutflow member. Possible values are UNSET, SET, UNCHANGED, and FREED. | ||
isOnlyOutflowState: Literal[C.UNSET, C.SET, C.UNCHANGED, C.FREED] | ||
|
||
#: A Boolean specifying whether the flow of fluid is allowed only from the first fluid cavity to the second fluid cavity defined in the FluidExchange object. | ||
isOnlyOutflow: Boolean | ||
|
||
#: A SymbolicConstant specifying the propagation state of the deltaLeakageArea member. Possible values are UNSET, SET, UNCHANGED, and FREED. | ||
deltaLeakageAreaState: Literal[C.UNSET, C.SET, C.UNCHANGED, C.FREED] | ||
|
||
#: A Float specifying the ratio of the actual surface area over the initial surface area at which you want the fluid to leak. | ||
deltaLeakageArea: float | ||
|
||
#: A SymbolicConstant specifying the propagation state of the InteractionState object. Possible values are: | ||
#: | ||
#: - NOT_YET_ACTIVE | ||
#: - CREATED | ||
#: - PROPAGATED | ||
#: - MODIFIED | ||
#: - DEACTIVATED | ||
#: - NO_LONGER_ACTIVE | ||
#: - TYPE_NOT_APPLICABLE | ||
#: - INSTANCE_NOT_APPLICABLE | ||
#: - BUILT_INTO_BASE_STATE | ||
status: Literal[ | ||
C.NOT_YET_ACTIVE, | ||
C.CREATED, | ||
C.PROPAGATED, | ||
C.MODIFIED, | ||
C.DEACTIVATED, | ||
C.NO_LONGER_ACTIVE, | ||
C.TYPE_NOT_APPLICABLE, | ||
C.INSTANCE_NOT_APPLICABLE, | ||
C.BUILT_INTO_BASE_STATE, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.