Jump to content
Sign in to follow this  
Shi Feng

why is the stress cloud map gray?

Recommended Posts

hi, guys!

In hyperview, I want to display the stress cloud by coding. But I do not know why the model is always  gray.

The codes is as follows: 

   shiyantai_cont_$a SetDataType "Element Stresses(2D&3D)(vonMises,Max)"
   shiyantai_cont_$a SetDataComponent "2d_mesh"
   shiyantai_cont_$a SetDimensionEnabled shell true
   shiyantai_cont_$a SetLayer "Max"
   shiyantai_cont_$a SetCornerDataEnabled false
   shiyantai_cont_$a SetAverageMode Advanced
   shiyantai_cont_$a SetEnableState true
   shiyantai_cont_$a GetLegendHandle myleg_shiyantai_cont_stre_$a
   myleg_shiyantai_cont_stre_$a SetVisibility True
   mypost_$a SetDisplayOptions contour true
   mypost_$a SetDisplayOptions legend true
   mypost_$a Draw

There are two components in the model. One of them is named "2d_mesh" to store 2D mesh cells, and the other is named "tetramesh" to store tetrahedral cells.

When I run the above code, the system does not report an error, but the whole model is always gray.

Please help me.

Thank you  very much.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...