Below, find the script used in this video as a starting point for your code: cd C:/temp/Study_test/model_name_optimization_1643549680.938239 set outPath "C:/temp/Study_test/model_name_optimization_1643549680.938239/model_name_optimization_densityFile.txt" set import_file_path "C:/temp/Study_test/model_name_optimization_1643549680.938239/model_name_optimization_des.h3d" hwi OpenStack hwi GetSessionHandle session session GetProjectHandle project project GetPageHandle page 1 page GetWindowHandle win 1 win SetClientType animation win GetClientHandle anim anim AddModel $import_file_path anim Draw anim Clear set id [anim AddModel $import_file_path] anim GetModelHandle myModel $id myModel SetResult $import_file_path anim Draw myModel GetResultCtrlHandle myResult set current [myResult GetCurrentSubcase] myResult SetCurrentSimulation [expr [myResult GetNumberOfSimulations $current]-1] set data_types [myResult GetDataTypeList $current] myResult GetContourCtrlHandle myContour myContour SetDataType [lindex $data_types 0] myContour SetEnableState true myModel GetQueryCtrlHandle myQuery set set_id [myModel AddSelectionSet element] myModel GetSelectionSetHandle elem_set $set_id elem_set Add "contour > 0.1" myQuery SetSelectionSet $set_id myQuery SetQuery "element.id contour.value element.connectivity" myQuery WriteData $outPath hwi CloseStack
@juggler40462 жыл бұрын
das war ein super nützliches Video, vielen Dank! Wir freuen uns auf mehr in diesem Inhalt..;)
@ManuelRamsaier2 жыл бұрын
Thank you. Yeah I think there is a lot to cover on this topic.
@shenghuiliu92322 жыл бұрын
By the way, your video is quite helpful especially for the beginner. Great job!
@alihanalayoglu46742 жыл бұрын
this is what we've been lookin for
@ManuelRamsaier2 жыл бұрын
Great! Hope it helps :)
@romeosonsoles96182 жыл бұрын
Hello im the guy you made the day you play zelda songs thank youu men
@ManuelRamsaier2 жыл бұрын
Hey man! Keep it up!
@NguyenHuuTienbk2 жыл бұрын
Excellent, Thank you. I hope you will share more tcl video of Hyperwork. Thanks again.
@ManuelRamsaier2 жыл бұрын
Sure :) Actually that is one of the task I have right now for the lattice mesher :)
@NguyenHuuTienbk2 жыл бұрын
@@ManuelRamsaier :Thank you, Manuel. Your mention a guys TINH, he is Vietnamese. I also Vietnamese too. :D I feel he very talent. I am studying TCL in HyperView. it is difficult. I found on Internet a document "HV HG Customization 13manual" very useful. I also found latest version such as ver21 or v22 but don't found. Thank you for share great knowledge
@ManuelRamsaier2 жыл бұрын
@@NguyenHuuTienbk yeah tinh is a god when it comes to TCL scripting. He helped me so many times....great to see you sharing what you have found. I am sure it is of use for all when we share more what we know 👍
@adelinewar32222 жыл бұрын
Thank you, Dr Manuel. This video was very helpful.
@ManuelRamsaier2 жыл бұрын
On the git repository of the bridge builder I have also python code which serves at getting the data from hyperview.
@sivas7942 Жыл бұрын
Hello Manuel, can i know where will i find the command.tcl file for HyperView where the scripts are dynamically written when we operate HyperView UI. EX: There is 'command.tcl' file for Hypermesh in local drive under User/HMConfig to view the dynamic script being written
@ManuelRamsaier Жыл бұрын
Unfortunately there is none ... this makes Hyperview tcl scripting so difficult.
@adelinewar32222 жыл бұрын
Hello again. May I know if I can use TCL script to export data from hyperview.
@ManuelRamsaier2 жыл бұрын
Sure. Depends on which data you want to get. but as you see in line 29-31 on 23:55 this writes the info directly to the $outpath
@adelinewar32222 жыл бұрын
Hello Sir, I have more query. I have a .fem file with element and nodal connectivity and position and also the respective forces and spc. Can I call this file to open it into hyperview with batch mode from matlab?
@shenghuiliu92322 жыл бұрын
Hello, In some models, thereare a lot of components, I would like to know how to select one component (isolate one component or show only one component with the id and then export all the data value with this component).
@ManuelRamsaier2 жыл бұрын
Hey :) Yeah that works with element sets - you can do that also by component name for example. Here is a simple example: myModel GetQueryCtrlHandle myQuery set set_id [myModel AddSelectionSet element] myModel GetSelectionSetHandle elem_set $set_id elem_set Add "component_name == YOUR_COMPONENT_NAME" myQuery SetSelectionSet $set_id myQuery SetQuery "element.id contour.value" myQuery WriteData $outPath
@adelinewar32222 жыл бұрын
How do I create a batch mode between Matlab and hypermesh optistruct?
@ManuelRamsaier2 жыл бұрын
Could you please describe what you intend to do ? Batch mode in altair's products is enabled via the cli (command line interface) - so the way how you call the hyperworks executable defines if you are in batch or not. It is often just a flag like -b (for hw.exe for example).
@adelinewar32222 жыл бұрын
@@ManuelRamsaier I would like to use the optimization tool in matlab but run the analysis using optistruct in batch mode such that each iteration goes back and forth between hypermesh and matlab for several iterations.
@ManuelRamsaier2 жыл бұрын
@@adelinewar3222 This is possible for sure - a PhD colleague did excactly that. So you can adapt the script in this video for you. In the query lines I mentioned you must change it to the values which are of interest to you. You can then get e.g. stress values for each element.
@adelinewar32222 жыл бұрын
After the code % project GetPageHandle page, I get the error Object name: project (of type hwi Project) could not find requested method: Get PageHandle Or the method was called with incorrect arguments. Dr Manuel, how do I rectify this?
@ManuelRamsaier2 жыл бұрын
Which version of Hyperworks do you use? I can try to reproduce it here. Is there a unwanged space char between Get and PageHandle, as you wrote ?
@adelinewar32222 жыл бұрын
@@ManuelRamsaier It is version 2019. And there is no space between Get and PageHandle.
@adelinewar32222 жыл бұрын
After hwi Openstack, the response I get is 1 and not 2 as in your case.
@adelinewar32222 жыл бұрын
@@ManuelRamsaier 2019. No there was no space between Get and PageHAndle
@ManuelRamsaier2 жыл бұрын
@@adelinewar3222 Hey :) I just tested it. For me it works. So... if you get a 2 instead of a 1 that means it already had an stack open?! Can you just open a new Hyperview session and then put into the tcl command window (which you can enable by dragging it up from the bottom) hwi OpenStack hwi GetSessionHandle test (the test is the name of the variable which you assign the session handle) You can also write the problem with your script and maybe a short video /model files to ramsaier@rwu.de - then I can test it on my side.
@karansingh52592 жыл бұрын
hello sir i am an engineering student in final year i would like to talk to you about my project which is based on matlab
@sam_issac002 жыл бұрын
Sir, it's humble request how to study basic all tools in hypermesh abaqus solver. How to use, components where to use this tools in geometry. Example : lines points,solids,,surface edit ....all geometry tool explain one video upload please( Total 7 pages, first one is Geometry.A small video please explain)
@ManuelRamsaier2 жыл бұрын
Thank you for the request - I will consider it. The geometry modelling is the same for every solver as it is a basic functionality of Hypermesh.
@sam_issac002 жыл бұрын
@@ManuelRamsaier Thank you sir
@mburda2344 Жыл бұрын
Es wäre vielleicht sinnvoller gewesen, wenn man vor dem Drehen des KZbin-Tutorials besser vorbereitet gewesen wäre. Herr Dr. Ing. Sie waren die ganze Zeit durcheinander und es gab keinen klaren Fahrplan, dem man folgen konnte, um zu verstehen, was im Video passiert und worum es geht. Mal wurden Windows, mal Pages, mal Handles und andere Dinge angesprochen. Im Tcl steht "proc" nicht für "Process", sondern es steht für "Procedure", ein anderes Wort für "Funktion".
@adelinewar32222 жыл бұрын
I called the optistruct .fem file by using the optistruct.bat file from Matlab. That way I was able to solve the optistruct .fem file from Matlab. But what if I want to change some codes in the tcl file through optistruct.bat.
@adelinewar32222 жыл бұрын
Could I please get your email id so that I can communicate with you directly rather in the comment section?