How to export SolverDeck as .inp within tcl script

Oskar Neumann
Oskar Neumann Altair Community Member
edited October 2020 in Community Q&A

How can I export a SolverDeck as .inp within a .tcl script? 

Tagged:

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited July 2020

    is it abaqus ;inp file?

     

    Just perform the operation manually in HM, and after that open the command.tcl file in the 'documents' folder and you will have the commands for that.

    sometimes you need to adjust a couple paths or '\'

  • Oskar Neumann
    Oskar Neumann Altair Community Member
    edited July 2020

    Hello Adriano, thank's for the reply. Your suggestions seems to be a perfect way for learning coding in Hypermesh. 

     

    Yes, .inp is for Abaqus. I'm exporting the geometry from abaqus to do mesh refinements in Hypermesh and exproting it back to abaqus for applying loads and initializing a job.

     

    I'm using the student version, which will change hopefully next week. Until then I can't manually export to abaqus. From documentation I guess it might be the

     

    *exportshapes

     

    function. Is it also exporting information about the mesh?

     

    Thank's for any advice

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited July 2020

    Maybe you can not export INP from Hypermesh student release.

     

  • Oskar Neumann
    Oskar Neumann Altair Community Member
    edited July 2020

    That's correct I can't. I will be able in a couple of weeks though. Regarding the situation we have limited workplaces in our universities institue, where a full licence is availble. Until then I'd like to prepare everything as far as I can in the student version.

  • Oskar Neumann
    Oskar Neumann Altair Community Member
    edited July 2020

    Is *exportshapes the correct function to export geometry and mesh to .inp file?

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited July 2020

    Is *exportshapes the correct function to export geometry and mesh to .inp file?

     

    INP can have geometry inside (I don't know) but from Hypermesh you can only export FEM entities into INP for Abaqus.

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited July 2020

    only mesh will be exported:

     

    something like this

    *feoutputmergeincludefiles 0
    *createstringarray 4 'EXPORTIDS_SKIP' 'HMBOMCOMMENTS_XML' 'HMSUBSYSTEMCOMMENTS_XML' \
      'HMMATCOMMENTS_XML'
    *feoutputwithdata 'D:/Program Files/Altair/2020/hwdesktop/templates/feoutput/abaqus/standard.3d' 'C:/Users/adriano/Desktop/model.inp' 0 0 2 1 4
    *clearmarkall 1

  • Oskar Neumann
    Oskar Neumann Altair Community Member
    edited August 2020

    Perfect, thank you for your help.

  • FaroukM
    FaroukM Altair Community Member
    edited August 2020

     

    INP can have geometry inside (I don't know) but from Hypermesh you can only export FEM entities into INP for Abaqus.

    In the inp file you have only two tables : connectivity and coordinate table.

  • Oskar Neumann
    Oskar Neumann Altair Community Member
    edited August 2020

    Thank you very much, Farouk.