General Mechanical

General Mechanical

APDL problems

    • Nachthammer
      Subscriber

      So 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


       

Viewing 0 reply threads
  • You must be logged in to reply to this topic.