HWC commands for buckling case in HyperView

Vladimir Gantovnik_21974
Vladimir Gantovnik_21974 Altair Community Member
edited December 2021 in Community Q&A

Hi guys! I try to create plots using HWC commands in HyperMesh. These are commands which HyperView writes in the HWC window when I try to make a plot of the 2nd buckling mode. But when I run these commands, it shows only 1st buckling mode. This command does not work or is wrong: "animate frame 2". Remember, this command appears when I select 2nd mode manually. And if I choose 3rd mode, it writes "animate frame 3" but does not do anything during script execution.

My code is:

hwd page current activewindow=2 result subcase "Subcase 2 (buckling)" animate frame 2 scale deformed resulttype = "Buckling mode" value=2.000000 view fit result scalar load type="Buckling Mode" show legends

Here is Mode 2, which I want to plot:

image

Did Altair forget about different modes in buckling? :)

Thank you!

 

Tagged:

Best Answer

  • Varun Venkateswaran
    Varun Venkateswaran
    Altair Employee
    edited December 2021 Answer ✓
    result subcase "Subcase 2 (buckling)" animate frame 2

    These two commands are going to put the animation in the frame 2 of the first simulation step (1st mode) within "Subcase 2 (buckling)".

    Note that in linear or modal animation mode, frame 2 refers to the 2nd frame of the linear/modal animation and not the 2nd mode.

    So in order to got to Mode 2 and animate, the correct commands would be something like.

    result subcase "Subcase 2 (buckling)"

    result simulation 2

    animate start

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited December 2021

    I don't see any problem in my HV 2021.2Can you try the newer versions?

    Probably you're using an older version. They're enhancing HWC in newer versions.

    image

    hwc result scalar load type="Buckling Mode"
    hwc show legends
    hwc animate start
    hwc animate stop
    hwc result simulation 2
    hwc result simulation 3
    hwc result simulation "Mode 1 - F =  4.093373E-01"
    hwc result simulation "Mode 1 - F =  4.093373E-01"
    hwc result simulation 2
    hwc result simulation "Mode 10 - F =  1.032459E+00"
    hwc result simulation 5

  • Varun Venkateswaran
    Varun Venkateswaran
    Altair Employee
    edited December 2021 Answer ✓
    result subcase "Subcase 2 (buckling)" animate frame 2

    These two commands are going to put the animation in the frame 2 of the first simulation step (1st mode) within "Subcase 2 (buckling)".

    Note that in linear or modal animation mode, frame 2 refers to the 2nd frame of the linear/modal animation and not the 2nd mode.

    So in order to got to Mode 2 and animate, the correct commands would be something like.

    result subcase "Subcase 2 (buckling)"

    result simulation 2

    animate start

  • Vladimir Gantovnik_21974
    Vladimir Gantovnik_21974 Altair Community Member
    edited December 2021

    Thank you, guys! It looks like it is because of the older version of HyperMesh. We need to update to the latest :)