Xi定义方向
力:拉伸(+)或压缩(-)
应变和力的方向定义相同
如右图,X方向的应变就是沿着长度方向的相对位移(EA=1.0)
对于0长度的CBUSH
用坐标系定义单元方向
力F= Ke*(Ub-Ua)
如果Ub有正向位移,就是分离,也就是正向应变是分离
悬臂板结构,测量两块板之间的相对位移(间隙)
结构受惯性载荷,方向和Z轴负方向一致的重力加速度1g,两块板的两端都为固定约束
在两块板之间创建如图所示的CBUSH
CBUSH有长度,所以连接CBUSH单元的节点顺序不重要
PBUSH设置6个方向的k=0.0,无刚度
请求输出STRAIN=ALL或STRAIN=set
id
CBUSH X方向的应变可以直接测到
正=分离
负=闭合
优化目标:重量最小 设计变量:板厚T1,
T2
约束条件:两块板的节点之间至少保持0.9”的间隙
方法一:约束相对位移
DESOBJ(min)=101 $ minimize
weight
DESSUB=201 $ keep rel disp
>=-0.1
DESVAR 1
T1
.1
.06
1.0
DVPREL1 11
PSHELL 1
T
.01
1.0
1
1.0
DESVAR 2
T2
.1
.06
1.0
DVPREL1 12
PSHELL 2
T
.01
1.0
2
1.0
$ pbush strain-x = item code
2
$ response strain-x for all PBUSH with
ID=500
DRESP1 101
WEIGHT
WEIGHT
DRESP1 102
PB500
STRAIN PBUSH
2
500
DCONSTR 201
102
-0.1
允许相对位移不能小于-0.1
方法二:约束间隙
DESOBJ(min)=101 $ minimize weight
DESSUB=201 $ clearance >=0.9
$ response strain-x for all PBUSH with ID=500
DRESP1 101
WEIGHT WEIGHT
DRESP1 102
PB500 STRAIN
PBUSH
2
500
DRESP2 150
ACTDISP 99
DRESP1 102
$ keep total distance greater than 0.9
$ positive rel_disp => separating
$ negative rel_disp => closing
$ actual_distance = initial_distance + rel_disp
DEQATN 99
F(reldisp)= 1.+reldisp
DCONSTR 201 150
0.9
最小间隙为0.9
优化结果
以上两种方法结果相同
重量
初始:
5.176E-4
优化后: 3.198E-4
T1, T2
初始:
0.1, 0.1
优化后: 0.063588, 0.6000
相对位移 = PBUSH X方向应变
[间隙]
初始: –0.2 [0.8]
优化后:–0.1 [0.9]
附有示例中使用两种不同方法的Nastran模型文件如下:
two_boards_200a.dat和two_boards_200a2.dat
具体信息如下:
two_boards_200a.dat
INIT MASTER(S)
$
ID MSC, SWRO
TIME 100
DIAG 5,6,8,56
SOL 200
CEND
$
TITLE = CANTILEVERED BEAM MADE OF PLATES
SUBTITLE = CBUSH RELATIVE DISPLACMENT EXAMPLE
$
$
$ CBUSH STRAIN OUTPUT = (CBUSH_DISP)*EA for translations
$ FOR NONZERO LENGTH CBUSH USING GO or Xi for ORIENTATION:
$
+ FORCE = tension
$
- FORCE = compression
$
+ DISP
= separating
$
- DISP
= closing
$ OBJECTIVE
$
minimize weight
$ VARIABLES
$
t1, t2
$ CONSTRAINTS
$
do not allow boards to come closer than .9 inches
under load
$
initial separation = 1.0 inches
$
therefore constrain such that rel disp
>-.1
$
$
DISPL=ALL
STRAIN=ALL
$
SPC=1
$
DESOBJ(min)=101 $ minimize weight
DESSUB=201 $ keep separation >=-0.1
$
SUBCASE
1
analysis=statics
load=111
subtitle=compressive
BEGIN BULK
DESVAR
1
T1
.1
.06
1.0
DVPREL1 11
PSHELL
1
T
.01
1.0
1
1.0
DESVAR
2
T2
.1
.06
1.0
DVPREL1 12
PSHELL
2
T
.01
1.0
2
1.0
$ pbush strain-x = item code 2
$ response strain-x for all PBUSH with ID=500
DRESP1
101
WEIGHT
WEIGHT
DRESP1
102
PB500
STRAIN
PBUSH
2
500
DCONSTR 201
102
-0.1
doptprm p1
1
p2
15
DESMAX
20
$.......2.......3.......4.......5.......6.......7.......8.......9.......0
param,post,-1
$ create dummy springs to grids between the two plates to measure
rel disp
$ this reported as PBUSH strains
$ reverse grids to test to see if that makes difference on
forces
$ QRG says compression is negative, tension positive
$ when GO or Xi for orientation
CBUSH
501
500
110
301
1.
CBUSH
502
500
111
302
1.
CBUSH
503
500
401
210
1.
CBUSH
504
500
402
211
1.
PBUSH
500
K
$.......2.......3.......4.......5.......6.......7.......8.......9.......0
$
$
Cantilevered Beam Made of Plates Model
$
$
\201 202
203
204
205
206
207
208
209
210
211
$
Y
\*----*----*----*----*----*----*----*----*----*----*
$
^
\|
|
|
|
|
|
|
|
|
|
|
$
|
\| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
|
$
|
\|
|
|
|
|
|
|
|
|
|
|
$
+--->X
\*----*----*----*----*----*----*----*----*----*----*
$
\101 102
103
104
105
106
107
108
109
110
111
$
$
401
402
$
*----*-//*411
$
|
|
$
| 11 |
$
|
|
$
*----*-//*311
$
301
302
$.......2.......3.......4.......5.......6.......7.......8.......9.......0
spc1,1,123456,101,201,311,411
GRID
101
0.
0.
0.
=
*1
=
*1.
==
=9
GRID
201
0.
1.
0.
=
*1
=
*1.
==
=9
$
CQUAD4
1
1
101
102
202
201
=
*1
=
*1
*1
*1
*1
=8
GRID
301
9.
0.
-1.
=
*1
=
*1.
==
=9
GRID
401
9.
1.
-1.
=
*1
=
*1.
==
=9
$
CQUAD4
11
2
301
302
402
401
=
*1
=
*1
*1
*1
*1
=8
MAT1
1
10.E6
.3
2.588-4 1.E-6
0.
PSHELL
1
1
.1
1
PSHELL
2
1
.1
1
$.......2.......3.......4.......5.......6.......7.......8.......9.......0
$ Loads for SOL 101/Linear Statics
GRAV
111
0
386.1
0.
0.
-100.
ENDDATA
two_boards_200a2.dat
INIT MASTER(S)
$
ID MSC, SWRO
TIME 100
DIAG 5,6,8,56
SOL 200
CEND
$
TITLE = CANTILEVERED BEAM MADE OF PLATES
SUBTITLE = CBUSH RELATIVE DISPLACMENT EXAMPLE
$
$
$ CBUSH STRAIN OUTPUT = (CBUSH_DISP)*EA for translations
$ FOR NONZERO LENGTH CBUSH USING GO or Xi for ORIENTATION:
$
+ FORCE = tension
$
- FORCE = compression
$
+ DISP
= separating
$
- DISP
= closing
$ OBJECTIVE
$
minimize weight
$ VARIABLES
$
t1, t2
$ CONSTRAINTS
$
do not allow boards to come closer than .9 inches
under load
$
initial separation = 1.0 inches
$
therefore constrain such that rel disp
>-.1
$
slight twist: write equation for the 0.9
clearance requirement
$
$
DISPL=ALL
STRAIN=ALL
$
SPC=1
$
DESOBJ(min)=101 $ minimize separation over all measurements
DESSUB=201 $ maintain clearance >0.9
$
SUBCASE
1
analysis=statics
load=111
subtitle=compressive
BEGIN BULK
DESVAR
1
T1
.1
.06
1.0
DVPREL1 11
PSHELL
1
T
.01
1.0
1
1.0
DESVAR
2
T2
.1
.06
1.0
DVPREL1 12
PSHELL
2
T
.01
1.0
2
1.0
$ pbush strain-x = item code 2
$ response strain-x for all PBUSH with ID=500
DRESP1
101
WEIGHT
WEIGHT
DRESP1
102
PB500
STRAIN
PBUSH
2
500
DRESP2
150
ACTDISP 99
DRESP1
102
$ keep total distance greater than 0.9
$ positive rel_disp => separating
$ negative rel_disp => closing
$ actual_distance = initial_distance + rel_disp
DEQATN
99
F(reldisp)= 1.+reldisp
DCONSTR 201
150
0.9
doptprm p1
1
p2
15
DESMAX
20
$.......2.......3.......4.......5.......6.......7.......8.......9.......0
param,post,-1
$ create dummy springs to grids between the two plates to measure
rel disp
$ this reported as PBUSH strains
$ reverse grids to test to see if that makes difference on
forces
$ QRG says compression is negative, tension positive
$ when GO or Xi for orientation
CBUSH
501
500
110
301
1.
CBUSH
502
500
111
302
1.
CBUSH
503
500
401
210
1.
CBUSH
504
500
402
211
1.
PBUSH
500
K
$.......2.......3.......4.......5.......6.......7.......8.......9.......0
$
$
Cantilevered Beam Made of Plates Model
$
$
\201 202
203
204
205
206
207
208
209
210
211
$
Y
\*----*----*----*----*----*----*----*----*----*----*
$
^
\|
|
|
|
|
|
|
|
|
|
|
$
|
\| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
|
$
|
\|
|
|
|
|
|
|
|
|
|
|
$
+--->X
\*----*----*----*----*----*----*----*----*----*----*
$
\101 102
103
104
105
106
107
108
109
110
111
$
$
401
402
$
*----*-//*411
$
|
|
$
| 11 |
$
|
|
$
*----*-//*311
$
301
302
$.......2.......3.......4.......5.......6.......7.......8.......9.......0
spc1,1,123456,101,201,311,411
GRID
101
0.
0.
0.
=
*1
=
*1.
==
=9
GRID
201
0.
1.
0.
=
*1
=
*1.
==
=9
$
CQUAD4
1
1
101
102
202
201
=
*1
=
*1
*1
*1
*1
=8
GRID
301
9.
0.
-1.
=
*1
=
*1.
==
=9
GRID
401
9.
1.
-1.
=
*1
=
*1.
==
=9
$
CQUAD4
11
2
301
302
402
401
=
*1
=
*1
*1
*1
*1
=8
MAT1
1
10.E6
.3
2.588-4 1.E-6
0.
PSHELL
1
1
.1
1
PSHELL
2
1
.1
1
$.......2.......3.......4.......5.......6.......7.......8.......9.......0
$ Loads for SOL 101/Linear Statics
GRAV
111
0
386.1
0.
0.
-100.
ENDDATA