Jump to content
Mahesh Agrani

TCL script in hyperview to extract results and append to CSV/excel file

Recommended Posts

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 Hyperviewhich after pasting in command window would append to doe.csv or excelfrequency 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

M.karthickraja likes this

Share this post


Link to post
Share on other sites

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: 

3. CSV writing can be done through tcl file operation commands or using hyperview api refer:

 

Regards,

Livil

M.karthickraja likes this

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.


×
×
  • Create New...