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 プロセスの自動化
    • エンタープライズソリューション
    • データアナリティクス
    • 学生向け無償版(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 319 results

  1. Hi all, Am trying to find a line of code which will select a component / assembly / set etc, when the name contains a certain string... for instance the assembly name may read "apples-001001a" but I want a script to select that assembly if the name contains "apples" as the number could change in the future. Any ideas? Cheers Andy
  2. Hi All, I have Abaqus odb files. I want to extract the "Equivalent Plastic Strain" "Max Deflection" "permanent Set" for last subcase and create report in html format. want to write script in hyperview...Please guide me if anyone knows about this... @tinh @Imoto Regards, PD
  3. 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
  4. In order to define a plane containing a circle, I need the center of the circle and the normal of the plane. Getting the center is simple using hm_getbestcirclecenter. I have not been able to find a means of getting the normal. If it were possible to get the coordinates of two points on the circle, I could use those with the coordinates of the circle center to calculate the normal. However, I haven't been able to find a means of getting those two points.
  5. 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 {} for
  6. 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
  7. WHAT TO GET THE COMMENT WRITTEN IN THE NODE
  8. Hello all, Is it possible to select some surfaces by defining their coordinates or sth else in tcl script? Note: I can make it by createnarkpanel command but i dont want to select surfaces in GUI. So, I want to learn if I can handle it without mauel selection by mouse.
  9. Hi, I'm doing an HyperMesh TCL script where I write a XML file to process results from a OS process. How can I launch my .xml file in HyperView from the HyperMesh TCL? Thanks!! Romili
  10. Is there a way to read what updates are being posted on the Status bar when the batch mesher is run on a particular model ? For example I can see various status updates such as "Topology Cleanup : Step 10" and so on, but I want to read those status updates into a variable using a tcl script. Any help is appreciated. Thank you.
  11. hello everyone, I want to get the principal stress direction in hyperview by TCL, as direction showing in the figure. I have get the principal stress(tensor value) of this element, but I don't find how to get the directions correspond with the principal stress. Thank you for your time..so..much..
  12. hello, everyone I want to get the topology optimization result in hyperview, such as displacement, stress state, elements desity and so on. But I don't know how to get those data. Hyperworks do not write out the hyperview command to command.tcl. And I try to get it throught hyperview hierarchy, as show in the figure. I do not find what I need. I have no idea if somethig wrong. Thank you for you any advice.
  13. Hi All, I am trying to break down a 3d mesh to resolve it down to a single plane of elements generated by finding faces, such that I can then find the hole centroids in this 3d mesh. I ask the user to select a component, the Z dimension representing the offset X-Y plane that the circles are in, and then proceed to start marking / selecting / organizing elements such that I end up with planar surface elements in a new component. All of these commands work when I play with them manually in hypermesh however when I try to call the process in tcl: set CompIDFaces1 [Test1 $CompIDList1 $Z $tol] I get the error: invalid command name "Test1" My code is below, I suspect this is some kind of syntax error. Would be much appreciated if anyone help out with this issue. #Ask for user to select Bolt component *createmarkpanel components 1 "Select Bolted Flange Components." #Retrieve component IDs in Array set CompIDList1 [ hm_getmark components 1 ] #Unselect components *clearmark components 1 set Z 152.525 set tol 0.01 set CompIDFaces1 [Test1 $CompIDList1 $Z $tol] Proc Test1 { CompIDList1 Z tol } { #Select component previously provided by user *createmark comp 1 $CompIDList1 #Find Faces *findfaces components 1 #Hide everything but ^Faces *isolateonlyentity comp "by name" ^faces #Locally select faces in flange plane *hm_createmark elems 1 "by box" "-999 -999 [expr $Z-$tol] 999 999 [expr $Z+$tol] 0 inside 1 0 0" #Hide all other elements *isolateonlyentitybymark 1 *createentity comps cardimage=Part name=Hole_Surface *createmark elements 1 "displayed" *movemark elements 1 "Hole_Surface" *createmark components 1 "^faces" *deletemark components 1 return "Hole_Surface" } Thanks, Tyler
  14. Is there any way using tcl commands that we can create a custom layout for a HyperView page apart from these pre-existing 20 layouts that HyperView supplies ?
  15. Hello So I am capturing a image for the perticular step And I want it to get the name of the load step So how can I get the name of step?? Like loadstep1-thermal So I want thermal name tobe included in the image name Thank you
  16. Hello everyone I am new to hyperview scripting I dont have much Idea about commands used I have gone through previous posts Also trying to read Template file and session file Still I will appreciate If everyone attach there own script in reply. It will accelerate process of learning Beginner like me can refer to those files and create a new script with help of those commands Thank you
  17. Hi, I am writing a tcl script and I am trying to get the user to inform the script of where the script should be taking place. I want to request this by having the user select (pick) a node. From this node I would want to retrieve the X,Y,Z locations of that node, and store them in a variable and proceed with the rest of the script. How might I do this? Thanks in advance for the help! Tyler
  18. Hey guys, I want to export the elementstresses calculated in HyperMesh using a .tcl-file. I found a way using a results curve but I can only manage to export nodal stresses. Do you know a way how to export also the element stresses? Kind regards Simon
  19. Hey guys, I'm trying to implement an algorithm for the Soft Kill Option in HyperMesh. An important step is to vary the Young's Modulus of each element depending on the element stress. As a consequence of the different stresses of every element, do I need to create a new material and a new property for every element? Or do you have another way to solve this problem? Kind regards and thanks in advance Simon
  20. Hello all I created a graphical interface (piece of them in the picture below): I am interested in the following questions: 1. How can I bind running a .tcl file to a button click? (see the fourth question) 2. How to change the font size on the background? (in HyperView) *TitleFont("Arial", 1, 0, 12) do not work 3. While I work in HyperMesh, i have command.tcl, where all my operations are recorded. But in HyperView I don't find such file. Then I try to "File- Save session - open it in notepad". But it is not log file Is there such a file to see the commands being invoked? 4. I'm try to change legend and notes in HyperView. After wrote a .tcl to "legend file" But it is don't work from button. And worked, if we choose in manual mode (as picture in this topic): add_button "legend" {proc ::post::LoadSettings { legend_handle } { $legend_handle SetType user $legend_handle SetFilter Linear $legend_handle SetPosition upperleft $legend_handle SetNumericFormat "fixed" $legend_handle SetNumericPrecision "0" $legend_handle SetReverseEnable false $legend_handle SetSeparatorWidth 0 $legend_handle SetNumberOfColors 11 $legend_handle SetColor 0 "255 255 255" $legend_handle SetColor 1 " 0 0 255" $legend_handle SetColor 2 " 0 227 255" $legend_handle SetColor 3 " 0 255 170" $legend_handle SetColor 4 " 0 255 57" $legend_handle SetColor 5 " 57 255 0" $legend_handle SetColor 6 "170 255 0" $legend_handle SetColor 7 "255 227 0" $legend_handle SetColor 8 "255 113 0" $legend_handle SetColor 9 "255 2 0" $legend_handle SetColor 10 "255 0 0" $legend_handle SetColor 11 "255 255 255" $legend_handle OverrideValue 0 -36 true $legend_handle OverrideValue 1 42 true $legend_handle OverrideValue 9 140 false $legend_handle GetHeaderAttributeHandle attr_handle attr_handle SetVisibility false catch { attr_handle SetFont "Arial"}; attr_handle SetHeight 10 attr_handle SetColor "255 255 255" attr_handle SetSlant "regular" attr_handle SetWeight "regular" attr_handle ReleaseHandle $legend_handle GetTitleAttributeHandle attr_handle attr_handle SetVisibility true catch { attr_handle SetFont "Arial"}; attr_handle SetHeight 10 attr_handle SetColor "255 255 255" attr_handle SetSlant "regular" attr_handle SetWeight "regular" attr_handle ReleaseHandle $legend_handle GetNumberAttributeHandle attr_handle catch { attr_handle SetFont "Arial"}; attr_handle SetHeight 10 attr_handle SetColor "255 255 255" attr_handle SetSlant "regular" attr_handle SetWeight "regular" attr_handle ReleaseHandle $legend_handle SetMinMaxVisibility false max $legend_handle SetMinMaxVisibility false min $legend_handle SetMinMaxVisibility false max_local $legend_handle SetMinMaxVisibility false min_local $legend_handle SetMinMaxVisibility false entity $legend_handle SetMinMaxVisibility false bymodel $legend_handle SetTransparency true $legend_handle SetBackgroundColor "255 255 255" $legend_handle GetFooterAttributeHandle attr_handle attr_handle SetVisibility false catch { attr_handle SetFont "Arial"}; attr_handle SetHeight 10 attr_handle SetColor "255 255 255" attr_handle SetSlant "regular" attr_handle SetWeight "regular" attr_handle ReleaseHandle } } Thank you in advance for your help
  21. Hi All, I have changed Id of a component in hypermesh and i have a .csv file which contains component's Ids and their thicknesses. Now i want to search component,s id in .csv file and corrosponding thickness value from csv. Can anyone tell me how to do this using tcl? Thanks, Sanket
  22. 通常、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
  23. Hello All, i trying to automate leaf spring meshing with hex mesh using tcl. anybody have any idea related to this? anybody worked on this? @tinh Regards, PD
  24. Hey guys, I created a .tcl-script which opens a window where I can put in a reference temperature. After the value is entered, I would like the window to be closed automatically and hence to exit the program. I can't find any commands (like an exit-command) that work the way I want them to. Can you help me out on this topic? Kind regards, Simon Attached you can find the script: convert.tcl
  25. Hello all, I'm working on a script to duplicate elements from a reference component containing a solid to a new component with the same exact solid, but in another position and orientation. The translation part was easy as the hm_getcentroid function provides the solid centroid position, so I can use the command *translatemark to translate the desired mesh to the correct position. But to match the orientation, it has been a task more difficult that I was expecting. My approach has been to extract the moment of inertia of the reference solid and the target solid using hm_getmoiofsolid. Once I get these values, I compute the principal moment of inertia for each solid, so I have a comparable reference to use. Then I calculate the Euler parameters (or Quaternions) to obtain the rotation angles that I can use to rotate the elements from the reference solid to match the target solid orientation. The problem I'm facing is that it seems that the inertia calculation performed by hm_getmoiofsolid seems not to be consistent, in a sense that even extracting the principal moments of inertia from them, these principal directions do not coincide with the solid orientation. What could be done in this case? Thanks in advance, Jefferson Vieira
×
×
  • Create New...