Created
June 24, 2020 06:35
-
-
Save shkiefer/8c9aefc22944b15ec7e7592a60187a7a to your computer and use it in GitHub Desktop.
form matrices and then *get mass properties about CG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fini | |
/sol | |
! prepare element matrices / calculate mass properties | |
irlf,-1 | |
psolve,elform | |
psolve,elprep | |
! get translational mass | |
*get, mass_x, ELEM,0,MTOT,X | |
*get, mass_y, ELEM,0,MTOT,Y | |
*get, mass_z, ELEM,0,MTOT,Z | |
! get cg location | |
*get, cg_x, ELEM,0,MC,X | |
*get, cg_y, ELEM,0,MC,Y | |
*get, cg_z, ELEM,0,MC,Z | |
! get rotational inertia | |
*get, moim_x, ELEM,0,IMC,X | |
*get, moim_y, ELEM,0,IMC,Y | |
*get, moim_z, ELEM,0,IMC,Z | |
*get, moim_xy, ELEM,0,IMC,XY | |
*get, moim_yz, ELEM,0,IMC,YZ | |
*get, moim_zx, ELEM,0,IMC,ZX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment