This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
FluidExchangeProperty.py
142 lines (126 loc) · 6.72 KB
/
FluidExchangeProperty.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
from abaqusConstants import *
from .ContactProperty import ContactProperty
class FluidExchangeProperty(ContactProperty):
"""The FluidExchangeProperty object is an interaction property that defines the fluid
exchange property for a flow between two fluid cavities or between a fluid cavity and
its environment.
The FluidExchangeProperty object is derived from the InteractionProperty object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import interaction
mdb.models[name].interactionProperties[name]
The corresponding analysis keywords are:
- FLUID EXCHANGE PROPERTY
"""
def __init__(
self,
name: str,
dataTable: tuple,
definition: SymbolicConstant = BULK_VISCOSITY,
pressureDependency: Boolean = OFF,
temperatureDependency: Boolean = OFF,
fieldDependencies: int = 0,
):
"""This method creates a FluidExchangeProperty object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].FluidExchangeProperty
Parameters
----------
name
A String specifying the interaction property repository key.
dataTable
A sequence of sequences of Floats specifying the viscous and hydrodynamic resistance
coefficients when *definition*=BULK_VISCOSITY. Each sequence contains the following
data:
- The viscous resistance coefficient.
- The hydrodynamic resistance coefficient.
- The average absolute pressure, if the data depend on pressure.
- The average temperature, if the data depend on temperature.
- The value of the first field variable, if the data depend on field variables.
- The value of the second field variable.
- Etc.
Alternatively, the sequence data may specify the mass flow rate. This is applicable only
when *definition*=MASS_FLUX. In this form, only one sequence is specified and that
sequence contains the following data:
- The mass flow rate per unit area.
Alternatively, the sequence data may specify the mass rate leakage. This is applicable
only when *definition*=MASS_RATE_LEAK. Each sequence contains the following data:
- The absolute value of the mass flow rate per unit area. (The first tabular value
entered must always be zero.)
- The absolute value of the pressure difference. (The first tabular value entered must
always be zero.)
- The average absolute pressure, if the data depend on pressure.
- The average temperature, if the data depend on temperature.
- The value of the first field variable, if the data depend on field variables.
- The value of the second field variable.
- Etc.
Alternatively, the sequence data may specify the volume flow rate. This is applicable
only when *definition*=VOL_FLUX. In this form, only one sequence is specified and that
sequence contains the following data:
- The volumetric flow rate per unit area.
Alternatively, the sequence data may specify the volume rate leakage. This is applicable
only when *definition*=VOL_RATE_LEAK. Each sequence contains the following data:
- The absolute value of the volumetric flow rate per unit area. (The first tabular value
entered must always be zero.)
- The absolute value of the pressure difference. (The first tabular value entered must
always be zero.)
- The average absolute pressure, if the data depend on pressure.
- The average temperature, if the data depend on temperature.
- The value of the first field variable, if the data depend on field variables.
- The value of the second field variable.
- Etc.
definition
A SymbolicConstant specifying the type of fluid exchange property to be defined.
Possible values are BULK_VISCOSITY, MASS_FLUX, MASS_RATE_LEAK, VOL_FLUX, and
VOL_RATE_LEAK. The default value is BULK_VISCOSITY.
pressureDependency
A Boolean specifying whether the data will have pressure dependency. This argument is
applicable only when *definition*=BULK_VISCOSITY, or when *definition*=MASS_RATE_LEAK,
or when *definition*=VOL_RATE_LEAK. The default value is OFF.
temperatureDependency
A Boolean specifying whether the data will have temperature dependency. This argument is
applicable only when *definition*=BULK_VISCOSITY, or when *definition*=MASS_RATE_LEAK,
or when *definition*=VOL_RATE_LEAK. The default value is OFF.
fieldDependencies
An Int specifying the number of field variable dependencies in the data. This argument
is applicable only when *definition*=BULK_VISCOSITY, or when
*definition*=MASS_RATE_LEAK, or when *definition*=VOL_RATE_LEAK. The default value is 0.
Returns
-------
A FluidExchangeProperty object.
"""
super().__init__(name)
pass
def setValues(
self,
definition: SymbolicConstant = BULK_VISCOSITY,
pressureDependency: Boolean = OFF,
temperatureDependency: Boolean = OFF,
fieldDependencies: int = 0,
):
"""This method modifies the FluidExchangeProperty object.
Parameters
----------
definition
A SymbolicConstant specifying the type of fluid exchange property to be defined.
Possible values are BULK_VISCOSITY, MASS_FLUX, MASS_RATE_LEAK, VOL_FLUX, and
VOL_RATE_LEAK. The default value is BULK_VISCOSITY.
pressureDependency
A Boolean specifying whether the data will have pressure dependency. This argument is
applicable only when *definition*=BULK_VISCOSITY, or when *definition*=MASS_RATE_LEAK,
or when *definition*=VOL_RATE_LEAK. The default value is OFF.
temperatureDependency
A Boolean specifying whether the data will have temperature dependency. This argument is
applicable only when *definition*=BULK_VISCOSITY, or when *definition*=MASS_RATE_LEAK,
or when *definition*=VOL_RATE_LEAK. The default value is OFF.
fieldDependencies
An Int specifying the number of field variable dependencies in the data. This argument
is applicable only when *definition*=BULK_VISCOSITY, or when
*definition*=MASS_RATE_LEAK, or when *definition*=VOL_RATE_LEAK. The default value is 0.
"""
pass