This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
FluidInflatorProperty.py
144 lines (126 loc) · 5.52 KB
/
FluidInflatorProperty.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
143
144
from .ContactProperty import ContactProperty
class FluidInflatorProperty(ContactProperty):
"""The FluidInflatorProperty object is an interaction property that defines a fluid
inflator property to model the deployment of an airbag. The inflator property defines
the mass flow rate and temperature as a function of inflation time either directly or by
entering tank test data. It also defines the mixture of gases entering the fluid cavity.
The FluidInflatorProperty 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 table data for this object are:
- If *definition*=DUAL PRESSURE, the table data specify the following:
- Inflation time.
- Inflator pressure.
- Tank pressure.
- If *definition*=PRESSURE AND MASS, the table data specify the following:
- Inflation time.
- Inflator pressure.
- Inflator mass flow rate.
- If *definition*=TANK TEST, the table data specify the following:
- Inflation time.
- Inflator gas temperature.
- Tank pressure.
- If *definition*=TEMPERATURE AND MASS, the table data specify the following:
- Inflation time.
- Inflator gas temperature.
- Inflator mass flow rate.
The corresponding analysis keywords are:
- FLUID INFLATOR PROPERTY
"""
def __init__(
self,
name: str,
definition: str,
effectiveArea: float,
tankVolume: float,
dischargeCoefficient: float = None,
dataTable: tuple = (),
numFluids: int = None,
mixtureType: str = "",
inflationTime: tuple = (),
fluidbehaviorName: tuple = (),
massFraction: tuple = (),
):
"""This method creates a FluidInflatorProperty object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].FluidInflatorProperty
Parameters
----------
name
A String specifying the interaction property repository key.
definition
A Symbolic constant specifying the method used for modeling the flow characteristics of
inflators. The default value is *definition*=DUAL PRESSURE. The possible values are DUAL
PRESSURE, PRESSURE AND MASS, TANK TEST, and TEMPERATURE AND MASS.
effectiveArea
A Float specifying the total inflator orifice area. This argument is applicable only if
*definition*=DUAL PRESSURE or *definition*=PRESSURE AND MASS.
tankVolume
A Float specifying the tank volume. This argument is applicable only if
*definition*=DUAL PRESSURE or *definition*=TANK TEST.
dischargeCoefficient
A Float specifying the discharge coefficient. This argument is applicable only if
*definition*=DUAL PRESSURE or *definition*=PRESSURE AND MASS.
dataTable
A sequence of sequences of Floats specifying the items described in the "Table data"
section below.
numFluids
An Int specifying the number of gas species used for this inflator.
mixtureType
A Symbolic constant specifying whether to use mass fraction or the molar fraction for a
mixture of ideal gases. The default value is MASS FRACTION. The possible values are MASS
FRACTION or MOLAR FRACTION.
inflationTime
A sequence of sequences of Floats specifying the inflation time.
fluidbehaviorName
A sequence of sequences of Strings specifying fluid behavior names.
massFraction
A sequence of sequences of Floats specifying the mass fraction or the molar fraction
corresponding to entered fluid behavior.
Returns
-------
A FluidInflatorProperty object.
"""
super().__init__(name)
pass
def setValues(
self,
dischargeCoefficient: float = None,
dataTable: tuple = (),
numFluids: int = None,
mixtureType: str = "",
inflationTime: tuple = (),
fluidbehaviorName: tuple = (),
massFraction: tuple = (),
):
"""This method modifies the FluidInflatorProperty object.
Parameters
----------
dischargeCoefficient
A Float specifying the discharge coefficient. This argument is applicable only if
*definition*=DUAL PRESSURE or *definition*=PRESSURE AND MASS.
dataTable
A sequence of sequences of Floats specifying the items described in the "Table data"
section below.
numFluids
An Int specifying the number of gas species used for this inflator.
mixtureType
A Symbolic constant specifying whether to use mass fraction or the molar fraction for a
mixture of ideal gases. The default value is MASS FRACTION. The possible values are MASS
FRACTION or MOLAR FRACTION.
inflationTime
A sequence of sequences of Floats specifying the inflation time.
fluidbehaviorName
A sequence of sequences of Strings specifying fluid behavior names.
massFraction
A sequence of sequences of Floats specifying the mass fraction or the molar fraction
corresponding to entered fluid behavior.
"""
pass