Jump to content

Pandurang

Members
  • Content Count

    142
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Pandurang

  1. HI All I want to create match mesh between 2 Component (but matching surface having different area) for contact creation i writing the script for this one. Step i have done till now: 1. create mesh on one surface . 2 project mesh. 3. trim the surface (if one surface is small than other) using outside nodes 4. then create 2D tria Mesh for remaining surface after trimming : But the problem is mesh connectivity how to overcome this issue? Any idea @Imoto @tinh @Manjunath Dasar @vipin Thanks PD
  2. Hi Rahul @Rahul Ponginan Nice Info I have similar issue. I want to create match mesh between 2 Component (but matching surface having different area) and there is some gap between them i writing the script for this one. Step i have done till now: 1. create mesh on one surface . 2 project mesh. 3. trim the surface (if one surface is small than other) using outside nodes 4. then create 2D Mesh remaining surface except project surf one : But the problem is mesh connectivity issue how to overcome this issue? Any idea Thanks PD
  3. HI All, how to set keep mesh option using script.... any idea or api @Imoto @tinh
  4. @tinh Thanks for quick response... in my case.. 1. user will select 2 comp (CAD)....only input 2. then i have to find surfaces of these comp having give tolerance gap. 3. find smallest(area) out of 2. 4 Mesh it (tria) smallest one 5. project the mesh on other surface. (so that mesh will be matching for contact creation) 6. create contact between them 7. then create mesh for remaining surfaces of these two component. @Manjunath Dasar @tinh @Imoto @vipin any idea how i can do this? any relevant API's...
  5. Hi All, by selecting 2 components , can we find surface area of both component close to each other with some tolerance to create contact. is there any direct API? any one having any idea regarding this? @tinh @Imoto @vipin Regards, PD
  6. .dialog buttonconfigure ok -command {}
  7. for this one: 1. Createmark elem 1 "on plane" 2. *createmark elem 2 "by component" componentName 3 *markintersection elems 1 elems 2 set elem_list [hm_getmark elems 1]........ pls try above...
  8. yes *createmark elems 1 "by component" componentName
  9. I wrote this one...this also takes lot of time... @tinh
  10. 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
  11. 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
  12. you can save that in variable..then use it later in script *createmark comps 1 "displayed" set part_ids [hm_getmark comps 1]
  13. Hi All, is it possible to automate hex meshing for leaf spring? regards PD
  14. 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;
  15. Set your require time using this hwIAnimator SetCurrentTime sec and then take deflection
  16. 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:
  17. set SurfsList {1 2 3 4 5 6 } eval *createmark surfaces 1 $SurfsList *deletemark surfaces 1 Try this code
×
×
  • Create New...