How can I use PyMechanical to import a .k file?

xswpp
xswpp Member Posts: 4
Name Dropper First Comment
**

I can import data using ExtAPI.Application.ImportMesh('./drop.k') on Windows, but it doesn't work on Linux. What should I do?

Answers

  • Rajesh Meena
    Rajesh Meena Moderator, Employee Posts: 125
    100 Comments Second Anniversary 5 Answers Solution Developer Community of Practice Member
    ✭✭✭✭

    @xswpp Do you get any error?

  • xswpp
    xswpp Member Posts: 4
    Name Dropper First Comment
    **

    @Rajesh Meena said:
    @xswpp Do you get any error?

    In Linux, executing ExtAPI.Application.ImportMesh('./drop.k') does not produce any errors, but no data is imported into PyMechanical.
    ansys-mechanical-core=0.10.8
    ansys-mechanical-env=0.1.4
    ansys-api-mechanical=0.1.1

  • xswpp
    xswpp Member Posts: 4
    Name Dropper First Comment
    **

    In Windows
    In Linux

  • xswpp
    xswpp Member Posts: 4
    Name Dropper First Comment
    **

    Sorry, The order of the images above is reversed.