1
1
@connector Flange begin
2
- s (t)
3
- f (t), [connect = Flow]
2
+ s (t), [description = " Absolute position of flange " , unit = u " m " ]
3
+ f (t), [connect = Flow, description = " Cut force into the flange " , unit = u " N " ]
4
4
end
5
5
Base. @doc """
6
6
Flange(;name)
@@ -13,8 +13,8 @@ Base.@doc """
13
13
""" Flange
14
14
15
15
@connector Support begin
16
- s (t)
17
- f (t), [connect = Flow]
16
+ s (t), [description = " Absolute position of the support/housing " , unit = u " m " ]
17
+ f (t), [connect = Flow, description = " Cut force into the flange " , unit = u " N " ]
18
18
end
19
19
Base. @doc """
20
20
Support(;name)
@@ -36,16 +36,16 @@ Partial model for the compliant connection of two translational 1-dim. flanges.
36
36
- `s_rel`: [m] Relative distance (= flange_b.s - flange_a.s). It accepts an initial value, which defaults to 0.0.
37
37
- `f`: [N] Force between flanges (= flange_b.f). It accepts an initial value, which defaults to 0.0.
38
38
"""
39
- @mtkmodel PartialCompliant begin # (; name, s_rel_start = 0.0, f_start = 0.0)
39
+ @mtkmodel PartialCompliant begin
40
40
@components begin
41
41
flange_a = Flange ()
42
42
flange_b = Flange ()
43
43
end
44
44
@variables begin
45
45
v_a (t) = 0.0
46
46
v_b (t) = 0.0
47
- s_rel (t) = 0.0
48
- f (t) = 0.0
47
+ s_rel (t) = 0.0 , [description = " Relative distance " , unit = u " m " ]
48
+ f (t) = 0.0 , [description = " Force between flanges " , unit = u " N " ]
49
49
end
50
50
@equations begin
51
51
D (flange_a. s) ~ v_a
61
61
62
62
Partial model for the compliant connection of two translational 1-dim. flanges.
63
63
64
- # Parameters:
65
-
66
- - `s_rel_start`: [m] Initial relative distance
67
- - `v_rel_start`: [m/s] Initial relative linear velocity (= der(s_rel))
68
- - `a_rel_start`: [m/s²] Initial relative linear acceleration (= der(v_rel))
69
- - `f_start`: [N] Initial force between flanges
64
+ # States:
70
65
71
- # States:
72
-
73
- - `s_rel`: [m] Relative distance (= flange_b.phi - flange_a.phi)
74
- - `v_rel`: [m/s] Relative linear velocity (= der(s_rel))
75
- - `a_rel`: [m/s²] Relative linear acceleration (= der(v_rel))
66
+ - `delta_s`: [m]
76
67
- `f`: [N] Force between flanges (= flange_b.f)
77
68
"""
78
69
@mtkmodel PartialCompliantWithRelativeStates begin
@@ -82,7 +73,7 @@ Partial model for the compliant connection of two translational 1-dim. flanges.
82
73
end
83
74
@variables begin
84
75
delta_s (t) = 0.0
85
- f (t) = 0.0
76
+ f (t) = 0.0 , [description = " Force between flanges " , unit = u " N " ]
86
77
end
87
78
@equations begin
88
79
delta_s ~ flange_a. s - flange_b. s
@@ -107,7 +98,8 @@ Partial model for a component with one translational 1-dim. shaft flange and a s
107
98
@component function PartialElementaryOneFlangeAndSupport2 (; name, use_support = false )
108
99
@named flange = Flange ()
109
100
sys = [flange]
110
- @variables s_support (t)
101
+ @variables s_support (t),
102
+ [description = " Absolute position of support flange" , unit = u " m" ]
111
103
if use_support
112
104
@named support = Support ()
113
105
eqs = [support. s ~ s_support
@@ -136,7 +128,9 @@ Partial model for a component with two translational 1-dim. flanges and a suppor
136
128
@named flange_a = Flange ()
137
129
@named flange_b = Flange ()
138
130
sys = [flange_a, flange_b]
139
- @variables s_support (t) = 0.0
131
+ @variables function s_support (t)
132
+ 0.0 , [description = " Absolute position of support flange" , unit = u " m" ]
133
+ end
140
134
if use_support
141
135
@named support = Support ()
142
136
eqs = [support. s ~ s_support
0 commit comments