How to generate .fem file from .hm [Optistruct]

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

I am looking to write a windows batch file or linux script that would generate an Optistruct .fem input file given an .hm file.  I looked through the hwsolver/scripts available in Windows versions but it was not obvious as to what to do for this.  Could some help or direction be provided on this?

 

Thank you!

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "tinh"
    Altair Community Member
    Updated by tinh

    hi, a sample windows batch file:

    'C:\Program Files\Altair\2017\hm\bin\win64\hmopengl.exe' -batchmesher -noconsole -tcl 'C:\export_to_fem.tcl'

     

    a sample export_to_fem.tcl :

    *readfile 'C:/your_hmfile.hm'

    *feoutputwithdata 'C:/Program Files/Altair/2017/templates/feoutput/optistruct/optistruct' 'C:/your_femfile.fem' 1 0 2 1 1

    exit

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Thank you for the reply.  I have another question and you must excuse my ignorance.  I am a linux user and I find that you have both forward and backward slashes in your script and command.  Which should I use?  I am using windows 7 (have not used it much) and it has '\' and not '/' in the commandline/dos prompt.  

     

    Thank you.

    User: "tinh"
    Altair Community Member
    Updated by tinh

    in batch file it is \

    but in tcl file it is /

     

    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    Thank you for the reply.  I have another question and you must excuse my ignorance.  I am a linux user and I find that you have both forward and backward slashes in your script and command.  Which should I use?  I am using windows 7 (have not used it much) and it has '\' and not '/' in the commandline/dos prompt.  

     

    Thank you.

     

    In Linux world, it's so simple: use '/' everywhere :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />