카테고리 없음2014. 12. 16. 23:42

Below shows the commands for creating a file of ekill commands for a selected set of elements. 

Same idea can be used for ealive. Note that the db does not keep track of ealive/ekill so this needs modified to be cummulative.


! select elements to be killed then use these commands to make

! a file of ekill cmds to be read in the restart

!

*get,ecount,elem,,count

*dim,elst,array,ecount

*vget,elst(1),elem, ,elist

*cfopen,ekill,inp

*vwrite,elst(1)

('ekill,',f8.0)

*cfclose


-------------------------


modified version to test basic logic:


! select elements to be killed then use these commands to make

! a file of ekill cmds to be read in the restart

!

ecount=5

!*get,ecount,elem,,count

*dim,elst,array,ecount

!*vget,elst(1),elem, ,elist

elst(1)=2,4,6,8,15

*cfopen,ekill,inp

*vwrite,elst(1)

('ekill,',f8.0)

*cfclose



output: ekill.inp file


ekill, 2.

ekill, 4.

ekill, 6.

ekill, 8.

ekill, 15.


Can also make CM of Killed elements & then use it to kill them again after RESTART.


----------------------------- ekill 1st step, ealive 2nd step

1.Add a command object under the contact region he wants to kill containing the following commands:

cont=cid

targ=tid


2.Set up Analysis settings for 2 loadsteps.

3.Add two command objects to the Static Structural Environment branch. One for EKILL and one for EALIVE and use the command object details window to assign each of these to be executed right before LS 1 and LS 2 respectively.


EKILL command object should have the following:

esel,s,type,,cont

esel,a,type,,targ

ekill,all

allsel


EALIVE command object should have the following

esel,s,type,,cont

esel,a,type,,targ

ealive,all

allsel


------------------  execute an EKILL on elements that exceed a certain stress level and run a restart


use *VWRITE to write out the list of elements to be killed to an external txt file and then read this file in before executing the restart.






Posted by 오늘보다 나은 내일