Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Macros for reference.

Finding force and reactions


Fsum,0,cont - for contact
Fsum,0,Both- for reaction forces
Then issue *Get,Par,Fsum,0,Item,component

Nsel,r,loc,,vmin,Vmax,Vinc,Kabs
Here the nodes in this format are always searched in between tolerance so set the tolerance first by using SELTOL,Tol
Seltol,Tol used for selection of nodes within the tolerance values

Writing text Files


*cfopen,Filename,txt
*Vwrite
('Abc' 5x 'fdfd' 10x 'asdlkf')
*Vwrite,Par(1,1),Par(1,2)……..
*Cfclose

Getting node number


Make it on active window
*Get,par,node,0,num,max
*Get,Realn,rcon,,Num,Max
*Get,typen,Etyp,,Num,max

Getting Maximum number of Loadstep


Set,Last
*Get,step,Active,0,Solu,NCMLS !Active corresponds to active set, so to find the max, issue set,last command first to make
that active loadstep and thus getting maximum number of loadsteps.

Max displacement
*Get,node_num,node,0,num,max
*Get,disp,node,node_num,U,X

Max number of load steps/Substeps


*Get,step,Active,0,Solu,NCMLS for load step
*Get,step,Active,0,Solu,NCMSS for substep for active load step

Contour Max or Min in array for load steps


Use plots command Plnsol,S,Eqv or any other and then issue *Get,Reaction(I,2),PLNSOL,0,Max for any contouring max in
array .

You might also like