How to visual thickness of 2D elems in HyperView

Alex Nguyen
Alex Nguyen Altair Community Member
edited March 2023 in Community Q&A

Hi everyone

I want to show thickness of 2D elems in HyperView ( Displacement Contour) as '2D traditional element representation' in HyperMesh

How to make it

Please help me about this 

Tagged:

Answers

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

    Maybe Altair's solvers have some special card allowing you to output thickness into H3D?

     

    I use a script to write out a HWASCII file from Hypermesh/my FE solver in order to visualize the thickness in Hyperview.

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

    Try this code:

    *createmarkpanel elems 1 "Select Shell Elems"
    *createmark elems 2 'by config' 'quad4' 'tria3' 'quad8' 'tria6'
    *markintersection elems 1 elems 2
    set eList [hm_getmark elems 1]
    hm_markclear elems
    1
    hm_markclear elems
    2
    set fh [open "thickness.hwascii" w]
    puts $fh "
    ALTAIR ASCII FILE"
    puts $fh "
    \$TITLE = Thickness"
    puts $fh "
    \$SUBCASE = 1 Subcase 1"
    puts $fh
    "\$BINDING = ELEMENT"
    puts $fh "
    \$COLUMN_INFO = ENTITY_ID"
    puts $fh
    "\$RESULT_TYPE = Thickness(s)"
    foreach eid $eList {
    set prop_id [hm_getvalue elements id=$eid dataname=propertyid]
    set thick [hm_getentityvalue props $prop_id \$PSHELL_T 0]
    puts $fh
    [format "%d %0.3E" $eid $thick]
    }
    close $fh
    ;

     

    If you have a lot of elements, maybe try FE output template.

     

    HTH,

     

  • Alex Nguyen
    Alex Nguyen Altair Community Member
    edited September 2020

    Thank somuch /profile/43398-qnguyen-dai/?do=hovercard' data-mentionid='43398' href='<___base_url___>/profile/43398-qnguyen-dai/' rel=''>@Q.Nguyen-Dai  :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

     

     

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

    If you just need to contour your thickness value of shells, you could also create a Result Math from your model (.fem or any other solver deck card).

     

    First step is to load your model as your solver deck, not the H3D file. And select Advanced Math Template.

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.55ae2f80e4cd7eb7c2efff4505324f84.png

     

    Then you create a new result using the 'Derived Results' function.

    In your function you will map a Property value to your elements, using the command 'BCPropToElem', and giving it as argument the PSHELL_Thickness get from your model.

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.fda4b873680d81801213ec47c00eb612.png

     

    After that, a new contour will be available for you

    image.png.084a1fe2006d3f5ad6d90f3535c399a0.png

  • Sigfrid
    Sigfrid Altair Community Member
    edited July 2021

    If you just need to contour your thickness value of shells, you could also create a Result Math from your model (.fem or any other solver deck card).

     

    First step is to load your model as your solver deck, not the H3D file. And select Advanced Math Template.

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.55ae2f80e4cd7eb7c2efff4505324f84.png

     

    Then you create a new result using the 'Derived Results' function.

    In your function you will map a Property value to your elements, using the command 'BCPropToElem', and giving it as argument the PSHELL_Thickness get from your model.

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.fda4b873680d81801213ec47c00eb612.png

     

    After that, a new contour will be available for you

    image.png.084a1fe2006d3f5ad6d90f3535c399a0.png

    Dear Adriano,

    I have I used ".fem", ".h3d" and "advanced" settings but in the table browser there is no entry "P_SHEL_THICKNESS".

    Do I have to check a specific output flag in Hypermesh?

    Is there another explanation why I do not have this table?

     

    Help is much appreciated.

     

    Regards Sig

     

     

  • PSiedlaczek
    PSiedlaczek Altair Community Member
    edited June 2022

    It need to be mentioned that this approach doesnt work when plotting any Derived Load Case. Also for any custom result legend is always continuous, so You need to be lucky to know your thk. intervals, and then add suited description in report how to interpret thickness interval e.g. from 3.0 to 3.5 - is it plot of thickness with tolerances of sheet 3.25+/-0.25 or its only for lowest sheet thickness 3.2 ?

    But in my case thickness should change due to plasticity and i cannot get the correct plot of thickness in Expression Builder. Any idea how to get this from shell results?

  • tonychen
    tonychen New Altair Community Member
    edited February 2023

    Try this code:

    *createmarkpanel elems 1 "Select Shell Elems"
    *createmark elems 2 'by config' 'quad4' 'tria3' 'quad8' 'tria6'
    *markintersection elems 1 elems 2
    set eList [hm_getmark elems 1]
    hm_markclear elems
    1
    hm_markclear elems
    2
    set fh [open "thickness.hwascii" w]
    puts $fh "
    ALTAIR ASCII FILE"
    puts $fh "
    \$TITLE = Thickness"
    puts $fh "
    \$SUBCASE = 1 Subcase 1"
    puts $fh
    "\$BINDING = ELEMENT"
    puts $fh "
    \$COLUMN_INFO = ENTITY_ID"
    puts $fh
    "\$RESULT_TYPE = Thickness(s)"
    foreach eid $eList {
    set prop_id [hm_getvalue elements id=$eid dataname=propertyid]
    set thick [hm_getentityvalue props $prop_id \$PSHELL_T 0]
    puts $fh
    [format "%d %0.3E" $eid $thick]
    }
    close $fh
    ;

     

    If you have a lot of elements, maybe try FE output template.

     

    HTH,

     

    hi, i am new for tcl

    when i run in hypermsh,i select element ,and continue?

  • Michele Macchioni
    Michele Macchioni
    Altair Employee
    edited March 2023

    There are 2 points to consider in this thread:

    • Can I visualize results on top of elements while they get displayed in 3D mode? The answer is YES for all elemental (centroiadal) bound data using post processing direclty in HM(POST). One can see in the picture below. This is not (yet) possible for nodal bound data (e.g. Displacements) as the dev is WIP to accomplish the proper interpolation from graphic point of view

    image

    • How can I visualize model attributes as contour? A good appraoch is still in HM using the tool "Dataname Viewer" where tabular fields are created for elements/nodes/properties/materials and can be displayed easily (you can see similar behavior using Matrix Browser)

    image

    Hope this helps further.

    Thanks

    Michele