-
-
September 28, 2023 at 1:27 pm
Hans Rudolf Lusti
SubscriberHi there
I have a bunch of APDL scripts in my Workbench model in the Solution folder that are writing coordinates and stresses to a file for various named selections.
In the scripts I have the following line:
cmsel,s,selection_name ! Select nodes which are defined in Named Selection
The problem is that the postprocessing will stop if a selection_name is not found. As a consequence all subsequent postprocessing scripts won't run through either.
I would like to have it this way. If a selection_name can't be found the corresponding script shall be aborted but the following scripts shall be executed. How can I solve this?
KR, Hans
-
September 29, 2023 at 2:39 pm
Chandra Sekaran
Ansys EmployeeYou can use *GET command to get a list of component names and then compare against that list. Something along this line.
*get,ncomp,comp,,ncomp ! get number of components in your model
*dim,names,string,80,ncomp ! create a string array that can have up to 80 characters
*do,i,1,ncomp,1
*get,names(1,i),comp,i,name
*enddo
Then in a loop check your component name against this list?
-
- 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.

Ansys Blog
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.
- How to do the frequency response of the nonlinear vibration of a flexible PCB?
- Importing Line and Solid Bodies from SpaceClaim to Mechanical
- how to open SendCommand in Ansys
- problems facing during solution
- Still facing the same issue
- Failed to move file from solver directory to scratch directory: file.rst
- Adaptive Sizing
- Stiffness factor
- Import DAT file
- Import pressure data (coordinates and value) to ansys workbench through excel
-
8808
-
4658
-
3153
-
1680
-
1470
© 2023 Copyright ANSYS, Inc. All rights reserved.