June 4, 2023 at 9:04 amMd_SalemSubscriber
I am doing a MOGA optimization where some information from modal analysis is required in harmonic analysis, and hence the objective parameter ( energy) is maximized (which is obtained from harmonic analysis). To enforce the optimizer tool to go through the modal analysis first, then the harmonic analysis, I had to Preserve Design Points After DX Run and Retain Data for Each Preserved Design Point, otherwise each new design point will run only the harmonic analysis based on the old data from the modal analysis (not updated) to avoid what is shown in pic1.
This resulted in a huge amount of data. How do I reduce this data knowing that I set the optimization properties (as said previously) to Preserve Design Points After DX Run and Retain Data for Each Preserved Design Point ?
I tried to write the next code in the solution block of Modal analysis as shown in pic 2.
in order to avoid using harmonic analysis and hence enfoce the optimizer to update the Modal analysis and choose no to Preserve Design Points After DX Run , so the preserved data volume is reduced :*GET,Fd,MODE,2,FREQ !extract the needed information from modal analysis*SET,x1,Fd-0.01 ! set target harmonic analysis frequency range*SET,x2,Fd+0.01/PREP7ESEL,S,ENAME,,185D,ALL,UZ,10 ! set the loads for harmonic analysisALLSELHROPT,FULL !start harmonic analysisHROUT,ONLUMPM,0EQSLV, ,0,PSTRES,0HARFRQ,x1,x2NSUBST,20KBC,1*DIM,energy_array,ARRAY,20/POST1i=1my_energy = 0*DO, step, 1,39, 2set,,,,,,,step ! store results for set stepESEL,S,ENAME,,185etable,energy,senessum*get,ST_energy,ssum,,ITEM,energyenergy_array(i)= ST_energy*IF, ST_energy, GT, my_energy, THENmy_energy = ST_energy ! set the objective*ENDIFETABLE,CLEARALLSELi=i+1*ENDDOI recived an error that harmonic analysis cannot be operated in with modal analysis.What do you think I sholud do to reduce the amount of induced data without any deviation form the optimizer from the correct sequence ? And is there any way to use the approach I have shown ?Regards
June 5, 2023 at 1:49 pmChandra SekaranAnsys Employee
So every time you want to run the modal analysis and then follow up with a FULL harmonic solution? May be you can try the below change to your commands.solve ! solve the modal analysisfinish/post1set,first*GET,Fd,MODE,2,FREQ !extract the needed information from modal analysis*SET,x1,Fd-0.01 ! set target harmonic analysis frequency range*SET,x2,Fd+0.01finish/SOLUTIONantype,harmonicHROPT,FULL !start harmonic analysisHROUT,ONLUMPM,0ESEL,S,ENAME,,185D,ALL,UZ,10 ! set the loads for harmonic analysisALLSELEQSLV, ,0,PSTRES,0HARFRQ,x1,x2NSUBST,20KBC,1! damping ??solve ! solve harmonic analysisfinish*DIM,energy_array,ARRAY,20/POST1i=1my_energy = 0*DO, step, 1,39, 2set,,,,,,,step ! store results for set step (only real part?)ESEL,S,ENAME,,185etable,energy,senessum*get,ST_energy,ssum,,ITEM,energyenergy_array(i)= ST_energy*IF, ST_energy, GT, my_energy, THENmy_energy = ST_energy ! set the objective*ENDIFETABLE,CLEARALLSELi=i+1*ENDDO
June 5, 2023 at 5:07 pmMd_SalemSubscriber
Ya, I do need to make the modal analysis followed by harmonic analysis for each design point, so I thought in this methodology to avoid making special settings in the optimizer that lead to huge unnecessary data storage.
The code you provide is syntactically right; the harmonic analysis is done directly after the modal analysis, and the *DO loop is done as planned. Unfortunately, the parameter “my_energy” returns 0. When I checked the solution information, I found the next warning:
*** WARNING ***
Item SENE has not been stored in the database. The ETABLE command is
*** ERROR ***
Unknown label in field 6 ( ENERGY ) of *GET command.
The *GET command is ignored.
Taking in consideration that this warning wasn’t present when given code is run under “harmonic analysis” block.
i.e I defined DMPRAT,8e-5
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Solver Pivot Warning in Beam Element Model
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- User manual
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- whether have the difference between using contact and target bodies
- Defining rigid body and contact
- Colors and Mesh Display
© 2023 Copyright ANSYS, Inc. All rights reserved.