Knowsnotech
Mechanical
- Jul 2, 2014
- 3
I'm running a modal analysis on a rotor with "a lot" of blades. Hence there are a to of mode shapes. Unfortunately it is impossible (Due to weird geometry) to make a simple cyclic model. So what I'm trying to do is run a modal analysis, up to maybe 13000 Hz and gather the z deflection of each blade (If we are dealing in cylindrical coordinates, which happens to be X in my current model. You'll see in the code below) as well as its relative location. I'm no APDL expert so this is the code I've run
where PointsAll is a named selection for the tip of each blade.
Some of the code may not even be nesecary but it seems to work and I'm afraid touching it will break it further. Obvious reasons why this code will not work is the output file name does not change in the DO loop. Also there will be much more modes than just 4. Im asking if anyone knows a command I could replace 4 with, that gives the max number of mode shapes available? something like
So to recap. How do I change the /output,NAME,txt in a DO loop and haw do I set the DO loop to run the max number of modes available.
Any help on this subject would be very much appreciated. And to clarify, I'm pretty decent using Python code so the rest of the analysis was to be done using Python.
Code:
ANTYPE=MODAL
ALLSEL
CMSEL,r,PointsAll
*DO,i,1,4,1
SET,,1
/output,i,txt
PRNSOL,U,X
NLIST
/output,trash,txt
*ENDDO
Some of the code may not even be nesecary but it seems to work and I'm afraid touching it will break it further. Obvious reasons why this code will not work is the output file name does not change in the DO loop. Also there will be much more modes than just 4. Im asking if anyone knows a command I could replace 4 with, that gives the max number of mode shapes available? something like
Code:
finalmode = MODE,LIST
*Do,i,1,finalmode,1
So to recap. How do I change the /output,NAME,txt in a DO loop and haw do I set the DO loop to run the max number of modes available.
Any help on this subject would be very much appreciated. And to clarify, I'm pretty decent using Python code so the rest of the analysis was to be done using Python.