Anda di halaman 1dari 10

WORKSHOP # 12

Calculate the Element Strain Energy Due to the


DMIG Entries

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 1

Workshop Objectives
Write a DMAP to calculate the strain energy due to the DMIG entries

Software Version
MSC Nastran 2012

Files Required
wkshop12a.dat
wkshop12b.dat

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 2

Suggested Steps
1.

Run wkshp12a.dat requesting the strain energy using the ESE command.
This is a 2-bar element model

2.

The file wkshp12b.dat has the DMIG. Write a DMAP that calculates the
strain energy due to the DMIG entries

3.

The following steps provide some guidelines


Save the K2JJ matrix
Create a Subdmap that calculates the strain energy calculation

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 3

Workshop 12A ESE with 2-bar elements


Wkshp12a.dat
$
$

soln12a.dat - baseline bar model

$
sol 103
diag 8
cend
title = two bar example
spc = 100
disp = all
method = 100
ese = all
$
begin bulk
cbar

11

99

cbar

12

99

conm2 21

1.5

conm2 22

1.5

eigrl 100

grdset

1345

grid

0.

0.

0.

grid

10.

0.

0.

grid

20.

0.

0.

grid

99

10.

0.

100.

mat1

3.+7

.32

param wtmass

.00259

pbar

1.0

spc1

100

123456

.0833

.0833

.1667

enddata

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 4

Workshop 12A ESE with 2-bar elements


Strain Energy Output

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 5

SOLUTION FOR WORKSHOP 12B

Element Strain Energy Calculation for the DMIG

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 6

Workshop 12B ESE Calculation for DMIG


sol 103
diag 8
COMPILE SEMG1
ALTER 'add.*k2jj' $
CALL DBSTORE K2JJ,,,,//0/0/'

'/0 $

COMPILE SEDRCVR
ALTER 'OFP.*ONRGY1.*cardno'(1,-1) $
CALL STRNENRG UG // $
$

COMPILE STRNENRG
SUBDMAP STRNENRG UG // $
$
TYPE

PARM,,I,N,NUMMODES,NVALS $

TYPE

PARM,,RS,N,REX$

TYPE

PARM,,RS,Y,TINY

$
$ DMIG Processing
$
CALL DBFETCH /K2JJ,,,,/0/0/0/0/0 $
PARAML

K2JJ//'PRESENCE'////S,N,NOK2JJ $

$
IF (NOK2JJ <> -1) THEN
matprn k2jj // $
SMPYAD

UG,K2JJ,UG,,,/ESEK2JJ/3////1/0/0/ $

$
matprn esek2jj// $
PARAML
$

ESEK2JJ//'trailer'/1/S,N,NVALS $

NUMMODES = 1 $
DO WHILE (NUMMODES <= NVALS) $
PARAML ESEK2JJ//'DMI'/NUMMODES/NUMMODES/S,N,REX $
REX = 0.5 * REX $
MESSAGE //'-------------------------------------------------------' $
MESSAGE //'MODE Number '/NUMMODES $
MESSAGE //'Strain Energy of DMIG'/REX $
MESSAGE //' ' $

MESSAGE //'-------------------------------------------------------' $
NUMMODES = NUMMODES + 1 $
ENDDO
ENDIF $ NOK2JJ
RETURN
END $
CEND

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 7

Workshop 12B ESE Calculation for DMIG


title = two bar example
subtitle = replace one bar with dmig
spc = 100
disp = all
method = 100
k2gg = stiff
ese = all
$
begin bulk
cbar

12

conm2 21

conm2 22

dmig

GJ

CJ

G1

C1

A1

stiff

29988.

149940.

-29988.

149940.

stiff

99

1.5
1.5

$
$DMIG NAME
$
dmig

dmig

stiff
2

dmig
dmig

1
2

6
-149940.

stiff

-149940.

stiff

eigrl 100

1
6

999600.

499800.
2
2

2
6

29988.

999600.

grdset

1345

grid

0.

0.

0.

grid

10.

0.

0.

grid

20.

0.

0.

grid

99

10.

0.

100.

mat1

3.+7

.32

param wtmass

.00259

pbar

1.0

spc1

100

123456

.0833

.0833

.1667

enddata

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 8

Workshop 12B ESE Calculation for DMIG


Results

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 9

NAS110, Workshop 12, December 2011


Copyright 2011 MSC.Software Corporation

w12- 10

Anda mungkin juga menyukai