View results with HM

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi everyone.

 

We are working on an automated tool to convert user inputs (e.g. geometry, forces) to FEM results.

So far I can create the model, mesh it and run optistruct. Yet, i can't display the results­.

 

I tried to work with hyperview but a colleague gave me a sample of one of his previous code to display the results using HM.

 

# Clear all the mark
*clearmark all

# Import .fem file
*feinputwithdata2 '\#optistruct\\optistruct' 'C:\Temp\ANALYSE.fem' 0 0 0 0 0 1 8 1 0

# Load results file
*analysisfileset 'C:\Temp\ANALYSE.res'

# Plot Von Mises Stress
*inputsimulation 'SUB1 - Load                   ' 'Von Mises Stress'
*contourplot '' 0 0 0 0 1 0 0 0 'magnitude' 1 0 0

 

Unfortunately, when I run this script on my model, HM crashes (segmentation error) on the line '*feinputwithdata2 '\#optistruct\\optistruct' 'C:\Temp\ANALYSE.fem' 0 0 0 0 0 1 8 1 0'

The script works fine by itself and my colleague can't help me.

 

Do you know how to display the results (i.e. plot the VM stress) using HM ?

 

Thank you

 

Tagged:

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited March 2017

    Hypermesh = Pre-processing module (meshing, loading, BC, ....)

    Hyperview = Post-processing (results, plot iso, ....)

    WHY try to display results with HM?

     

     

  • tinh
    tinh Altair Community Member
    edited March 2017

    Hi,

    you don't need that script, just open hypermesh with Optistruct userprofile

    invoke menu File>Import>Solver Deck, select your *.fem file

    invoke menu File>Load>Results , select your *.res file

    invoke menu Post>Contour  to plot result

    If you still want to use that script, change \ to /

     

    as above comment, you should use Hyperview instead of hypermesh

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2017

    Thanks for the answer. The script above works well : I just needed to replace '*inputsimulation 'SUB1 - Load                   ' 'Von Mises Stress' '  with my variable.

     

    I am using hypermesh for visualization because it has to be fully automated by the end of April.

    I can open HV, load my results and run a script but HV does not work the same way as HM (there is no command file). I can't figure out how to plot my results with a script (even with the reference guide and script exchange).

     

    My project is to fully automatize the design process : the user only put the input in matlab (e.g. force, geometry), click 'Run' and see the results.

    What I have to do is to create the model (geometry, mesh, force..) and run the analysis. Ideally I would like to display the min and max von mises stress.

     

    If you have more information I'll take it !