-
-
August 2, 2019 at 11:17 pm
Nachthammer
SubscriberSo I got mainly 2 problems.
The first problem is that i cannot use the /CWD, 'path' command, because every time i try to include it to my code it will show me an error.
My main task is it to analyse the same model but with different forces. These forces I apply with the F, 100, FY, -10000 command for example.
After every applied force i want to save data to txt-documents, e.g. the deformation or the stress. Therefore I use these commands:
set,lastplns,s,XY
*get,numnode,node,,count
*dim,nd_sig1,array,numnode
*vget,nd_sig1(1),node,,s,XY
*cfopen,'s XY','txt'
*vlen,1
*vwrite,'Nodal','s XY'
(A8,X,A8)
*vwrite,sequ,nd_sig1(1)
(F8.0,X,E13.6,X,E13.6)
*cfclos
But there is one problem; to get this data I have to wait for the /post1 command and after this command the program stops, so the question is, whether there is a way to apply a force to the model, then go to the postprocessing (/post1), and then go back to the next force and so on.
This is my intial idea, at the SOLVE command I would like that the program goes to the postprocessing (to the apdl command that are in the file, which is executed after the /post1 command):
*DO, i, 600, 650, 1
F, i, FY, -100000
/CWD, 'C:UsersalexaDesktopwork_gnrl_numwork1_filesdp0SYSMECH'
/SYP,mkdir ,'force%i%'
/CWD, 'C:UsersalexaDesktopwork_gnrl_numwork1_filesdp0SYSMECHforce%i%'
SOLVE
F, i, FY, 100000
*ENDDO
I thank you in advance
-
- You must be logged in to reply to this topic.

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.
- Saving & sharing of Working project files in .wbpz format
- An Unknown error occurred during solution. Check the Solver Output…..
- Understanding Force Convergence Solution Output
- Solver Pivot Warning in Beam Element Model
- Colors and Mesh Display
- How to calculate the residual stress on a coating by Vickers indentation?
- whether have the difference between using contact and target bodies
- 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.
- User manual
-
2564
-
2080
-
1299
-
1106
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.