Jump to content

Pandurang

Members
  • Content Count

    127
  • Joined

  • Last visited

  • Days Won

    3

Pandurang last won the day on March 17

Pandurang had the most liked content!

4 Followers

About Pandurang

  • Rank
    Expert User

Profile Information

  • Country
    India
  • Are you University user?
    No

Recent Profile Visitors

1305 profile views
  1. HI All, i want to write script to project the face nodes on nearest surface.. is there any API? any idea how to do this.. @tinh Thanks
  2. set node_list ; # we are getting closest node at (0 0 0) for {set i 0} {$i < 10} {incr i} \ { *createmark elements 1 all; eval *createmark nodes 1 $node_list; set id [hm_getclosestnode 0 0 0 1 1] *clearmark node 1 *clearmark elems 1 lappend node_list $id } puts $node_list
  3. you can save that in variable..then use it later in script *createmark comps 1 "displayed" set part_ids [hm_getmark comps 1]
  4. Hi All, is it possible to automate hex meshing for leaf spring? regards PD
  5. Use this code: variable templatefilename [hm_info templatefilename]; proc createMat {name E G Nu RHO id} \ { variable templatefilename *collectorcreate materials "$name" "" 35 *createmark materials 1 "$name" *dictionaryload materials 1 "$templatefilename" "MAT1" *attributeupdateint materials $id 3240 1 2 0 1 *attributeupdatedouble materials $id 1 1 0 0 $E *attributeupdatedouble materials $id 2 1 0 0 $G *attributeupdatedouble materials $id 3 1 0 0 $Nu *attributeupdatedouble materials $id 4 1 0 0 $RHO *clearmark materials 1; } createMat Steel 54000 72000 0.36 0.0000000065 1; createMat "Al 2024" 72000 80769.2 0.33 0.00000000785 2; createMat "Al 6065" 54000 72000.2 0.36 0.0000000065 3; createMat "ttl" 34000 71000.2 0.37 0.0000000067 4;
  6. Set your require time using this hwIAnimator SetCurrentTime sec and then take deflection
  7. HI Create one userpage.mac file. code in that file to create button: *createbutton(5, "Deflection of Cantilever", -1, 0, 10, YELLOW, "Launch Solution To Cantilever Beam.", EvalTcl, "C:\Users\pdd914713\Documents\Test.tcl") *beginmacro("CantileverBeam") *endmacro() keep this file in current working directory...then restart the Hm. You can find this info in HW help as well. HyperWorks Desktop Applications > HyperMesh > HyperMesh Tutorials > Customization > Scripts:
  8. set SurfsList {1 2 3 4 5 6 } eval *createmark surfaces 1 $SurfsList *deletemark surfaces 1 Try this code
  9. *createmark prop 1 all; foreach pid [hm_getmark prop 1] { *setvalue props id=$pid STATUS=2 1819 = 1 set offsetvalue [expr 0.5 * [hm_getvlue prop id = $pid dataname = thickness]]; *setvalue props id=$pid STATUS=2 1821 = $offsetvalue; } *clearmark prop 1;
  10. This is to get id of current component: hm_getvalue component name = [hm_info currentcomponent] dataname = id
  11. Use this one to get current component Name hm_info currentcomponent
  12. Hi *currentcollector component Component_name use this api before creating element
  13. If mesh is uniform.. then by selecting 3 nodes its is possible. -get the center node of 3 nodes -create plane with these nodes -find the faces of this component -select the nodes "on plane" option what you say @tinh
×
×
  • Create New...