Jump to content


  • Content Count

  • Joined

  • Last visited

About niwi

  • Rank

Profile Information

  • Are you University user?

Recent Profile Visitors

1007 profile views
  1. Thanks for the replies! I will look into those threads.
  2. Hi everyone, I'm writing a script and want to create a GUI for it using tk. I was wondering if there is a way to integrate HV features like component-selection (see picture below for clarification) in the GUI. Thanks!
  3. Hi, Did you test this? Because that is exactly what I tried before and it didn't work then. Doesn't work now either. In your example you selected Principal Stresses. I want to use the shear stress. So the tensor format needs to be changed and only XY (for example) should be ticked. Thank you
  4. Hi, I just want to show the shear stress of specific elements in a tensor plot. For the sake of better visualisation I want these arrows to be bigger than the corresponding elements. I can create the tensor plot for shear stress in the XY plane without a problem. The problem is I can't seem to scale the shear stress since it seems to be limited to the element size. Even if I use tcl and the "poITensorCtrl SetShearComponentScale " command, I can only use values between 0 and 1. Is it possible to circumvent this problem? Thanks in advance!
  5. I'm not sure about CGAP elements. But a CGAPG element should do the trick.
  6. Hi Mike Your input deck looks fine and you're using all three subcases. Your result folder should include one h3d file for each subcase as well (usually ending on s1.h3d, s2.h3d, and so on). You need to load these, if you want to see the stress results for each specific loadcase. Otherwise you can just import the session file (.mvw) which includes results for each subcase each on a seperate page. As for your other question, you can create a file containing the updated property definitions. You need to set the OUTPUT,PROPERTY Card. I'm not familiar with Ansys, so I'm not sure whether that is of any help in your case. Regards, niwi
  7. Hi Mike, Are you sure you exported the other loadcases to your input deck (.fem file)? If so the results should be visible in the HyperView session file on seperate pages. What exactly do you want to export? You can use the query panel to export element stresses. Regards, niwi
  8. Hi Merula, How big are your data sets? I export my query results in hwascii format and the result files are rather small sized. I'm unaware of a method to export in compressed data formats, but if you find anything I would be interested as well. I think the "WriteData" command always results in .csv format. I prefer to use a loop to handle the results: myQuery GetIteratorHandle iter for {iter First} {[iter Valid]} {iter Next} { lappend Datalist [iter GetDataList] } You are more flexible in handling the result format this way, since you can format the data before exporting it. Thanks, niwi
  9. I'm using an element set for the contour and the query as well. It works fine so far. But for large systems it takes a lot of time. That's why I was thinking if there was another way to access the results without needing to create the contour in the first place. Thanks
  10. Just as an example. The script could look like this: hwi GetSessionHandle sess sess GetProjectHandle proj for {set i 1} {$i<=[proj GetNumberOfPages]} {incr i} { proj GetPageHandle p$i $i set WindowIdList "" for {set j 1} {$j<= [p$i GetNumberOfWindows]} {incr j} { p$i GetWindowHandle p$i\w$j $j if {[p$i\w$j GetClientType] =="Animation"} {lappend WindowIdList $j} p$i\w$j ReleaseHandle } if {[string length $WindowIdList]} { p$i AddWindowSyncGroup SyncIt$i $WindowIdList p$i SetWindowSyncGroupState SyncIt$i true } p$i StartAnimation unset j WindowIdList p$i ReleaseHandle } unset i proj ReleaseHandle sess ReleaseHandle
  11. Thanks for the video, but unfortunately that doesn't really help me, since I need to extract the values of up to 1000 elements and export them in a .hwascii file. Maybe "multiple elements" was a bit vague. Sorry for that. I was originally looking for a way to access the result values without creating a contour first. Right now I'm creating a contour and starting a query. After that I create a different contour and so on. Thank you
  12. Hi, I thought you could only use that button to synchronize windows on the same page. If you want to start animations on multiple pages with one click you will need to use a script. At least that is the only way I know. Do the animations have to be synchronized?
  13. I solved my problem, but it seems a bit odd. Before I was using "pagehandle StartAnimation 1". Unfortunately the script keeps interpreting the next line before the Animation even started. Now I'm looping through the animation steps and using "animatorhandle SetCurrentStep $i" to make sure the animation starts and ends before the next line of the script is interpreted. If there is another way to solve this problem, please tell me, because my solution feels a little bit clunky. Nils
  14. Hi everybody I'm writing a Script right now and am currently running into some issues. I need to animate the model once and after that continue with the rest of my script. How can I make sure to wait for the animation to finish? Thanks in advance Nils
  15. Hi everybody I'm currently writing a script and need to extract the stress values (von Mises) for multiple elements. So far I'm using a query to get contour values. Is there another way to get access to the result values? Thanks in advance. Best regards, Nils
  • Create New...