Jump to content

etrud011

Members
  • Content Count

    34
  • Joined

  • Last visited

About etrud011

  • Rank
    Advanced Member

Profile Information

  • Country
    Canada
  • Are you University user?
    Yes

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Your welcome Sebastien, The tcl script I was referring to does not seem to be in the file exchange unfortunately. However extracting the tapered beams should be relatively straighforward. Basically, for each tapered beam or element with card image PBEAML, get the dimensions of both radii. From there you create a solid cone using the coordinates of nodes associated with the beams. Continue until all the beams have been selected. Then when all the cones are created, mesh the exterior with trias and then export to stl. The final step is to merge the cones in another software. If you haven't used tcl before then you should look into the help files to learn more about the hypermesh api. Your commands are also printed out in a 'command.tcl' file during hypermesh sessions.
  2. The optimization is simple size optimization of tapered beam elements (the same as lattice optimization, but I have built the model myself). There are many design variables representing intersection joint between the beams. DEVPREL1 cards are made to link the design variables to all the tapered beams ends.
  3. Hi Rahul, I am running sizing optimizations, not topology. Is there a way to generate a new 'updated' fem model after sizing operations are done? -Thanks
  4. Hello, I am running some optimizations and would like to generate a secondary .fem file as an output. The new fem file would have the updated dimensions of the input model (similar to the second optimization step during lattice optimization). My model has many design variables so updating them manually would not be feasible. Any help is greatly appreciated. -Eric
  5. I believe that there is a tcl script in the file exchange that can create cylinders from the tapered 1d elements. From there you can export the cylinders as stl objects and then use another software to merge them all together (meshmixer). Another method that might work is by using Altair Inspire to automatically generate the stl file with the lattice beams.
  6. Hello, I am running a static analyses in Optistruct and then importing that data into MATLAB. The results are being uploaded to MATLAB by reading a punch file (.pch). However I noticed that the pyramid element results are omitted from the punch file. Is there a way to include the output of pyramid elements to the punch file? Thank you, -Eric
  7. Thanks for your help. It turns out that only the element densities are required for OSSmooth and the other information can be omitted.
  8. Hello, I would like to generate my own shapefiles to be used with OSSmooth to create new topologies. Is there any information on how the file is constructed? I understand that the beginning of the file has element ids with their associated relative densities but there are many other fields whose contents are unknown to me. Thank you in advance, -Eric
  9. Thank you Pandurang and Vipin! I am trying to delete tetra4 elements with aspect ratio above 10^5. But hypermesh is telling me that the aspect ratio some of those elements is 4.12 and will not create a mark on them for deletion. Optistruct will not start because there is a validity check fail due to aspect ratios above 10^5. How is that possible? The code I am using is below; *createmark elems 1 "all" #does not find problems elements set elems_ids2 [hm_getelemcheckelems 1 3 aspect above 100000] It does not find the problem elements. Also I do not understand how to use "hm_getelementsqualityinfo 1 0 2;", it returns zeros each time. Edit2: The problem was that I was looking at the wrong aspect ratio type.
  10. Hello, I would like to know how to find elements that fail the validity check and then delete them. Is there a method to do so in tcl? Thank you
  11. I added "cd C:/Users/e-tru/Documents " to my tcl script and I receive no errors anymore. Thank you
  12. The current directory when I start hypermesh normally is; C:/Users/e-tru/Documents When hypermesh is called from the matlab command string the directory changes to: C:/Windows/System32
  13. I've made all my folders readable. The file also exists, I improperly wrote the path in my second post. The problem still persists. It might have something to do with my environment variables when I am inside the command prompt that is initialized by matlab.
  14. Hi tinh, The file path is verified, the one written in my first post was shortened. I removed all the spaces in the file name and path and still receive errors. If I copy paste the same code from the tcl script , it works just fine. It does not work if the script is called from the command prompt. Four slashes where used because some of the tcl script is printed from matlab. After rewording the tcl script this error shows up: I am not sure why this is happening (Encountered error (check read/write permissions and file existence)). The script looks like this; ######################### #upload the solid layers# ######################### puts "Uploading Solid Domain" *createstringarray 2 "isosurf: 1 2 0.7 0 -1 0 0 10 30 1 0" "other_params: 1 0 0 0 10 0" *ossmooth_12 0 0 2 1 "C:/Users/e-tru/Documents/Altair/Practice/Mult_objective_Stage_2_Practice/Large_Tension_Hinge_Rebuilt_2.2_Stage_2_Initial_1.fem" "C:/Users/e-tru/Documents/Altair/Practice/Mult_objective_Stage_2_Practice/Large_Tension_Hinge_Rebuilt_2.2_Stage_2_Initial_1.sh" "" 1 0 1 2 puts "Error During Solid Domain Tetmeshing: Refining Mesh" } else { puts "Solid Domain TetMesh Succesful!" }
  15. Hello, I have a script that I call from MATLAB. The script is called from the command prompt which opens Hypermesh and uploads a solver deck into the Hypermesh gui. The problem I face is that the .fem file does not upload into Hypermesh as long as MATLAB is running its own script. Also, importing any other solver deck into Hypermesh does not work either unless MATLAB is paused or by starting a new instance of Hypermesh. The code used to upload the fem file is here; #threshold values set solid_domain_threshold 0.694147 #osmooth constrols set surfacecode 2 set laplacian_iteration 20 set laplacian_feature_angle 25 #"isosurf: surfacecode1 surfacemode2 densitythreshold3 detectbridge4 lowthreshold5 distancecoefficient6 optismoothboundary7 lapiteration8 lapfeatureangle9 lapsmoothboundary10 drawrecovery11" puts "Uploading Solid Domain " *createstringarray 2 "isosurf: $surfacecode 3 $solid_domain_threshold 0 -1 0 0 $laplacian_iteration $laplacian_feature_angle 1 0" "other_params: 1 0 0 0 10 0" if { [ catch {*ossmooth_12 0 1 0 1 "C:////Users////////Large Tension Hinge Rebuilt 2.2 Stage 2 Initial_1.fem" "C:////Users////Large Tension Hinge Rebuilt 2.2 Stage 2 Initial_1.sh" "" 1 0 1 2} ] } { puts "Error During Solid Domain Tetmeshing" } else { puts "Solid TetMesh Succesful!" } What could be the source of the problem? I am running on Windows 10 home edition. Thank you A screen shot is provided to visualize the problem a little bit better.
×
×
  • Create New...