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.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Import .sat Data in pyANSYS

    • tim.hertinger
      Subscriber

      Hello, 

      I have a problem while importing a .sat file into pyANSYS by the following way:

      from ansys.mapdl.core import launch_mapdl
      mapdl = launch_mapdl()

      from ansys.mapdl.core import examples

      # note that this method just returns a file path
      bearing_file = "C:/Users/HertingerT/Desktop/Gestufte Lagerung/33213.sat"

      mapdl.aux15()

      mapdl.satin(name="bearing", extension=".sat" ,path=bearing_file, entity="ALL", fmt="1")
      print(mapdl.geometry)
      mapdl.vplot(vtk=True)

      mapdl.exit()

      Is there a general problem with the code or is that related to the .sat file?

      Here is the output in pyANSYS:

      MAPDL Selected Geometry
      Keypoints:  0
      Lines:      0
      Areas:      0
      Volumes:    0

      Thank you,

      Tim

    • ErKo
      Ansys Employee

       

       

      Hi 

      Can you post this in the pymapdl forum below as this might be a limitation or issue.

      https://github.com/ansys/pymapdl/issues

       

       

      Erik

       

       

    • tim.hertinger
      Subscriber

      Hi Erik, 

      thanks for your reply. 

      I´ve also tried to remove the whitespace in the folder directory but that doesn´t help to solve the problem. 

      I will post that issue in the pymapdl forum as well. 

       

      BG

      Tim

    • ErKo
      Ansys Employee

       

       

       

       

      Hi

      There is a post there from our team with some suggestions on how to use the command (so ‘file’ can not have the .sat extension in it) https://github.com/ansys/pymapdl/issues/2285

      Use the below code that works:

       

      filepath = ‘C:\\Users\\HertingerT\\Desktop\\GestufteLagerung’
      file = ‘33213’ # no .sat extension here!

       

      #### Launch pymapdl
      mapdl = launch_mapdl(run_location= here,override=True)
      mapdl.aux15()
      mapdl.satin(name = file , extension = ‘sat’,  path = filepath, entity = ‘ALL’, noan = 0)
      mapdl.allsel()
      mapdl.vplot()

      mapdl.exit()

       

       

       

       

Viewing 3 reply threads
  • The topic ‘Import .sat Data in pyANSYS’ is closed to new replies.
[bingo_chatbox]