Jump to content

Roshan Shiveshwar

Members
  • Content Count

    77
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Roshan Shiveshwar

  1. Thanks Simon. Mesh imprint seems to work. I think with tcl scripting I can use mesh imprint to perform the "union" operation.
  2. Manual operation is fine for simple examples like the one stated above. But, for a real models it becomes very tedious and time-consuming (too many faces to deal with). Hence, looking for a direct option like mesh-boolean
  3. Hello All, I want to perform 2D mesh union operation of two set of overlapping elements. Below are the images for reference. Here, both mesh A and B consist of 2nd order tria elems. Mesh A is from an older FE model built in different pre-processsor (Abaqus CAE) and Mesh B was generated within HM. The objective is to preserve mesh-A and stitch the extra mesh region present in the mesh B to it. I have tried using the mesh Boolean operation, but did not get any solution. Not sure if I am missing out something. So, is there a way to achieve this ? I am open to tcl scripting as well. Thanks, Roshan
  4. I am trying build some understanding about "X-Window server". So, will this work even if my localhost is a Windows machine?
  5. Yes. Even I felt the same. Create a custom library of required attrib names and use them as needed.
  6. Hi, I am trying to run a simple SimLab script in Batch mode on Linux environment. I am getting the error: "hwx: cannot connect to X server". Following is the command that I am issuing - $SIMLAB_SH_FILE -auto fe_modelling_simlab.py -nographics & Is there any parameter that I am missing in the command ? Or is it that GUI environment is required for running SimLab in batch mode? Thanks, Roshan
  7. Thanks Q.Nguyen-Dai ! If the profile was Abaqus, I believe I have to use the following: hm_getvalue mat id=1 dataname=Young Now, since I want to write a code which is profile independent, I am wondering if there is a generic query command. (Atleast for basic properties such as Density, Young's modulus, Poisson's ratio etc.)
  8. Hi , I am trying to query Young's Moduls, Poisson's ratio of a material Ansys profile. The following command doesn't seem to work - set E [hm_getvalue materials id=$mat_id dataname=E]; set Nu [hm_getvalue materials id=$mat_id dataname=Nu]; I also tried the following Is there any way I can successfuly query all the attributes assigned to the material, irrespective of solver setings? Thanks!
  9. Hi , I want to take screenshots of the HM model. Since my screen is wide, the images that I capture are naturally wider (say 16:9) . I want my images to be slightly narrow (say 4:3) Manually, I achieve this by adjusting left and right tab areas. Is there any way to do this programatically? Thanks!
  10. Thanks Santosh for the response! I re-evaluated the .cdb file again and following are my observations: Export cdb from Simlab 14 : The .cdb file gets imported in Ansys(MAPDL) without any issue. Node sets are also accessible. Export cdb from Simlab 2018 : While importing .cdb file in Ansys(MAPDL), I get warning messages. If I allow these messages, the import gets completed and node sets are accesible or else the model data will be partially imported (which was happening previously). Below is the screengrab showing the warning messages. So, far these warnings have not harmed us. Yet, we are trying to figure out what these messages imply. .
  11. Hello, I am currently using SimLab 2018 for pre-processing. When I export the FE model as Ansys .cdb file from SimLab and import it in Ansys solver, the sets are not getting imported. The sets are expected to be imported as "COMPONENT SETS" which used to happen when I was using older SimLab versions. Is there something that I am missing out during Solver Input File export or some bug in the appplication? SimLab version details:
  12. Hi, Is there a query command to identify elements attached to nodes in Hyperview? I can identify nodes attached to elements by using element.connectivity. There isn't such query available for nodes. Thanks, Roshan
  13. Hi, I am creating a script where I want to orient the model such that I can clearly view the interested node and capture a zoomed-in image. So far, I am able to set the desired orientation. But, I am unable to zoom exactly at the interested node. Is there any way I can achieve this? Thanks, Roshan
  14. Have you tried the following : exec cmd.exe /k "<vbs file path>"
  15. Solved : There was a small eeror in the code. One of the object was not destroyed properly set job_folder "C:\\Users\\xcxc\\Desktop\\test_ui\\test" set num_of_modes 15 #get the directory# set dirname [file dirname [info script]] set template_dirname "$dirname/Report_Template.pptx" #handle the files# file copy -force "$dirname/Report_Template.pptx" "$job_folder/Report/Report.pptx" #modify the PPts# package require twapi set ppt [::twapi::comobj PowerPoint.Application] $ppt DisplayAlerts [expr 0] set presents [$ppt Presentations] set active_presentation [$presents Open "$job_folder/Report/Report.pptx"]; #Open the Presnetation set slides [$active_presentation Slides]; #gte the slide list set slide_1 [$slides Item 1]; #get control on slide index 1 set object_list {} set mode_counter 1 while {$mode_counter <= $num_of_modes} { set slide_num [expr {$mode_counter + 1}] set slide_$slide_num [$slides Add $slide_num 12]; #add one more slide into the presentation set slide_$slide_num\_shapes [[set slide_$slide_num] Shapes] set slide_$slide_num\_video_1 [[set slide_$slide_num\_shapes] AddMediaObject2 [file nativename "$job_folder/Report/Mode_$mode_counter\_Iso_Front.avi"] -1 -1 20 100 650 300] set slide_$slide_num\_video_2 [[set slide_$slide_num\_shapes] AddMediaObject2 [file nativename "$job_folder/Modal_Analysis/Report/Mode_$mode_counter\_Iso_Back.avi"] -1 -1 500 100 650 300] lappend object_list "slide_$slide_num" lappend object_list "slide_$slide_num\_shapes" lappend object_list "slide_$slide_num\_video_1" lappend object_list "slide_$slide_num\_video_2" incr mode_counter 1 } $active_presentation Save foreach object $object_list { puts $object [set $object] -destroy } $slides -destroy $active_presentation -destroy $ppt Quit $ppt -destroy
  16. Does this script work in Interactive mode? Also, you may also try replacing "\#nastran\\nastran" with " [hm_info -appinfo SPECIFIEDPATH hm_feinput_readers]/nastran" .
  17. Hi, I have created a tcl script that is supposed to perform following activities: Open ppt object Add new slide Paste animation (.avi) files. Save the file Close the ppt Everything works fine, but at the end ppt does not close. Here is the code that I have written. Is there anything that I am missing out? set job_folder "C:\\Users\\xcxc\\Desktop\\test_ui\\test" set num_of_modes 15 #get the directory# set dirname [file dirname [info script]] set template_dirname "$dirname/Report_Template.pptx" #handle the files# file copy -force "$dirname/Report_Template.pptx" "$job_folder/Report/Report.pptx" #modify the PPts# package require twapi set ppt [::twapi::comobj PowerPoint.Application] $ppt DisplayAlerts [expr 0] set presents [$ppt Presentations] $presents Open "$job_folder/Report/Report.pptx"; #Open the Presnetation set active_presentation [$ppt ActivePresentation]; #get the cureently active presentaatin set slides [$active_presentation Slides]; #gte the slide list set slide_1 [$slides Item 1]; #get control on slide index 1 set object_list {} set mode_counter 1 while {$mode_counter <= $num_of_modes} { set slide_num [expr {$mode_counter + 1}] set slide_$slide_num [$slides Add $slide_num 12]; #add one more slide into the presentation set slide_$slide_num\_shapes [[set slide_$slide_num] Shapes] set slide_$slide_num\_video_1 [[set slide_$slide_num\_shapes] AddMediaObject2 [file nativename "$job_folder/Report/Mode_$mode_counter\_Iso_Front.avi"] -1 -1 20 100 650 300] set slide_$slide_num\_video_2 [[set slide_$slide_num\_shapes] AddMediaObject2 [file nativename "$job_folder/Modal_Analysis/Report/Mode_$mode_counter\_Iso_Back.avi"] -1 -1 500 100 650 300] lappend object_list "slide_$slide_num" lappend object_list "slide_$slide_num\_shapes" lappend object_list "slide_$slide_num\_video_1" lappend object_list "slide_$slide_num\_video_2" incr mode_counter 1 } $active_presentation Save foreach object $object_list { puts $object [set $object] -destroy } $slides -destroy $active_presentation -destroy $ppt Quit $ppt -destroy
  18. I am writing an automation script which requires me to export element groups from SimLab. Later, I will utilize them for rigid creation in Hypermesh. With Simlab Ansys setup I am not able to achieve this. Since I had trouble using component manager, I am assigning ET Type & card image from the Model tab. After assigning proper ET type, component manager does function as expected.
  19. Hi Pooja, I am not able to find the option that converts from Abaqus to Ansys. Is there anything that I am missing out somewhere? Thanks, Roshan
  20. Hi, I am facing an issue while opening Component Manger (Utility Tab for Ansys). Below is the screenshot of the error message. The FE modelling was done in SimLab 2018 and exported as Abaqus .inp file. I imported the model in Hypermesh with Abaqus user profile. Now, I have changed the user profile to Ansys so that I can proceed with Ansys. But, I am facing the issue with component manager. Is there any way to fix this ? Hypermesh version - HM 2017.2. Thanks, Roshan
×
×
  • Create New...