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 and Licensing
    • 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製品の意外な活用例
    • インストールとライセンス
    • モデリング(プリプロセッシング)
    • シミュレーション技術(ソルバー)
    • データ可視化(ポストプロセッシング)
    • モデルベース開発
    • コンセプト設計と工業デザイン
    • 製造シミュレーション
    • CAE プロセスの自動化
    • 学生向け無償版
    • エンタープライズソリューション

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 307 results

  1. HI, I'm new to hypermesh customization, I'm trying to create custom button in hypermesh to run particular Tcl script. thank you, sixz
  2. Hey guys, I want to calculate the mass of my model using a tcl-script. Is there a simple command to do this? (I haven't found one yet.) If this is not the case, do you know another way how to solve this problem? Kind regards Simon
  3. Hi, I have a structure made of 3d solid map hex mesh elements, ie. primitive unit cells (see primitive image attached). I have turned my hex mesh elements into bar2 elements. I would like to create a central node to the primitive unit cell and connect bar elements to this central node (see body centred cubic image). I know this will most likely be a TCL script problem but I'm not sure how the script would be written. I have successfully created the primitive unit cell and used config edit tool to create bar2 elements (CBEAM's) But I would now like to do this with elements connected to a central node. A comparison of what I'm attempting to do can be seen in this paper: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6265793/pdf/materials-11-02073.pdf I look forward to hearing from the community, Kind Regards, Laurence
  4. 通常、HyperMeshでは、節点はサーフェスやソリッドジオメトリと関連性を持っています。 関連が付いている場合は、エンティティ選択時の選択オプションの"by geoms"でサーフェスやソリッドジオメトリに関連する節点/要素を簡単に選ぶことができます。 ただ、節点とジオメトリの関連が全く無い場合には、この方法で選ぶことが出来ません。 節点とジオメトリの関連が無い状態でも、ソリッドジオメトリの中にある節点を選びたいという時には、指定した座標値がソリッドジオメトリの内外かを返してくれる「hm_ispointinsidesolid」コマンドが便利です。 この「hm_ispointinsidesolid」コマンドを活用して、例えばユーザーが選択した節点群とソリッドジオメトリから、ソリッドの中にある節点だけを抽出したい場合は、下記のような記述で可能です。 set inlist ""; *createentitypanel solids "Select a solid"; set solidid [hm_info lastselectedentity solids]; *createmarkpanel nodes 1 "Select nodes"; foreach nodeid [hm_getmark nodes 1] { lassign [hm_getvalue nodes id=$nodeid dataname=coordinates] X Y Z; if {[hm_ispointinsidesolid $X $Y $Z $solidid] == "1"} { lappend inlist $nodeid; } } if {[llength $inlist] == "0"} { tk_messageBox -message "There is no node in selected solid geometry."; } else { tk_messageBox -message "Found the [llength $inlist] nodes,\nYou can call from retrieve option."; hm_createmark nodes 1 "by id" $inlist; *marktousermark nodes 1; } hm_markclearall 1; ※ファイルに保存して、"File→Run→Tcl/Tk Script"から実行できます。 ⇒Tclファイルのダウンロードはこちら:SelectNodesInsideSolidGeom.tcl ※ダウンロードには、必ずフォーラムへのサインインが必要です。 InsideSolid.mp4
  5. Hello All, I want to delete elements on YZ plane. How can i delete elements using tcl commands? Regards, Sanket
  6. Hi, I have written a script in TCL that changes the material properties using an automatic number generator. The script works when I write it into the console, (The interpreter at the bottom of the page, not sure of the correct name). But when I run the script using the run TCL script button nothing happens. I have attached the script. It changes the material properties of a MAT9ORT card. Can someone take a look at my script and give me some advice on how it can be changed to run correctly. I have also attached my hm file for which I am attempting to change the material properties. Kind Regards, Laurence Maskell YMbeamchanger.tcl clevis2.0run.hm
  7. Hello all I have a GUI with frame and buttons. How I can put WITH THIS CODE combobox to this frame? In the marked in red region? And code: destroy .buttons destroy .combo destroy .combo1 toplevel .buttons wm title .buttons "Menu" set count 0 proc add_frame title { global frame count set bold 0 set frame .buttons.frame$count frame $frame -border 5 -relief groove label $frame.label -text $title -font "arial 10 bold" -foreground red pack $frame -side left -padx 2 -pady 2 -anchor n -fill both pack $frame.label -side top -padx 2 -pady 2 incr count } proc add_button {title command} { global frame count button $frame.$count -text $title -command $command -font "arial 10" pack $frame.$count -side top -pady 1 -padx 1 -fill x incr count } add_frame "Components view" add_button "Show all mesh" {} add_button "Hide all mesh" {} add_button "Show all elements" { } add_button "Hide all elements" { } add_button "Show surface edges" {} add_button "22222" {} add_button "33333" {} add_frame "2D Mesh ()" add_button "Add mesh to displayed surfs" {}
  8. Hi All, I have to run in batch mode a tcl file, in which a meshing process is recorded. Is there a guide or some tutorials? The tcl is perfectly working if i run it from Hypermesh, but it doesn't if I use hmbatch.exe Thanks, Enrico
  9. Hello all. I have a question. Is it possible to create with .tcl commands general surfaces, but for all solids. It is very tedious to constantly perform repeated commands. And script could solve this problem. For example this detail: This surfaces were made by next commands: add_button "Make boolean surfaces" { *createmark solids 1 1 *createmark solids 2 5 *boolean_merge_solids 1 2 14 2 *createmark solids 1 1 *createmark solids 2 5 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 3 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 4 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 5 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 2 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 3 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 4 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 5 *boolean_merge_solids 1 2 14 2 *createmark solids 1 3 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 3 *createmark solids 2 2 *boolean_merge_solids 1 2 14 2} But if we have about 100+ solids and more? How to solve this question\problem? Thanks!
  10. Can we get a number of how many nodes created by my previous operation? (I want to use that number and decide next operation) OR I am able to get temp nodes out of my previous operation. I have temp node and other nodes. Can I count temp nodes on display? (one way to do it I can maskall and count displayed, However, I want to give user visualization of nodes created with respect to displayed component) So any way around it? Thank you
  11. Hello, I would like to extract the node point stresses after an analysis using a tcl script for further analysis in Matlab. Control cards only allow me to export the GPSTRESS as HM or H3D which is not useful for running an analysis outside of hypermesh and hyperview. What functions should I use to accomplish this? Or is there an easier way? Thank you, -Eric
  12. Hi All working on 3D flange having holes..i m trying to write script for 3D mesh of it.. process i am following is : 1. washer split for holes. 2. 2D Automesh surfaces 3. Solid map I want 2D Automesh process to be interactive so that user can adjust mesh around holes to create good washer.. How can i do this..? Regards, PD
  13. I have a results file with 120 subcases. Each subcase has its own contour plot and results. I want to retrieve the max displacement for each subcase and write it to a file without having to view each subcase. Ideally, I would like the legend value of the displacement to be "fixed" not "scientific". I've written a couple TCL scripts for Hypermesh, and am familiar with the puts for writing to the file, but have no idea what any of the commands are for the hyperview tcl.
  14. Hello, DO WE HAVE SCRIPT FOR DOUBLE LAYER WASHER ONE SHOULD BE OF 1.5*D AND THE OTHER LAYER MUST BE 5MM+FIRST LAYER,? Please help me
  15. Hi all, I have 2 mesh components..yellow and green considering yellow comp size...giving some tolerance of at least 2 elements size of green one...want to delete some portion from green as shown... then create mesh between these two comp...shape can be tri or quad or mixed. This is shell mesh... element size of both are different... no surface available for this 2 I want to automate these things... 1 . Delete some portion from green...considering size of yellow 2. Create mesh between yellow and green keeping connectivity in mind.. please help me out... if any one have any idea... Thanks & Regards, PD
  16. Hi, I wish to create a tcl script to record the steps I perform in Hyperview, something like a MACRO. However I see that it Hyperview does not offer an option to do so like in Hypermesh. Can anyone help me with that?
  17. Hallo, i want to sort the standard parts in my Model with an tcl script. So I want to mirror all standard parts into a Assembly with the Name "300". Further i need sub assemblies for all Screws, Nuts and Washers. For example the structure looks like this: 300 (standard parts) -301 (screws) -303 (nuts) -305 (washer) Furthermore the Comp should exist in the root assembly and in the new assembly. Could anybody help me with this Problem?
  18. Hi all, I'd like to create a script which selects 2d elements of less than 5mm and then displays the element numbers on screen. Any ideas anyone? Much appreciated Andy
  19. Hi, I need to create nodes for elements of user specified sizes. For eg, If the user specifies size 6 for the element, the nodes should be created at (0,0), (0,6), (6,0), (6,6). If the user specifies size 8 for the element, the nodes should be created at (0,0), (0,8), (8,0), (8,8). This is to be repeated to generate a geometry 830 mm*450 mm . therefore, if the element is of size 8, 830/8 elements must be created along the length and 450/8 elements along the width with their corresponding nodes. Please tell me how to automate this? Also, I need flexibility to change 830*450 mm dimensions to user specified dimensions (say 500*250 or 1000*600 etc etc). How do I incorporate this?? Currently for an element size 10 I've to write *createnode 0 10 0 0 0 0 *createnode 10 0 0 0 0 0 *createnode 10 10 0 0 0 0 *createnode 0 0 0 0 0 0 thanks, Kushal.
  20. hi, when iam running a script , frequently iam facing segmentation error. what might be the possibilities . regards, jamie
  21. Hello, I need to do a loop on all my components and i don't know how to do it... Something like that : set list_comp {list "all" components} #doesn't work... set m 0 foreach i $list_comp { incr m set cname [hm_entityinfo name components $i] #instruction } If someone can help me.. Thanks.
  22. Hi , I wish to know how to plot a curve from a excel file using TCL. I have currently written a code in this format set data1 [read [open "D:\\RWTH\\Mini thesis\\EclipseTCL\\TCL trial\\excelv1.csv"]] set result1 [regexp -all -inline -line -- {(^.*),.*$} $data1] set firstitems {} foreach {tmp item1} $result1 { lappend firstitems $item1, } puts "{$firstitems}" which gives me an output like this (this is the first column to be entered in the curve editor) {0, 0.0025, 0.005, 0.0075, 0.01, 0.0125, 0.015, 0.0175, ...................75, 0.8, 0.85, 0.9, 0.95, 1,} Similar to the above I get the 2nd column. But how do use TCL and input this data has a curve. I tried the below specified commands but failed to create plot *xyplotcurvemodify "stress strain" {$firstitems} {$items} plot (or) *xyplotmodifycurve "stress strain" {$firstitems} "" "" "" 1 {$items} "" "" "" 1 *plot yours sincerely, kartik
  23. Hello all, Is there a way to find lines of holes on a midsurface? Based on my DOE, locations of bolt holes are always changing, so I want to select holes usign tcl code.
  24. Hello all, I am trying to develop a scripct in order to create 2mm washer. However script has a mistake that I coud not find. Can you help me about this topic? ########################################## *createmarkpanel lines 1 "select lines to create washer" set lst "[hm_getmark lines 1]" foreach lsts $lst { *trim_by_offset_edges 0 $lsts 2 0 0 0 } ##########################################
  25. I am trying to modify a group of Nastran PBAR property groups in Hypermesh via an automated tcl script. I am trying to change the beam sections of all the pbar properties groups I have stored. I have tried using a script with the line as follows (in an iterative manner): *setvalue props id=<some_pbar_prop_id> 3186={beamsects <id_of_new_beam_sect>} While there is no error output, the property card is not updated and the beam section displayed in the GUI is not correct. I am not 100% sure the entity attribute 3186 is correct for pbar beamsections: is there a file or section of the HyperWorks guide listing these id's? I have not been able to find this information. Additionally, I am unsure if the STATUS value needs to be modified in this instance. I have tried the following, also to no avail: *setvalue props id=<some_pbar_prop_id> STATUS=2 3186={beamsects <id_of_new_beam_sect>} or *setvalue props id=<some_pbar_prop_id> 3186={beamsects <id_of_new_beam_sect>} STATUS=2 my beam sections are already defined and are not being generated in the script. Any help resolving this would be greatly appreciated!
×
×
  • Create New...