Jump to content
  • 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. 


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by tinh

  1. I need a VTK format for my mesh

    Hi any reply, @rsoltany? Is the proc working well? I tested its output with paraview, it's ok
  2. remeshing after morphing

    Hi, Maybe, you have to remesh its face elems then regenerate tetra I think Simlab can move the hole + remesh directly tetra elems
  3. Script to ceate element sets from components

    Hi, example script *createmarkpanel comps 1 "Select comps" foreach CompID [hm_getmark comps 1] { *createmark elems 1 "by comp id" $CompID *entitysetcreate SET_ELEMS_$CompID elems 1 } *clearmark comps 1
  4. Hi try removing space in front of comp names you have excessive createmark and clearmark commands at line 2 & 3, they are unnecessary.
  5. Result without BCs

    Yes, when the beam is too heavy in compare to impactor, it just moves a bit and seem to be fixed, you may have to plot displacement to confirm constraints, not only looking
  6. 1D beam element association

    what is your section shape? circle, box? I don't see anywhere to assign section so maybe you have to input its dimension directly to property card
  7. Result without BCs

    explicit impact analysis doesn't require BCs it computes behaviour based on time, as long as you want
  8. Shell Meshing with Varying Thickness

    midmesh thickness tool doesn't require midsurf, select cad surfs
  9. there is a position at which you invoke the command without any args please verify it
  10. I saw this line if you wrote it, you do know its args hw::post::Company::CreateNote $elemCol [namespace current]::lst_elemsFromElemCol $type $id $args
  11. It is not a problem with me. I usually delete command.cmf before I focus on a certain command. the recorder is actually unnecessary if i want to track it, I will set a tracer
  12. Hypermesh to ansys APDL (Geometry and elements)

    I don't think it is. you can export mesh+geom to hm ascii file but ansys may not read that format
  13. Hypermesh to ansys APDL (Geometry and elements)

    You can export geometry to IGS file and import it to ansys select "Export Geometry" on the menu
  14. I need a VTK format for my mesh

    Hi, I wrote it. Below proc will help to export vtp, a template is not neccessary. example running it from command window of hypermesh: p_Export2DToVtpFile MyModel.vtp all; #export all 2d elems p_Export2DToVtpFile MyModel.vtp displayed; #export only displayed 2d elems proc p_Export2DToVtpFile {FilePath {displayed_or_all displayed}} { *createmark elems 1 $displayed_or_all *createmark elems 2 "by config" tria3 quad4 tria6 quad8 *markintersection elems 1 elems 2 set ElemList [hm_getmark elems 1] set ElemNodeList [join [hm_getvalue elems mark=1 dataname=nodes]] set ElemNodeCount [join [hm_getvalue elems mark=1 dataname=nodecount]] set CompList [hm_getvalue elems mark=1 dataname=collector.id] eval *createmark nodes 1 $ElemNodeList set NodeList [hm_getmark nodes 1] set CoordList [join [hm_getvalue nodes mark=1 dataname=coordinates]] set _NodeList [lsort -integer $NodeList] set MinNodeId [lindex $_NodeList 0] set MaxNodeId [lindex $_NodeList end] set _ElemList [lsort -integer $ElemList] set MinElemId [lindex $_ElemList 0] set MaxElemId [lindex $_ElemList end] set NodeCount [llength $NodeList] set ElemCount [llength $ElemList] set Buffer {<VTKFile type="PolyData" version="1.0" byte_order="LittleEndian" header_type="UInt64">} append Buffer \n { <PolyData>} append Buffer \n { <Piece NumberOfPoints="NodeCount" NumberOfPolys="ElemCount">} append Buffer \n { <PointData Scalars="GlobalNodeID">} append Buffer \n { <DataArray type="Int32" Name="GlobalNodeID" format="ascii" RangeMin="MinNodeId" RangeMax="MaxNodeId">} set Buffer [string map [list NodeCount $NodeCount ElemCount $ElemCount MinNodeId $MinNodeId MaxNodeId $MaxNodeId] $Buffer] append Buffer \n $NodeList append Buffer \n { </DataArray>} append Buffer \n { </PointData>} append Buffer \n { <CellData Scalars="ModelFaceID">} append Buffer \n { <DataArray type="Int32" Name="GlobalElementID" format="ascii" } append Buffer "RangeMin=\"$MinElemId\" RangeMax=\"$MaxElemId\">" append Buffer \n $ElemList append Buffer \n { </DataArray>} set _CompList [lsort -integer $CompList] set MinCompId [lindex $_CompList 0] set MaxCompId [lindex $_CompList end] append Buffer \n { <DataArray type="Int32" Name="ModelFaceID" format="ascii" } append Buffer "RangeMin=\"$MinCompId\" RangeMax=\"$MaxCompId\">" append Buffer \n $CompList append Buffer \n { </DataArray>} append Buffer \n { </CellData>} append Buffer \n { <Points>} set _CoordList [lsort -real $CoordList] set MinCoord [lindex $_CoordList 0] set MaxCoord [lindex $_CoordList end] append Buffer \n { <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii" } append Buffer "RangeMin=\"$MinCoord\" RangeMax=\"$MaxCoord\">" append Buffer \n $CoordList append Buffer \n { </DataArray>} append Buffer \n { </Points>} append Buffer \n { <Polys>} append Buffer \n { <DataArray type="Int64" Name="connectivity" format="ascii" } append Buffer "RangeMin=\"$MinNodeId\" RangeMax=\"$MaxNodeId\">" #append Buffer \n $ElemNodeList; #oh, it doesn't refer to global node ids but indices set i -1 foreach NodeId $NodeList { set Index($NodeId) [incr i] } set Indices {} foreach NodeId $ElemNodeList { lappend Indices $Index($NodeId) } append Buffer \n $Indices append Buffer \n { </DataArray>} set Offsets {} set InitOffset 0 foreach NodeCount $ElemNodeCount { lappend Offsets [incr InitOffset $NodeCount] } set MinOffset [lindex $Offsets 0] set MaxOffset [lindex $Offsets end] append Buffer \n { <DataArray type="Int64" Name="offsets" format="ascii" } append Buffer "RangeMin=\"$MinOffset\" RangeMax=\"$MaxOffset\">" append Buffer \n $Offsets append Buffer \n { </DataArray>} append Buffer \n { </Polys>} append Buffer \n { </Piece>} append Buffer \n { </PolyData>} append Buffer \n {</VTKFile>} *clearmark nodes 1 *clearmark elems 1 *clearmark elems 2 set fpt [open $FilePath w] #fconfigure $fpt -encoding utf-8 puts $fpt $Buffer close $fpt set FilePath }
  15. HyperView customiztion

    Hi, use ::hwt::KeepOnTop in hypermesh the proc KeepOnTop is pushed to global ns
  16. Yes, you invoked it with some args but when define it you do not provide args so it doesn't work
  17. Detecting Unconnected rigids

    The easiest method is go to (press F10) check elems panel > 1D > free 1-d's
  18. 1D beam element association

    default elem for bar2 is BEAM188 already just create bar2 elements if you want to switch, go to panel 1D>elem types, select 1d elems, confirm that "bar2 = BEAM188" and click update Did you create property ?
  19. 1D beam element association

    Go to panel 1D>ET Types
  20. I need a VTK format for my mesh

    I found it, the offset field will define type of poly, if it is shifted by 3 => it is triangle element But I am stuck with connectivity field, it doesn't refer to global node ids but indices and searching how can we generate the indices
  21. proc CreateNote has no argument. please confirm it
  22. I need a VTK format for my mesh

    Do you know what is "offset"?
  23. I need a VTK format for my mesh

    I think we need to couple template with some tcl codes because the format is not suitable to be output by pure template...
  24. I need a VTK format for my mesh

    Ok I see. so first 3 indices is for 1st triangle, and so on... I am making initial template to check...
  25. I need a VTK format for my mesh

    I see, so the surface is formed by triangle elements? and each of them has 6 node (3 vertices and 3 mid-points)? it is tria6 element type in Hypermesh, isn't it?