Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

Integration of ansys with Mapdl.

TAGGED: 

    • chandrabhan
      Subscriber

      I am trying to define a node with pre-defined parameters but it is not working.

      p = 1; q =2; r = 3; ii=1;

      iCoMapdlunit.executeCommandToString('N,ii,p,q,r')

      the result shows:

      ans =


      Undefined parameter used for coordinate 3.  A value of 0.0 will be used.

      How to resolve this problem. Thanks in advance.

    • ErKo
      Ansys Employee


      The title is a bit confusing - mapdl is an ansys product.
      Is this about using mapdl within matlab?
      I assume here it is aaS in Matlab.
      Try then to type in the numbers for the N command directly:
      iCoMapdlunit.executeCommandToString('N, 1, 1.0, 2.0, 3.0')



      if this works then it is something with the way one is passing in these parameters
      try then to define the xx, yy, and zz as parameters (do not use p as it means pick in apdl, and r is real constant) in apdl:
      iCoMapdlunit.executeCommandToString('xx=1.0')
      and then pass them into the N command
      iCoMapdlunit.executeCommandToString('N, , xx, yy, zz')
      ....


      Fos aaS see this video:
      ----

      In the future though I would recommend to use pyAnsys and pyMAPDL


      All the best

      Erik
Viewing 1 reply thread
  • The topic ‘Integration of ansys with Mapdl.’ is closed to new replies.
[bingo_chatbox]