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

  1. Hi all, I created macro auto adjust normals: proc adjust_normals {} { *createmark comps 1 all *createmark elems 2 "by config" quad4 tria3 set List_comps [hm_getmark comps 1] for {set n 0} {$n<[hm_marklength comps 1]} {incr n} { *createmark elems 1 "by collector" [lindex $List_comps $n] *markintersection elems 1 elems 2 if {![hm_marklength elems 1]} {continue} else { set List_elems [hm_getmark elems 1] set ID_elems_ori [lindex $List_elems 0] *normalsadjust elems 1 $ID_elems_ori 0 0 } } *normalsoff hm_usermessage "Done." } but it doesn't work in some case, such as seperated components... Please suggest a way to improve it.
  2. Hi all I am very new to tcl and macro making and was trying to create a macro for checking the jacobian. Using the help file from hypermesh desktop reference guide this is what i did: (Documents) 72 % *createmark elems 1 "displayed" (Documents) 72 % *createmark elems 2 (Documents) 74 % *elementtestjacobian (elements,1,0.7,2,2,0,"jacobain") this gives an error of "unknown entity type found". so i tried doing this: (Documents) 72 % *createmark elems 1 "displayed" (Documents) 72 % *createmark elems 2 (Documents) 73 % *elementtestjacobian (elements, $1 ,0.7, $2 ,2,0,"jacobain") but this gave an error of "can't read 2 no such variable found". I have done exactly what was mentioned in help file then why I am getting error?
  3. Hello I want to take some values from user so how can I take values from user Like in Hypermesh we use hm_getfloat Is there any command which will serve same purpose in hyperview??
  4. Please mention any material or reference sites for maco/script writing for hypermesh. Thank you.
  5. Hello, I have a script that I call from MATLAB. The script is called from the command prompt which opens Hypermesh and uploads a solver deck into the Hypermesh gui. The problem I face is that the .fem file does not upload into Hypermesh as long as MATLAB is running its own script. Also, importing any other solver deck into Hypermesh does not work either unless MATLAB is paused or by starting a new instance of Hypermesh. The code used to upload the fem file is here; #threshold values set solid_domain_threshold 0.694147 #osmooth constrols set surfacecode 2 set laplacian_iteration 20 set laplacian_feature_angle 25 #"isosurf: surfacecode1 surfacemode2 densitythreshold3 detectbridge4 lowthreshold5 distancecoefficient6 optismoothboundary7 lapiteration8 lapfeatureangle9 lapsmoothboundary10 drawrecovery11" puts "Uploading Solid Domain " *createstringarray 2 "isosurf: $surfacecode 3 $solid_domain_threshold 0 -1 0 0 $laplacian_iteration $laplacian_feature_angle 1 0" "other_params: 1 0 0 0 10 0" if { [ catch {*ossmooth_12 0 1 0 1 "C:////Users////////Large Tension Hinge Rebuilt 2.2 Stage 2 Initial_1.fem" "C:////Users////Large Tension Hinge Rebuilt 2.2 Stage 2 Initial_1.sh" "" 1 0 1 2} ] } { puts "Error During Solid Domain Tetmeshing" } else { puts "Solid TetMesh Succesful!" } What could be the source of the problem? I am running on Windows 10 home edition. Thank you A screen shot is provided to visualize the problem a little bit better.
  6. 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
  7. 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
  8. 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
  9. 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.
  10. 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
  11. 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
  12. WHAT TO GET THE COMMENT WRITTEN IN THE NODE
  13. 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.
  14. Hi there, I have written a .tcl script that can be run in Hyperworks (File>Run>Tcl/Tk scripts)) is there a way such that I can run this script from the command window? I have tried the following: C:/altair/hm/bin/win64/hmbatch.exe -tcl H:/3.Stress/Stress_Strain Processing/animate_one_all_pages_RFaxis.tcl however, this does not seem to work. -tcl <file> must be used with the hmbatch option? Cheers, Rob
  15. 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
  16. 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.
  17. 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..
  18. 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.
  19. 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
  20. 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 ?
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
×
×
  • Create New...