• 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


Forums

  • 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)

Categories

There are no results to display.


Found 99 results

  1. 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
  2. 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
  3. 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?
  4. 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;
  5. 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
  6. 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 ?
  7. 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
  8. 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
  9. Hi, How to run perl script from TCL? Thanks, Regards, SriGanesh.
  10. 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?
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. 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.
  16. I am using the function hm_getentityvalue as follows, hm_getentityvalue elems 123 "cogx" 1 in order to get the x coordinates of all the elements in a particular hypermesh meshed model, and then I'm finding the minimum and maximum x-coordinates and the corresponding 2 elements that represent them while running through the elements in a foreach loop. However, this code seems to be using too much physical memory, almost a 6% jump after every iteration and eventually leads to 99% physical memory usage on my machine. How could I avoid this ? And also, is there an easier way to find elements with minimum and maximum x/y/z coordinates in a model using tcl code but not by cycling through each element and checking its coordinates ? Thanks,
  17. I have set of components like led_high_1 led_high_2 led_high_3 etc... i have to make a duplicate set of components with name like led_high_xxx_1 led_high_xxx_2 led_high_xxx_3 etc... i need a tcl script for this in hypermesh
  18. 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
  19. Hey all, I am trying to create several sections automatically with a tcl script. I have organized all of my parts into a Part Set, which I would likey to use as the basis for the section. The concern that I have is that the only way I can get this to work is through the GUI which enacts the following command: *setvalue crosssections id=6 VisualizationPart_ID={sets 3} The remainder of the section definition works well as follows: *setvalue crosssections id=8 name=boltk geometrytype=3 basenode={0 10 152.525} normal={0 0 1} Radius=1 PartSet_ID=1 The difficulty in using "VisualizationPart_ID" is that the given ID (sets 3 in this case) refers to the third set in the panel that pops up (also the thid set in the Sets Tree). I wont necessarily know how many sets are pre-existing in a given model, and therefore I need a means to pick the actual Set ID, which I can define myself previously in the script. Has anyone had this issue before? ANy workaround? http://www.altairhyperworks.com/hwhelp/Altair/hw14.0/help/hwd/hwdref.htm?data_names-crosssections.htm
  20. Hi, How could I go about using the *elementtype and *elementsettypes commands in Hypermesh, is there a listing of config and element types that I could use for the same ? For example to know what config and element type ids match the F3D3 element type ? Thank you.
  21. What command could I use to change the default color of the cursor that appears in the main tkcon console in hypermesh ? I've been able to change the background color using .tkcon.tab1 configure -bg #000000 , but haven't been able to do the same for the cursor. Any help is appreciated.
  22. How could I create a new component by copying all the elements from another previously defined component using tcl commands ? All the while keeping the original component as it is.
  23. How do I restore the tkconsole manually through the menus if it disappears from its original position in HyperMesh ?
  24. 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
  25. How could I go about creating a new tcl console to be used with a GUI that I'm building in Hypermesh ? I tried using package require tkcon tkcon new But I get a message saying : Can't find a usable init.tcl in the following directories: This probably means that Tcl wasn't installed properly.