TCL script in hyperview to extract results and append to CSV/excel file
Hi, I am working on DOE of a component in Hypermesh/Optistruct for natural frequency and stiffness (calculated based on nodal displacements). I have developed Tcl code for Automated design changes in Hypermesh which I execute every time for each iteration after changing some values but I need to manually note down responses (Result) in Hyperview. I need a TCL script for Hyperview which after pasting in command window would append to doe.csv or excel: frequency for mode 7, 8 and 9 for subcase 1; and nodal displacements for specific nodes (eg. 30778,7489,76923,77540) for subcase 2, maximum displacement for subcase 3 and subcase 4 in each row. @Livil Lyle
Answers
-
Hi Mahesh,
1. You can get frequency value from simulation label, use: poIResultCtrl GetSimulationLabel, then do some string operation to get the frequency value.
2. for nodal displacement you will have to display the contour and then query the displacement value at specific nodes, refer below thread for similar example:
https://community.altair.com/community?id=community_question&sys_id=7c5604f61b2bd0908017dc61ec4bcbd23. CSV writing can be done through tcl file operation commands or using hyperview api refer:
https://community.altair.com/community?id=community_question&sys_id=cb96447a1b2bd0908017dc61ec4bcb51Regards,
Livil
1 -
I am new to TCL scripting. I can't understand how to implement these codes. Can you help me with a sample tcl code for poIResultCtrl GetSimulationLabel?
0 -
Hello, I am new to Hyperview scripting. Whenever I run any NVH simulation and view the results in Hyperview, I need to check all the modes manually to get the maximum frequency at that mode. I need to develop a script which gives me maximum frequency at each modes in one go. Is it possible?If yes, Is there any code?
0