Jump to content

Search the Community

Showing results for tags 'tcl'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Altair Support Forum
    • Welcome to Altair Support Forum
    • Installation , Licensing and Altair One
    • Modeling & Visualisation
    • Solvers & Optimization
    • Multi Body Simulation
    • Conceptual design and Industrial design
    • Model-Based Development
    • Manufacturing Simulation
    • CAE Process Automation
  • Academic Partner Alliance Forum
    • APA - Composites
    • APA - CFD & Thermal
    • APA - Vehicle Dynamics
    • APA - Manufacturing
    • APA - Crash and Safety
    • APA - Noise, Vibration and Harshness
    • APA - System Level Design
    • APA - Structural and Fatigue
    • APA - Marine
    • APA - Optical Design
  • Japanユーザーフォーラム
    • ユーザーフォーラムへようこそ
    • Altair製品の意外な活用例
    • インストール / ライセンス / Altair One / その他
    • モデリング(プリプロセッシング)
    • シミュレーション技術(ソルバー)
    • データ可視化(ポストプロセッシング)
    • モデルベース開発
    • コンセプト設計と工業デザイン
    • 製造シミュレーション
    • CAE プロセスの自動化
    • エンタープライズソリューション
    • データアナリティクス
    • 学生向け無償版(Altair Student Edition)

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Interests


Organization

Found 325 results

  1. Hi all İ cannot create bar from the intersection nodes. İ created list from nodes however linemesh_preparenodeslist1 1 does not accept the list *createmark components 1 "pshell1" "pshell2" *createmark undefined 2 *findbetween nodes components 1 0 0 2 *createlist nodes 1 [hm_formnodelistfrommark nodes 2] *linemesh_preparenodeslist1 1 60 Best Regards
  2. Hi all I would like number selected nodes by distance according to a node or coordinate system. I thought creating a list from createmarkpanel. Then by using hm_measureshortestdistance, i tried to get the closest node and renumber it. After numbering i removed the node from list . In for loop i supposed it will be ok. However i missing something. I am looking for your help Regards *createlistpanel nodes 1 set nodelist [hm_getlist nodes 1] set nodelist_num [llength $nodelist] puts $nodelist_num for {set i 1} {$i<=$nodelist_num} {incr i} { *createmark nodes 1 $nodelist set closenode [hm_measureshortestdistance2 120 120 550 nodes 1 0 0] set cnode [lindex $closenode 4] *createmark nodes 1 $cnode *renumbersolverid nodes 1 [expr $i+52300000] 1 0 0 0 0 0 regsub $cnode $nodelist "" nodelist set nodelist_num [llength $nodelist] puts $nodelist_num *clearmark nodes 1 }
  3. Hi Let's say i have 3 components Let's Name as 1, 2, and 3. 2 Component is intersecting with other two components. Now i want trim all these component at intersection. i can do with *surfmark_trim_by_surfmark here i want to delete or move the trimmed part or surfaces of 2 component which is inside surf volume of other two components (1 & 3) Ho can i do this ? Any idea Guys. Thanks in Advance. @tinh @Q.Nguyen-Dai@vipin @Adriano A. Koga Regards, PD
  4. Hello, In Hypermesh I would like to update the node coordinates of the nodes of a certain component in my model (new coordinates based on results of some simulation). I have a separate text file with per node ID the new coordinates. With TCL, I want to go through this list and update the node coordinate, using *setvalue or *nodemodify. However, either of these commands take ~100 [ms] per node to update. Since I have more than 50,000 nodes, this will take too long. Exporting the model to a text file and editing it there is the current workaround but not preferable: I need a hypermesh file with the correct node coordinates and (very important, and the main source of my problem) the connection with the geometry. So, I thought to use threads. However, this does not seem to work in Hypermesh. If I run the example file from some TCL book (which runs fine in the normal TCL shell) nothing happens: threads are created and destroyed but if I send something to the thread to be evaluated, nothing happens. Can anyone help me how I can modify the coordinates of multiple nodes at the same time by using some kind of parallel processing? Edit: I also tried *setvalue with multiple nodes on a mark but then all nodes get the same coordinate. For example: *createmark nodes 1 1 2 3 *setvalue nodes mark=1 coordinates ="[list {0.0 0.0 0.0} {0. 0.1 0.1} {0.0 0.1 0.2}" (without the "" but otherwise it was not shown in this message) results in all 3 nodes having coordinate 0.0 0.0 0.0 Kind regards, Loesje
  5. Hi all I would like to ask how get an area of selected elements.I wrote an tcl to select the area as an example shown in figure below. I want to get the x and y values. Is it possible to get the values?
  6. Hello all, is there a way to create sets contain lines, surfaces or points. My aim is the call those sets or lists in a tcl script. thanks in advance
  7. Hi all, I'm trying to put a script together which uses tickboxes but can't seem to find the command to produce a tickbox. Anyone have any ideas? Cheers Andy
  8. Hello, first of all im new to Hypermesh and all the scripting. I made a tcl script, which reads a file (like .txt .UFF) and creates nodes from coordinates mentioned in the file. Everything works perfect in the tclsh-environment, it looks like this: % set fp [open "test.UFF" r] file5e9730 % set file_data [read $fp] 1 1 1 1 10 0 0 1 1 1 1 0 10 0 1 1 1 1 0 0 10 I skipped the rest of the code because I think its not necessary. If I execute the script in Hypermesh I get the following error: couldn't open "test.UFF": no such file or directory If I dont read the data file and define the matrix shown above manually, everything is good. So why doesnt Hypermesh find my file? Its definitely in the folder where I start the session from. I hope my problem is clear and someone can help me.
  9. Hi i have solid component. having 6 holes . 2 holes having bolts. i want find No of total holes and No of bolt holes like 6 and 2 how can we do this ...please help I am using this script... with this i can get to total number and and center of each hole...now how can i proceed.. i tried find attach option but did not work. set centlst []; hm_holedetectioninit *createmark surfs 1 all hm_holedetectionsetentities surfs 1 hm_holedetectionsettubeparams tube_shape=2 tube_type=0 hm_holedetectionfindholes 4 set n [hm_holedetectiongetnumberofholes] if { $n > 0 } { puts "Number of holes = $n" for {set i 0} {$i < $n} {incr i} { lappend centlst [lindex [hm_holedetectiongetholedetails $i]"3] } } hm_holedetectionend
  10. When I run this command using below tcl hv -b -tcl Image_Capture1.tcl example.modl example.res This is the results log I see on my linux terminal: Ready Loading Report... Applying Report... Ready Ready Capturing... Ready It's stuck at "Ready" and unless I press Ctrl+c or enter it doesn't exit back to terminal. How can I make the code to exit to terminal after the proc is over? proc BatchMain { } { set inputdeck [lindex $::argv 6] set resultfile [lindex $::argv 7] puts $inputdeck puts $resultfile set t [::post::GetT] hwi GetSessionHandle sess$t sess$t GetProjectHandle proj$t hwi OpenStack sess$t LoadReport Batch_Process.tpl sess$t ApplyReport Batch_Process replace true false 2 $inputdeck $resultfile set numpages [proj$t GetNumberOfPages]; for {set i 1} {$i <= $numpages} {incr i} { proj$t SetActivePage $i proj$t GetPageHandle pg$t $i pg$t Draw pg$t ReleaseHandle sess$t CaptureScreen png image_$i.png } hwi CloseStack proj$t ReleaseHandle sess$t Close } BatchMain
  11. Hello, I am running the below command on a linux server hv -b -tcl Image_Capture.tcl example.modl example.res . and I get below error: Loading Report... Applying Report... Invalid character in integer field: '##'. This is the first time I am running this command on this server. I have attached the tcl file for reference. Please advice!
  12. Hi all There are a lots of bdf file from different team mates. I would like to use hypermesh to check all bdf file for duplicate elements or free nodes etc.. Is it possible to select multiple bdf files once and run these check rules? Best Regards
  13. Hello, I am looking for converting the userprofile from Radioss to Optistruct in the Batch mode. I dont want to convert the model. I just want to change the solver/user profile to Optistruct and use the options there. There are few commands available: hm_framework loaduserfprofile: This is a GUI query and worked only at the command prompt of hypermesh GUI. *solverconvert: This can convert the solvers. But from the 'https://connect.altair.com/CP/kb-view.html?kb=149260', the solver conversion isn't supported for Radioss to Optistruct. I would be grateful if anyone has tried the same and can share your view. . Thanks
  14. Hello Everyone, is there any command to get dependent nodes of RBE2 elements? Regards, Sanket
  15. Hi all I created a table with Fx,Fy,Fz values with many load cases. I would like to get the max value for each column. How can i get the max value of a table's column with TCL? Best Regards Seçkin
  16. Hi all I wrote this code for combobox. However when i change the list the results not. I expect when this list's value changes, get the area and moi for selected beam sections. Could you please help me? hwtk::labelframe $w.lf3 -text "Defined List Only" hwtk::combobox $w.lf3.cb -values $beam_list -help "BEAM SECTIONS" -textvariable beam_sect switch -regexp -- $beam_sect { I { set Inertia [hm_getvalue beamsects name=I_beam dataname=results_Icentroid0] set dim_1 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim1] set dim_2 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim2] set dim_3 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim3] set dim_4 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim4] set dim_5 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim5] set dim_6 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim6] set aera [hm_getvalue beamsects name=I_beam dataname=results_area] set Icog [hm_getvalue beamsects name=I_beam dataname=results_centroid0] } C { set Inertia [hm_getvalue beamsects name=C_beam dataname=results_Icentroid0] set dim_1 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim1] set dim_2 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim2] set dim_3 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim3] set dim_4 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim4] set dim_5 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim5] set dim_6 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim6] set aera [hm_getvalue beamsects name=C_beam dataname=results_area] set Icog [hm_getvalue beamsects name=C_beam dataname=results_centroid0] }
  17. Hi all, I created an GUI in hypermesh. However i can not activate command from TCL gui. Here is a simple code ::hwtk::button $f.b1 -text "Text Button" -help "Text only" -command {createentity comps name=component3} If anyone knows how to do that, could you please show me? Regards
  18. Hi all I would like to get a list of thickness for selected elements. I wrote these codes but it gives just one thickness as a result. Could you please help me ? *createmark elements 1 179 79 150 279 35 ... set test [hm_getthickness elements 1] foreach elements $test { puts "$test" }
  19. Hello, I would like to have a node numbering in a prescribed order. Requirement - Nodenumber sequence from top to bottom and follwing the same from left to right in the X-Y plane. This works well as shown in the figure. The requirement is to witness the same numbering order in all the X-Y planes along Z axis. The drag option along Z axis is used to create 3D elements. I dont achieve the node numbering in the same order as that on the 2d plane. The node numbers skip and have no sequential order as shown in the figure below. The renumber option available did not turn out to be of much help. Any sorts of suggestions or help is appreciated. Thanks, Sankalp
  20. Hello All, I want to select attached elements to a particular element. What is tcl command for this selection? Regards, Sanket
  21. HI All, how to set keep mesh option using script.... any idea or api @Imoto @tinh
  22. Hi , Is there a way to edit panels created using *createmarkpanel? we get a panel by using the command " *createmarkpanel nodes 1". We have only proceed option in that panel. Is there any way i can edit the panel and create 2 buttons called "Reject" and "Return" Thanks, Bharath
  23. Hello All, I want to select BeamSections in a particular beamsectioncollector using tcl script. How can i select it? I tried manually,. While doing it manually there is no option to Select beam sections collectorwise. Please suggest some commands to do the required task. Regards, Sanket Sunil Patil
  24. Hi All, by selecting 2 components , can we find surface area of both component close to each other with some tolerance to create contact. is there any direct API? any one having any idea regarding this? @tinh @Imoto @vipin Regards, PD
  25. I want to create a model log system that works like this 1. As I run the job, the name, date and path of the input file is located in a master excel file 2. After the job stops running (successfully or with error) the reason for that is also written in the excel file. 3. This way I can track my progress throughout th whole year. I assume it needs some TCL/tk programming in the files that are always called when somebody runs a job. Can anybody provide me with some help or a starting tip? Thanks in advance Adeel
×
×
  • Create New...