• Announcements

    • Rahul Ponginan

      Please click here for a short but important announcement   03/26/17

      Dear Users Our Commercial and Academic users around the world can use these same forums here as before i.e. the Altair Support Forum , Commercial users from India with solver queries can go to the Solver Forum for India Commercial Users , Academic Users from India and AOC India Participants are requested to go to the Forum for India Academic Users and AOC India Participants , We will be tending to all queries in all the forums promptly as before, thank you for your understanding. 

Search the Community

Showing results for tags 'tcl'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Altair Support Forum
    • Welcome to Altair Support Forum
    • Installation and Licensing
    • Modeling (Preprocessing)
    • Analysis (Solvers)
    • Optimization and Design Exploration
    • Visualization (Postprocessing)
    • Model Based Development
    • Conceptual design and Industrial design
    • 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
  • Forum for India Academic Users and AOC India Participants
    • India EDU Installation FAQ
    • India EDU Modeling and Visualisation
    • India EDU Linear, Non-Linear Solver ( Implicit/Explicit)
    • India EDU Multi-Body Dynamics
    • India EDU CFD
    • India EDU Optimisation
    • India EDU Report Generation
  • Solver Forum for India Commercial Users
    • IND - OptiStruct for Linear & Non-Linear Implicit
    • IND - OptiStruct & HyperStudy for Optimisation
    • IND - RADIOSS for Impact Safety & Non-Linear Explicit Applications
    • IND - MotionSolve for Multi-Body Dynamics
    • IND - HyperWorks CFD forum
    • IND - FEKO, Winprop & Flux
  • Forum for our Australia and New Zealand Based Users
    • ANZ - HyperWorks
    • ANZ - Electromagnetics
    • ANZ - HPC (PBS)


There are no results to display.

Found 108 results

  1. I am a beginner for hypermesh customization. Want to know what are the prerequisites before i enter customization. And how do i set up the environment for customizing Hypermesh.
  2. How to plot the data as shown in below figure using TCL script after .odb file is loaded in the Hypergraph2D? In Y-Type I would like to select RF2-Reaction force(Time History) , all the nodes in Y Request , Value in Y component and plot them.
  3. My question is how to use TCL scripts to swap master-slave surface. Like the figure attached, I want to swap master-slave surface of those highlighted contact pairs. I want to use Young's modulus to decide which surface should be master, and the other to be slave. Master surface should have higher Young's modulus. So, how can I write this if statement and swap the master-slave surface? My model is also uploaded, and I have created the contact pairs. But the contact pairs have'nt been swapped. raw.hm
  4. How could we apply a contour plot to a model using tcl commands ? Such that after doing so when an animation is started, the contour plot appears with it ? I've found commands to SetDataType and SetDataComponent for the contour Handle, however I could not find an apply command for the same. Any help is appreciated. Thank you.
  5. How can I set element density for two shortest lines of a rectangular surface and leave the other two lines with the default element density based on predefined element size? I have the line IDs. #Selected Surface set surfIDs [ hm_getmark surfs 1] *createmark lines 1 "by surface" {*}$surfIDs #Line list set lineList [hm_getmark lines 1] #Line IDs set lineId1 [lindex $lineList 0] set lineId2 [lindex $lineList 1] set lineId3 [lindex $lineList 2] set lineId4 [lindex $lineList 3]
  6. Hi all, I am searching for an easy way to merge multiple component into a single component. I have already done some preliminary search but found nothing about merging components. For example: I have a .hm file with 3 components, each containing different type of entities (e.g. nodes, elements, solids, surfaces, points etc.), all I want is to have a tcl command that moves all entities in these existing components into a new component, and delete all previous components. I went through the documentation of scripts (Tcl modify commands) and found nothing directly helpful for this purpose. Experienced/knowledgeable users of HyperMesh, please help. Best regards, Mubeen.
  7. Hi all, I have imported geometry from a CATPart into HyperMesh and now I am trying to get the names of the surfaces in the model. I am using following commands and till now have no success. (I can get the IDs of surfaces e.g. 1,2,3,4 ..) *createmark surfs 1 all set surfsList [hm_getmark surfs 1] hm_getentityvalue surfs 2 name 1 -byid The first two commands return results (hm_getmark returns the IDs of surfaces: 1,2,3,4,5). However the last command (hm_getentityvalue from Reference manual) doesn't return anything at all, (not even any error). My goal is to get the names of the surfaces (via any Tcl command). I will be very thankful for any help. Best regards, Mubeen
  8. Hello All, I am trying to create rigid elems for a spesific shell component with holes on it. In documentation I have discovered *finholesinit tcl command. However I can not obtain line number also I can not define center of circle using tcl automatically. How can I achieve this problem?
  9. I have a surface and I'm able to get the list of lines on it. But I'm not able to get the list of points on a line. set surfIDs [ hm_getmark surfs 1] *createmark lines 1 "by surface" {*}$surfIDs set lineList [hm_getmark lines 1] puts "Number of lines on the selected surface: [llength $lineList]" #Trying to extract points using line id set lineId1 [lindex $lineList 0] *createmark points 1 "by id" $lineId1 set pointList [hm_getmark points 1] puts "Number of points on the selected line: [llength $pointList]"
  10. There are 3 components, compA, compB and compC, in my model. My final goal is to find ten nodes that belongs to compA, which have the smallest distance from origin(0,0,0). Also, I want this procedure to be automatically done by tcl script. So, the steps I might take is like: 1. Get all node coordinate that belongs to compA. --> I don't know how to get those information. I have try some command like hm_entitylist, hm_getentityvalue, but in vain. Not sure which command can work. 2. Calculate the distances between every nodes and origin(0,0,0). 3. Sort the distances from small to large, and get the smallest 10 nodes' id. --> I can do these two steps in Matlab, but not sure it will work in Tcl script.
  11. Similar to the ExportHTMLReport command for a session variable in HyperView, is there a corresponding ExportPPTReport tcl command for a HyperView session variable as well ?
  12. Hello, I have a problem with running a tclscript via hmbatch.exe in the windows command prompt. I am currently trying to combine the optistruct topology optimization with an external evolutionary algorithm for my master thesis, therefore i want to run the tclscript without accessing the gui of hypermesh. While the tclscript runs perfectly fine when I run it from within Hyperworks, if I try to test the same script via the command prompt I get a licensing error (Error Code: 9) as well as multiple import template failures. I searched Google and the AU forums for the error code but I couldn't find a thread that was applicable to my problem. The Error Code only seems to occur when Hyperworks wasn't installed correctly or when the License wasn't correct ( e.g. Updating to a newer Version of Hyperworks without updating the License). I checked the altair_lic.dat in the altair install directory and it corresponds correctly to my ethernet adress, so that can't be an issue especially since Hyperworks itself starts without problems. Is it possible that the problem might be that the Studentversion doesn't allow the use of the hmbatch.exe? I am using the Studentversion of Hyperworks 14 on my ASUS Laptop (OS: Win8.1). A textfile with the full prompt input and error output and the software specs is attached. Also the same errors occured while using hmopengl.exe Thanks for taking the time to read. hw_error.txt
  13. Hi everyone, I have problem obtaining the TCL command of auto contact pair finding. My model contains 6 components, I use the Abaqus contact manager to automatically find contact pairs for me. Manually, I can successfully find contact pairs. Since I want to run this process automatically by TCL script, I do the process manually and check out the code added in the command.cmf file. Unfortunately, the code are very long, approximately 50000 lines. Also, the code are about nodes' data and surface set, which is not I am looking for. I am looking for the command that represents the buttons "auto", "components: all", "find", "create". I will show these buttons in the figures attached. By the way, the file: raw.hm is my model. Again, my goal is to get the TCL code for finding contact pairs. Please help me, thanks! raw.hm
  14. I need to open a saved template say a.tpl as soon as i run a tcl file say x.tcl basically i need to call tpl file in tcl file. How cn that be done?
  15. Hello all, I am trying to create rbe3 element with 1.0 weight to independent nodes , however, following code generates 0.0 weight for independent nodes. my tcl code is ; ################################################################## *createmark nodes 1 "by sphere" -341.255 -75.946 6.482 0.25 inside 1 all 0 *appendmark nodes 1 "by face" set rbl [hm_getmark nodes 1] set nrbl [llength $rbl] for {set i 0} {$i < $nrbl} {incr i 1} { lappend dofl 123456 } *createarray $nrbl [puts $dofl] for {set i 0} {$i < $nrbl} {incr i 1} { lappend wgh1 1.500000 } *createdoublearray $nrbl [puts $wgh1] *createnode -341.761 9.994e-02 1.549 0 0 0 *createmark nodes 2 "by sphere" -341.761 9.994e-02 1.549 0.2 inside 1 all 0 *rbe3 1 1 $nrbl 1 $nrbl [hm_getmark nodes 2] 123456 0 ######################################################################## At the end of the day, I want to generate following RBE3;
  16. I receive the below error when I try to run my tcl script in hmbatch mode. This same script however will run when I run it inside of Hypermesh using the scripting toolbar and gets no errors. I would like to run this in batchmode. ======Shell AR Distribution: max=3.91===== [AR=1~1.5]: et cnt=200 [AR=1.5~2.25]: et cnt=552 [AR=2.25~3.38]: et cnt=35 [AR=3.38~5.06]: el cnt=1 8 #0 star shape failed at enclosed stage Any suggestions? I have attached the tcl script. Base_shrinkWrap.tcl
  17. Hello, I am trying to use TCL code to automate the tetrameshing process due to a large number of individual components needed to be meshed for CFD. I am using a simple right angled pipe and have a variation of code that was given in the "Hyperworks Desktop Reference Guide". I can successfully use the tetramesh process within Hypermesh itself manually, selecting my "Wall" as With BL (Fixed) and my "Inflow" and "Outflow" as W/o BL (Float) and do not have the issues that I will explain. However, when I try and automate the process using TCL code, my "^CFD_trias_for_tetramesh" part is only a 2D mesh. This then results in the following failure when using the AcuSolve job launcher: "No Valid 3D element found in the neighbourhood of a tria element". Whereas, if I was to do this manually, the part would be called "CFD_tetcore001", however it would be a 3D volume mesh. Here is my code: *createstringarray 2 "tet: 21532 1.2 2 0 0.8 0 0" "cfd: 86 0.0035 22 1.2 1" *createmark comps 2 "Inflow" "Outflow" *createmark comps 1 "Wall" *tetmesh comps 2 0 comps 1 3 1 2 Would anyone be able to provide any suggestions as to how to get a 3D mesh in the centre of the fluid. Thanks, James
  18. Hello Everyone ! I would like to set up a problem on Hypermesh which include around a hundred load cases (in linear static). To automate it, I found a TCL which "allows a simple template to be created to define the loadcases; useful for creating large numbers of static loadcases very quickly and easily" (link) Thanks to a little VBA, I've just succeed in transforming my Excel data base into a readable txt file for this TCL script. And it works. But my problem is this TCL script only applies my forces (and SPC) on the global system. Is there a solution, and how can modify the TCL script so that it can apply my load cases on a specific local system (expressed into the .txt for each load cases) ? If someone can help me to takle this problem, I will be sooo grateful (Because I've never learnt how to program in TCL) Thanks in advance, Best regards, Hervé Archives.zip
  19. Hi, How to run perl script from TCL? Thanks, Regards, SriGanesh.
  20. Hello, I am learning how to run tcl scripts in hypermesh. I want to clear all the values assigned to the variable in the previous run before running the new script. I am facing difficulty in clearing all the values assigned to the variables. I tried using "clear" command but it doesn't work. Does anybody know how to clear previously assigned values of the variables?
  21. Whenever I finish exporting a SolverDeck from my tcl gui, and then when I close the tcl GUI, the HyperMesh model becomes completely unresponsive in the Graphics Area after that. The rest of the HyperMesh GUI works perfectly, however I am unable to see the actual geometry / model in the Graphics Area for which I exported the SolverDecks, what could be the issue here ? Any help is appreciated. Thank you.
  22. 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.
  23. How can I execute a command such as "ls" or "dir" through a tcl script, such that, its output is shown on the tkcon console in HyperMesh ? Any help is appreciated. Thank you.
  24. How can I use the *evaltclstring function in a globalpage.mac file in hypermesh when the tcl string inside it also has double quotes, such as, *evaltclstring("set t1 [string map {"\n\n" "\n"} $t1]; puts $t1;",0) Any help is appreciated because the above command results in my hypermesh becoming unresponsive on startup. Thank you.
  25. How can I run a tcl script through a macro using *evaltclscript and then import a variable from that tcl script to use in the same macro, such as the userpage.mac file ? Thank you. Any help is appreciated.