Documente Academic
Documente Profesional
Documente Cultură
! Change input parameters. The user defined parameters are listed in a Special
region of this model input file. Each
! user defined parameter has a comment, which indicates that the associated
parameter is in the user defined category.
!
! To change the analysis type, the use has to change the value of P_ANALYSIS_TYPE.
!
! To toggle the presence of supporting effects of running clearance in the pump,
assign 0 or 1 to P_FLAG_HAVE_SEAL.
! To toggle the state of the rotor to be dry or wet in a modal analysis, assign 0
or 1 to P_FLAG_DRY.
!
! It is notable that for modal analysis, the range of speed is set by P_NW,
P_RSPEED_BEGIN and P_RSPEED_END. For
! unbalanced response analysis, the range of speed is set by P_NSUBSTEP,
P_HARMIC_F1 and P_HARMIC_F2.
!
! In the Ansys APDL environment, issue the following menu commands:
! File->Read input from ...
! Then choose this file to run.
!
! For modal analysis, the results will be written in the files with the names
'ModeAnalysis_Loop.dat' and
! 'MA_Damp_Loop.dat' located in the current working directory. They are the mode
frequency result and damping factor
! result, respectively.
!
! There are several columns in 'ModeAnalysis_Loop.dat'. The actual number of
columns is defined by the user defined
! parameter 'P_NBF'. Each value in this file is a mode frequency. The first row is
the result of the first rotating
! speed, and the last row is the result of the last rotating speed. The user should
finish the task to find the possible
! critical speeds.
!
! For 'MA_Damp_Loop.dat', the data is arranged in the same way as
'ModeAnalysis_Loop.dat'.
!
! Author
! ======
!
! HU Yaoyu <huyaoyu@sjtu.edu.cn>
!
! Affiliation
! ===========
!
! Shanghai Jiao Tong University, Shanghai, P.R.China
!
! Date
! ====
!
! Created: 2017-02-27
! Modified:
!
! Change log
! ==========
!
! (No changes)
!
! Copy right
! ==========
!
! This file is the production from the scientific researches conducted by the
authors. It is owned by the authors and
! the affiliations the authors belong to.
!
! P_ANALYSIS_TYPE = C_ANALYSIS_TYPE_MODAL
P_ANALYSIS_TYPE = C_ANALYSIS_TYPE_UNB_RES
/PREP7
P_SPEED_STEP_SIZE = (P_RSPEED_END-P_RSPEED_BEGIN)/(P_NW-1)
*DO, I, 1, P_NW
P_SPIN(I) = P_RSPEED_BEGIN+(I-1)*P_SPEED_STEP_SIZE
*ENDDO
P_NRADII = P_NELEMENTS
! outer radii array
*DIM, P_ORADIUS, ARRAY, P_NRADII
P_ORADIUS(1) = 0.0150
P_ORADIUS(2) = 0.0225
P_ORADIUS(3) = 0.0225
P_ORADIUS(4) = 0.0225
P_ORADIUS(5) = 0.0225
P_ORADIUS(6) = 0.0225
P_ORADIUS(7) = 0.0225
P_ORADIUS(8) = 0.0225
P_ORADIUS(9) = 0.0450
P_ORADIUS(10) = 0.0450
P_ORADIUS(11) = 0.0500
P_ORADIUS(12) = 0.0500
P_ORADIUS(13) = 0.0500
P_ORADIUS(14) = 0.0500
P_ORADIUS(15) = 0.0500
P_ORADIUS(16) = 0.0450
P_ORADIUS(17) = 0.0450
P_ORADIUS(18) = 0.0350
P_ORADIUS(19) = 0.0150
ET, 3, MASS21
KEYOPT, 3, 1, 0
KEYOPT, 3, 2, 0
KEYOPT, 3, 3, 2
P_MASS_REAL(1) = 1
P_MASS_REAL(2) = 2
! coupling
R, P_MASS_REAL(2), 2.6, 2.6, 2.6, 3.91e-3, 2.59e-3, 2.59e-3
P_MASS_NODE(2) = 20
P_BEARING_REAL(1) = 21
P_BEARING_REAL(2) = 22
! Bearing tables
! The No.1 bearing/seal :
*DIM, CYY_1, table, 10, 1, 1, omegs
CYY_1(1,0) = +3.141593e+01, +9.424778e+01, +1.570796e+02, +2.199115e+02,
+2.827433e+02, +3.455752e+02, +4.084070e+02, +4.712389e+02, +5.340707e+02,
+5.969026e+02
CYY_1(1,1) = +2.196985e+01, +7.312787e+01, +1.309065e+02, +1.919895e+02,
+2.551221e+02, +3.196643e+02, +3.852426e+02, +4.516186e+02, +5.186302e+02,
+5.861620e+02
! == 1.5 == geometry
P_LAST_ROTOR_NODE = 37
! rotor elements
TYPE, 1
MAT, 1
*DO, I, 1, P_NRADII
SECNUM, I
E, I, I+1
*ENDDO
! mass elements
TYPE, 2
*DO, I, 1, P_NMASSES
REAL, P_MASS_REAL(I)
E, P_MASS_NODE(I)
*ENDDO
! bearing elements
TYPE, 11
*DO, I, 1, P_NBEARINGS
REAL, P_BEARING_REAL(I)
E, P_BEARING_NODE(I,2), P_BEARING_NODE(I,1)
*ENDDO
! element component
CM, PC_ROTOR, ELEM
FINI
/SOLU
! The stiffness should be infinity when calculate the dry modal frequency, API610
11th.
*IF, P_FLAG_DRY, EQ, 1, THEN
*DO, I, 1, P_NBEARINGS
D, P_BEARING_NODE(I,1), UY
D, P_BEARING_NODE(I,1), UZ
*ENDDO
*ENDIF
! == 2.4. Solve
/PREP7
! set the mass values according to the current rotating speed
*IF, P_FLAG_HAVE_SEAL, EQ, 1, THEN
R, P_MASS_REAL_SEAL(1), MXX_1(P_OMEGA)
*ENDIF
/POST1
! *CFOPEN, ModalAnalysis_Loop, dat
*MWRITE, P_MODAL_FREQ(1,1), ModalAnalysis_Loop, dat, , JIK, P_NBF, P_NW, 1
%G %G %G %G
P_HARMIC_STEP = (P_HARMIC_F2-P_HARMIC_F1)/(P_NSUBSTEP)
*DIM, P_AMP, ARRAY, P_NSUBSTEP
*DO, I, 1, P_NSUBSTEP
/PREP7
P_MYOMEGA = (P_HARMIC_F1+(I-1)*P_HARMIC_STEP)*6.28
/SOLU
/OUT, SCRATCH
CORIOLIS, ON, , , ON
SOLVE
FINI
/POST26
NSOL, 2, P_UNBAL_NODE, U, Y, UY
NSOL, 3, P_UNBAL_NODE, U, Z, UZ
REALVAR, 4, 2, , , UYR
REALVAR, 5, 3, , , UZR
PROD, 6, 4, 4, , UYR_2
PROD, 7, 5, 5, , UZR_2
ADD, 8, 6, 7, , UYR_2+UZR_2
SQRT, 9, 8, , , AMPL12
VGET, P_AMP(I), 9,
FINI
*ENDDO
/POST26
*CFOPEN, HarmonicResponse_Loop, dat
*VWRITE, P_AMP(1)
%G
*ENDIF