🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

View results with HM

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

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

 

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

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

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

    WHY try to display results with HM?

     

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

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

    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 !