CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > enGrid

Engrid modify shape of stl

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By KateEisenhower
  • 1 Post By KateEisenhower

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2013, 10:59
Arrow Engrid modify shape of stl
  #1
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Hi Engrid users,

I am modifying the edge lenght and cell grow factor of a stl in Engrid. My goal is to obtain more density of triangles in order to obtain more tetrahedral elements in volume mesh. But in some kinds of geometries, I see that Engrid modifies the shape of stl file containing the geometry a big problem for me because stl file contains the info of all geometry, itīs more than the surface mesh for me and if it changes, the geometry and the later CFD computations change), making even the crash of volume meshing (yellow triangles indicate inside part I guess).

How can I avoid this?I thought that when I changed surface mesh I was only introduing more triangles but never changing the original shape...What about smoothing?Or more Delaunay steps?

I attach some pictures for ilustrate the problem better.

Thanks for all your help!
Attached Images
File Type: jpg before.jpg (47.2 KB, 75 views)
File Type: jpg after.jpg (51.6 KB, 63 views)
Tensian is offline   Reply With Quote

Old   September 21, 2013, 14:02
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings James,

From the (little) experience I have with enGrid, the idea is that you have to properly separate STL surfaces into independent boundary codes, so that enGrid is more easily able to ascertain which surfaces should be preserved.
In other words, whenever you have an edge that has to be preserved, you need to keep each adjacent triangle in their respective boundary code.

The other detail is regarding the refinement options you use for the surface mesh, as explained here: https://github.com/enGits/engrid/wik...e-surface-mesh

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 26, 2013, 06:12
Default
  #3
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Hi Bruno,

Thanks for the reply.

The images attached in the previous post were taken from he wall of my geometry, so first of all I set boundary codes correctly (and I assure that they are well assigned), but with surface meshing this is the result, the stl changes (and all of this triangles belong to the same boundary code).

Any other idea? Maybe using "fix CAD geometry" option or "store geometry for surface meshing", but I am not sure how this tools work...
Tensian is offline   Reply With Quote

Old   October 1, 2013, 12:47
Default
  #4
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Oliver Gloth, please can you give some light over this issue? I guess you are the only one who can...

Can I refine my surface mesh from .stl file without modifying the shape of my geometry? If not, how can I refine volume mesh without changing surface mesh?

Thanks in advance.
Tensian is offline   Reply With Quote

Old   October 5, 2013, 03:02
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi James,

Can you provide a simple geometry example that we can use to create an example guide from it?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 5, 2013, 07:04
Default
  #6
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Hi Bruno,

Sorry, I am not allowed to share geometries. My problem occurs when the geometry shows high sharp corners. The software remesh my stl file and breaks this corner in something like a shell, showing some triangles in green and some in yellow. I guess this make Engrid crash, because it is not able to understand wich triangles belongs to interior parts, and when I try the volume mesh it crashes ("Boundary meh is overlapping") and also my geometry has changed, which is not acceptable for the next CFD step.

Please help! S.O.S

Thanks Bruno for your interest. I am so sorry. Iīd like to share geometry but I canīt!
Tensian is offline   Reply With Quote

Old   October 5, 2013, 07:12
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi James,

We do not need a geometry that reveals the nature of your project. We only need a simple geometry that reflects the kind of situations you are having.

As for sharing such a simple example geometry, ask for permission, after fully explaining what it's for.

I ask this because as you can see from this tutorial: https://github.com/enGits/engrid/wik...TL-geometry%29 - sharp edges are handled just fine by enGrid, as long as you properly identify each major surface with a boundary code.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 22, 2015, 07:26
Default
  #8
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
[...]
In other words, whenever you have an edge that has to be preserved, you need to keep each adjacent triangle in their respective boundary code.
[...]
Hello everyone,

how do you do this? I guess it is not possible in enGrid. Can I do this with Blender? Any hint is welcome!
Originally I thought I can preserve the edges by lowering the "edge angle to determine fixed vertices" in Tools/Configure enGrid/surface Meshing but this didn't work.

Kate
KateEisenhower is offline   Reply With Quote

Old   April 24, 2015, 07:19
Default
  #9
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by KateEisenhower View Post
Hello everyone,

how do you do this? I guess it is not possible in enGrid. Can I do this with Blender? Any hint is welcome!
Originally I thought I can preserve the edges by lowering the "edge angle to determine fixed vertices" in Tools/Configure enGrid/surface Meshing but this didn't work.

Kate
I'll try to answer my question myself now. According to https://github.com/enGits/engrid/wik...n-STL-geometry)
it should be possible to select a face by first pressing P and selecting Mesh/set boundary code afterwards. Somehow this didn't work for me.
I managed to do it with Blender instead:

1) Select a face in Edit mode
2) Select/Select Similar/Normal
3) Press P and rename the boundary code
wyldckat likes this.
KateEisenhower is offline   Reply With Quote

Old   April 24, 2015, 15:47
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Kate,

Many thanks for sharing! I guess I was too late to at least tell you that in Blender you should be able to do that and any other number of manipulations to the geometry.

And sorry about the instructions on that wiki page being outdated; I handled the transfer from PDF to wiki format back in 2012, and only managed to do some minor updates to the document.
And since I don't have enough experience with Blender, I didn't manage to update any further the wiki page.

If you want to, you can login at Github, edit the wiki page and update the information provided in it.
If you cannot, then please let us know which Blender version you're using. That way I or anyone else can update the instructions on the wiki and indicate for which Blender version it is.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 28, 2015, 01:56
Default
  #11
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Kate,

Many thanks for sharing! I guess I was too late to at least tell you that in Blender you should be able to do that and any other number of manipulations to the geometry.

And sorry about the instructions on that wiki page being outdated; I handled the transfer from PDF to wiki format back in 2012, and only managed to do some minor updates to the document.
And since I don't have enough experience with Blender, I didn't manage to update any further the wiki page.

If you want to, you can login at Github, edit the wiki page and update the information provided in it.
If you cannot, then please let us know which Blender version you're using. That way I or anyone else can update the instructions on the wiki and indicate for which Blender version it is.

Best regards,
Bruno
Hi Bruno,

I would be glad to contribute, but as of now, I didn't find out how it is to be done with enGrid. I did it with Blender instead. Do I misunderstand you here? However, I am using Blender 2.74.

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   April 30, 2015, 11:37
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Kate,

Quote:
Originally Posted by KateEisenhower View Post
I would be glad to contribute, but as of now, I didn't find out how it is to be done with enGrid. I did it with Blender instead. Do I misunderstand you here? However, I am using Blender 2.74.
Most surface manipulations can only be done outside of enGrid. In enGrid is some capability to handle the "easy" situations, but complex surface mesh manipulation should be done in the applications used for this kind of manipulation.

OK, Blender 2.74. I'll try to make a note of this on the wiki in the next few days.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 3, 2015, 13:56
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Kate,

I finally managed to look better into this... and now I've understood the confusion:
Which is why I was asking about the Blender version and the instructions were outdated... because the wiki page I was thinking about has instructions on how to use Blender... version 2.49b! Which was why I thought the instructions for Blender had changed...


OK, now that I've remembered about a few more details... the issue you had in enGrid would be more easily diagnosed if you had provided some images, to show the faces in question and the settings used in the dialogue box for defining a new boundary code.

But anyway, separating the surfaces in Blender is a lot easier and gives you the most control over the surface mesh


As for updating the wiki page... please have a look at the wiki page I mentioned, namely this one: https://github.com/enGits/engrid/wik...and-enGrid-1.2 - and please let me know if there was substantial changes in how to use Blender.
I don't suggest a full update to said wiki page, because it would take some considerable time and since the next generation of enGrid is in development, I guess updating the instructions for enGrid 1.4 wouldn't make much sense.

Best regards,
Bruno

Last edited by wyldckat; May 3, 2015 at 13:56. Reason: removed excessive line breaks
wyldckat is offline   Reply With Quote

Old   May 4, 2015, 04:18
Default
  #14
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello Bruno,

somehow I was referring to the wrong page. Sorry, my mistake.

The instructions for blender work with version 2.74 perfectly. I mentioned that on the tutorial and also added some instructions for installing the import and export scripta on OS X.

Best regards,

Kate
wyldckat likes this.
KateEisenhower is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[CAD formats] beginners how to convert binarySTL to asciiSTL with regions (good for SHM tutorial) soonic OpenFOAM Meshing & Mesh Conversion 11 July 28, 2017 15:46
[CAD formats] Which software to modify STL file and mesh emirust OpenFOAM Meshing & Mesh Conversion 2 September 13, 2012 09:01
STL shape and material properties quezacolatus Phoenics 0 January 6, 2010 23:32
STL shape into Fluent Lionel S. Main CFD Forum 8 December 12, 2007 10:58


All times are GMT -4. The time now is 02:06.