TAGGED: ansys-apdl, ansys-mapdl, apdl, apdl-coding
April 24, 2023 at 10:07 pmTodd KelmarSubscriber
I have the following APDL script that I'm using to extract data from a transient analysis for postprocessing.
The script seems to run very slow, taking far longer than the analysis to complete. Is there a guide of best practices for handling large data sets in APDL or a more efficient way to get the info from ANSYS?
*GET, NUM_NODES, NODE, 0, COUNT,
*GET, NUM_STEPS, ACTIVE, 0, SOLU, NCMSS
filename = 'CHIRP_TEST'
*CFOPEN, filename, csv
*VWRITE, 'T', 'NODE', 'X','Y', 'Z', 'AY'
%C, %C, %C, %C, %C, %C
*CFOPEN, filename, csv, , append
*DO, i, 1, NUM_STEPS, 1
*GET, currn, NODE, 0, NUM, MIN
NODE = currn
*DO, j, 1, NUM_NODES, 1
NODE_NUM = currn
NODE_X = nx(currn)
NODE_Y = ny(currn)
NODE_Z = nz(currn)
SET, 1, i
*GET, NODE_TIME, ACTIVE, 0, SET, TIME
*GET, NODE_AY, NODE, currn, A, Y
*VWRITE, NODE_TIME, NODE_NUM, NODE_X, NODE_Y, NODE_Z, NODE_AY
%e, %i, %e, %e, %e, %e
!Increment to next node
*GET, currn, NODE, currn, nxth,
!Select next node
NODE = currn
April 25, 2023 at 5:43 amAliaksei TrukhnouSubscriber
Hi. Sometimes if you run it in batch mode (from Mapdl launcher) it will be faster:) you need only before you text in your macros add "Resume" if you have db and rst files)
- 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
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- User manual
- 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
- material damping and modal analysis
- Colors and Mesh Display
© 2023 Copyright ANSYS, Inc. All rights reserved.