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. Is there any way to get the node between two nodes of a element by tcl command
  2. How could we insert an image into TextView using the <img> tag ? I tried adding it to the HTML in the TextView editor, however the image does not show up on Evaluating the text, nor does it throw any error ? Any help is appreciated. Thank you.
  3. Can anyone tell ,whats the command save the elements that are found by findmark command
  4. Hi all, I have imported a line from CATIA, into HyperMesh model (mesh). I need to find using the nodes from the mesh which are located on (near to) that line within certain tolerance. Is there any Tcl command for this purpose? At the moment, I can identify the line using its name from metadata, i.e. *createmark lines 1 "by metadata contains value" TAG Line_101 But I couldn't find any Tcl command for finding the nodes around the line on this mark. I will be very thankful for any useful information. Best regards, Mubeen
  5. Hey all, I am a bit confused right now. I did some exercise with hyperview tcl. I set up a real simple script: # Hyperview Exercise1 hwi OpenStack hwi GetSessionHandle session1 session1 GetProjectHandle project1 project GetPageHandle page1 1 page1 GetWindowHandle win1 1 win1 SetClientType animation hwi CloseStack When running the script multiple times it says several times: session1: object with this name already exists. I thought, wit hhwi CloseStack all handles would get released which is not the case? Someone seeing the same behaviour with those lines running 2 times? Thanks in advance and best regards, Merula
  6. Dear all, Could you tell me how can I obtain ANSYS element type in HyperMesh using TCL commands? My target is to put element type name into a variable. The procedure using graphical interface is following: 2D/3D -> element types -> mark element -> review. (result on the figure) Is it possible to extract such information from particular element by a TCL command? I've tried by hm_getentityvalue but got stuck on data_name format. Best regards Jakub
  7. 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.
  8. 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?
  9. 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.
  10. 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
  11. 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
  12. 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
  13. 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.
  14. 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
  15. 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
  16. WHAT TO GET THE COMMENT WRITTEN IN THE NODE
  17. 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.
  18. 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
  19. 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
  20. 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.
  21. 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..
  22. 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.
  23. 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
  24. 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 ?
  25. 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
×
×
  • Create New...