Harmonic Analsys – Low frequency response not matching expected results
-
-
March 31, 2025 at 11:48 pm
jesusepp
SubscriberGreetings,
I set up a simple harmonic simulation in MAPDL of a model of a block that is excited from one end with a harmonic displacement in the Z direction (1 meter amplitude), and I am recording the frequency response function of a node in its tip. If I am imposing a harmonic displacement in one end, logic tells that the displacement frequency response of the opposite end should have the same amplitude for a 0 Hz or very low frequency (below the first resonance of the structure). Nonetheless, I am not getting such a response, I am obtaining a zero-displacement response that increases linearly with frequency, which does not have a physical meaning for the presented problem. What could be the problem? I tried the same setup using the regular ANSYS Mechanical interface, and the results of displacement at low frequencies do match the imposed excitation, which indicates that there is a problem in the APDL script.
The code I used is the following:
!!!!!!!!!!!!!!!!!!!!!!!!
FINISH Â Â Â Â Â Â Â Â Â ! Finish any possible active processor/CLEAR Â Â Â Â Â Â Â Â Â ! Clear all previous information running on the program/TITLE,Test - Harmonic Analysis! -------- Model Creation Processor initialization --------/PREP7ET,1,186 Â Â Â Â Â Â Â Â Â Â ! SOLID186 Structural solid - Brick (20-Node, 3 Dof per node UX,UY,UZ)MP,EX,1,205e9 Â Â Â Â Â Â Â ! Elastic modulus [Pa]MP,NUXY,1,0.3 Â Â Â Â Â Â Â ! Minor Poisson ratio on XYMP,DENS,1,7890 Â Â Â Â Â Â Â ! Mass density [kg/m^3]BLOCK,0,34e-3,0,1e-3,0,0.73e-3 Â Â Â ! Main geometryALLSEL! Meshing processMSHAPE,0 Â Â Â Â Â Â ! Quadrilateral mesh (1 for tetrahedral elements)MSHKEY,1 Â Â Â Â Â Â ! Free meshingALLSELMAT,1 Â Â Â Â Â Â Â ! Substructral materialTYPE,1 Â Â Â Â Â Â Â ! Structural SolidsVMESH,ALL Â Â Â Â Â ! Mesh selected componentALLSELNUMMRG,ALL,T_1*1e-5ALLSEL Â Â Â Â Â Â Â Â Â Â Â ! Default to select all componentsNPLOT,1 Â Â Â Â Â Â Â Â Â Â ! Plot nodes in GUIFINISH/SOLUANTYPE,HARMIC Â Â Â ! Analysis type -> Harmonic (Coupled field)HROPT,AUTO Â Â Â Â Â ! Type of solver - Full for displacement-based excitationsNSUBST,20 Â Â Â Â Â ! Number of frequency points to studyHARFRQ,0,10 Â Â Â Â ! Frequency rangeDMPSTR,0.001 Â Â Â Â ! Structural damping coefficient! Harmonic DisplacementNSEL,s,loc,x,0D,ALL,UZ,1D,ALL,UX,0D,ALL,UY,0ALLSELSOLVEFINISH! COMPUTE THE FRF OF A SINGLE NODE/POST26NUMVAR,10NSEL,s,LOC,z,0.73e-3*GET,xloc,NODE,0,MXLOC,X*GET,yloc,NODE,0,MNLOC,YNSEL,r,LOC,x,xlocNSEL,r,LOC,y,ylocnewNode = NDNEXT(0)NSOL,2,newNode,U,ZPLVAR,2 Â Â Â Â ! DisplacementPRVAR,2FINISH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!ÂAdditionally, this is a picture of my output FRF. Vertical axis is the displacement in [m] and horizontal axis is the frequency in [Hz]ÂFor the same setup in Mechanical UI, I obtained the following results, correctly representing the expected behavior: -
April 1, 2025 at 12:29 pm
Ashish Khemka
Forum ModeratorHello,
In Ansys Mechanical, go to Solution, right click, open solver files directory, and look for the ds.dat file. It is an input to the MAPDL solver, and you can compare the difference between input code you have used and the one that Mechanical is generating.Â
Regards,
Ashish Khemka
-
April 1, 2025 at 2:24 pm
dlooman
Ansys EmployeeThe (not very good) default in APDL is KBC,0 which ramps the unit displacement from zero vs frequency. In Mechanical, KBC,1 is set by default.
-
April 1, 2025 at 3:56 pm
jesusepp
SubscriberI applied the adjustment (KBC,1), and now the results match! Thanks for the support
-
-
- The topic ‘Harmonic Analsys – Low frequency response not matching expected results’ is closed to new replies.
-
3572
-
1193
-
1076
-
1063
-
952
© 2025 Copyright ANSYS, Inc. All rights reserved.