Jump to content

Vikas Kumar

Members
  • Content Count

    93
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Vikas Kumar liked a post in a topic by tinh in To get node id attached to a system through CELAS2 Element   
    As Vipin suggests
    *createmark nodes 1 "equal to value" inputsystemid $sysID
    => reference system
    *createmark nodes 1 "equal to value" outputsystemid $sysID
    => displacement system
  2. Vikas Kumar liked a post in a topic by tinh in To get node id attached to a system through CELAS2 Element   
    set x [hm_getvalue systems id=52dataname=originnodeid] ;  # returning 0 because system is not defined by node it's just a system located at that position .
     
     
  3. Vikas Kumar liked a post in a topic by vipin in To get node id attached to a system through CELAS2 Element   
    @Vikas Kumar,
     
    Is this something you are looking for?
     
  4. Vikas Kumar liked a post in a topic by llyle in To get node id attached to a system through CELAS2 Element   
    Hi Vikas,
     
    Have you tried: 
     
    set systemid [hm_getvalue nodes id=$nodeID1 dataname=outputsystemid];
     
    else please share a simple model with that element and system. 
  5. Vikas Kumar liked a post in a topic by llyle in Getting constraint direction using tcl\tk script   
    Hi Vikas,
     
    try,
    hm_getvalue loads id=$constid dataname=comp1 #comp1 gives dof1 refer datanames of loads for more info #This method you will have to query each dof
  6. Vikas Kumar liked a post in a topic by sandeepballiwar in Checking Whether all nodes in model having "TEMPERATURE" load or not   
    Check the below.
     
    *nodecleartempmark;
    *createmark loads 1 "by config" temperature;
    *findmark loads 1 1 1 nodes 0 2;
    set lst_TemperatureNodes [hm_getmark nodes 2];
    eval *createmark nodes 1 $lst_TemperatureNodes;
    *createmark nodes 1 "reverse";
    *nodemarkaddtempmark 1;
  7. Vikas Kumar liked a post in a topic by tinh in Checking Whether all nodes in model having "TEMPERATURE" load or not   
    1st createmark loads by type temp
    2nd findmark nodes attach to above loads
    3rd reverse mark.
  8. tinh liked a post in a topic by Vikas Kumar in Page Height and width setting   
    Hi Zeta, 
     
    Give me some time i will provide you same info.
     
    Regards 
    Vikas
  9. Vikas Kumar liked a post in a topic by tinh in Getting total number of elements   
    Hi Vikas
    Use hm_getconfigtypeincol
    From hm v13 , hm_getvalue is helpfull too.
  10. Vikas Kumar liked a post in a topic by tinh in Getting pretension load value.   
    Try 
    *createmark props 1 "by material name" AL
    You get 2 props, easily get their names and ids and types
  11. Vikas Kumar liked a post in a topic by tinh in TCL command of auto contact pair finding?   
    hi
    set ::AbaqusCW::CWcontactpair2::tiedCbox
     
    array get ::AbaqusCW::CWcontactpair1::table_arraySurf
  12. Vikas Kumar liked a post in a topic by Imoto in How to get already created node or element set   
    Hi @Vikas Kumar
     
    Now I guess understood your point, it should be specify the poolname when get the Set handle.
    Like this -> modl$t GetSelectionSetHandle sels${t}_00${sid} "Set $sid";
     
    --- Correct example ---
    hwi OpenStack;
    set t [::post::GetT];
    hwi GetSessionHandle sess$t;
    sess$t GetProjectHandle proj$t;
    proj$t GetPageHandle page$t [proj$t GetActivePage];
    page$t GetWindowHandle wind$t [page$t GetActiveWindow];
    wind$t GetClientHandle clie$t;
    clie$t GetModelHandle modl$t [clie$t GetActiveModel];
    foreach sid [modl$t GetSelectionSetList "Set"] {
     modl$t GetSelectionSetHandle sels${t}_00${sid} "Set $sid";
     set name [sels${t}_00${sid} GetLabel];
     set list [sels${t}_00${sid} GetList];
     puts "Name = $name , IDs = $list";
    }
    hwi CloseStack;
     
    Thanks,
    Imoto
  13. Vikas Kumar liked a post in a topic by Imoto in How to get already created node or element set   
    @Vikas Kumar
     
    Absolutely, because if remove the HyperMesh-Commnet, the solver deck does not contain the any Label and Types.
    Like this->

    So, HyperView will create the both sets of Node and Elements with labeled by ID.

     
    Thanks,
    Imoto
  14. Vikas Kumar liked a post in a topic by Imoto in How to get already created node or element set   
    @Vikas Kumar
     
    You can get the ID list with following example,
     
    hwi OpenStack;
    set t [::post::GetT];
    hwi GetSessionHandle sess$t;
    sess$t GetProjectHandle proj$t;
    proj$t GetPageHandle page$t [proj$t GetActivePage];
    page$t GetWindowHandle wind$t [page$t GetActiveWindow];
    wind$t GetClientHandle clie$t;
    clie$t GetModelHandle modl$t [clie$t GetActiveModel];
    foreach sid [modl$t GetSelectionSetList "Set"] {
     modl$t GetSelectionSetHandle sels${t}_00${sid} $sid;
     set name [sels${t}_00${sid} GetLabel];
     set list [sels${t}_00${sid} GetList];
     puts "Name = $name , IDs = $list";
    }
    hwi CloseStack;
     
    Thanks,
    Imoto
  15. Vikas Kumar liked a post in a topic by llyle in Querying about some element for 1D- stress value   
    You'll have to add element by element. 
  16. Vikas Kumar liked a post in a topic by tinh in Page Height and width setting   
    If there is a such command, altair has already bring it to GUI
     
    I know there is a way, but it may not be same as hyperview
     
    My ideal is invoke a second hypermesh, show only its graphic window, and embed it in to a frame beside 1st hm graphic area. As they are different process, you cannot use model browser or panels of the 1st to manipulate the 2nd, that is not same as hyperview
    But if you just need to see 2 viewports, eg to make report, it is fine
     
  17. Vikas Kumar liked a post in a topic by tinh in Page Height and width setting   
    Hello Vikas
    below last line will return original size, so you can remember them and restore graphic size later
    proc p_SetGraphicArea {Width Height} {
      set gframe .mainFrame.center.f3.center_frm.graphicfrm
      set pinfo [pack info $gframe]
      set pmaster [dict get $pinfo -in]
      set pmasterH [winfo height $pmaster]
      set pmasterW [winfo width $pmaster]
      set padX [expr ($pmasterW-$Width)/2]
      set padY [expr ($pmasterH-$Height)/2]
      set padX [expr $padX<0?0:$padX]
      set padY [expr $padY<0?0:$padY]
      pack configure $gframe -padx $padX -pady $padY
      list $pmasterW $pmasterH
    }
     
    example:
    # change graphic size to (200,100)
    set OriginalSize [p_SetGraphicArea 200 100]
    # do something with graphic image...
    ...
    ...
     
    #change graphic size to original:
    eval p_SetGraphicArea $OriginalSize
  18. Vikas Kumar liked a post in a topic by tinh in Running a script using tcl\tk   
    The target command should be
    (has " -tcl " with spaces before the tcl file)
    "C:\Program Files\Altair\13.0\hm\bin\win64\hmopengl.exe" -tcl "D:\Vikas\Backup\TCL_TK\checkExit.tcl"
  19. tinh liked a post in a topic by Vikas Kumar in Running a script using tcl\tk   
    Hi Tinh,
     
    It's working if i am changing format of directory name to 
     
    "C:\Program Files\Altair\13.0\hw\tcl\tcl8.5.9\win64\bin\wish85.exe" "D:\Vikas\Backup\TCL_TK\checkExit.tcl"
     
    instead of "forwad slash ( / )" i am using "Back slash (\)" .
     
    Thanks for your support
     
  20. Vikas Kumar liked a post in a topic by tinh in Running a script using tcl\tk   
    I am not sure. Maybe we can load some *.dll file containing hm api into tcl interp
    try command "info loaded" to see them
     
    Instead, we can open hm in background so you don't see its GUI but all functions are available.
  21. Vikas Kumar liked a post in a topic by Jouher in Running a script using tcl\tk   
    Yes, I have tried this using batch file
  22. Vikas Kumar liked a post in a topic by tinh in Load .pch file and generate graph   
    Hi,
    enter reference guide of hyperwork desktop
    >>Programming with tcl/tk commands
    >>tcl/tk commands
    >>hyperworks desktop
    >>hypergraph 2d
    >>pltlBuildPlotsCtrl Class
     
    there is an example using method "SelectDataFile" to load file for hypergraph
  23. Rahul R liked a post in a topic by Vikas Kumar in Set deformed value   
    Dear Livil,
    Thanks for your support it's working. Thanks lot .
     
    Thanks,
    Vikas Kumar
     
×
×
  • Create New...