Jump to content

richa122

Members
  • Content Count

    11
  • Joined

  • Last visited

  • Days Won

    1

richa122 last won the day on March 13 2017

richa122 had the most liked content!

About richa122

  • Rank
    Beginner

Profile Information

  • Country
    Canada
  • Are you University user?
    No

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, im looking to import a NASTRAN mesh into ANSYS. This can be done directly in workbench, but a lot of information is lost. Specifically I would like to maintain named selections / components - so my strategy was to bring the Nastran bdf into hypermesh, create my groups there, and then export as a cdb before importing it into workbench The problem is whenever I export to cdb I only get nodes in the *.cdb, no elements. I am using Hypermesh 14.0 - anyone have a workaround for this? Thanks ! Tyler
  2. Figured it out! #Prompt user to pick node *createmarkpanel nodes 1 "Please select Node" set BNode [hm_getmark nodes 1] set Z_Node [hm_getentityvalue NODE $BNode "z" 0]
  3. 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
  4. 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
  5. You sir are a genius. Now comes my other dumb question: how do you subtract one mark from the other?
  6. Hi, I am trying to import some elements into a large model, I have set the import flag to offset the nodes, elements, components, etc and so I will not be aware of the node & element numbers. Is there anyway to mark elements / nodes that are part of an import?
  7. Thank you for the information. It turned out that I needed to define the proc prior to issueing it. So I just moved the proc to the top of the tcl file and it worked out!
  8. 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
  9. Hi, I am looking to write a script to place pre-meshed bolts at the bolt holes of an existing bolted flange mesh, an example of which would be below: The bolt hole pattern will not always be a perfect crown, and therefore requires a more general approach Are there any pre-existing tools in Hypermesh that I can use in a tcl script to automate this process? I know hypermesh can find and fill holes, im just wondering if it can find the hole, and tell me the centroid. Or are there any other clever ways for finding the hole centroids based on logically downselecting through tcl scripts? Ultimately the crux is being able to find the centroid of the holes, I can manage the rest of the scripting. If anyone has any ideas that would be greatly appreciated! Thanks Tyler
×
×
  • Create New...