|
[Sponsors] |
August 2, 2012, 11:30 |
Need directTopoChange.H
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi all,
i am using OF2.1.x and wanna compile a other sHM - version which is offered by chalmeers. Well there I need the directTopoChange.H file which is not included in the OF2.1.x version. Is it possible that this feature is just added by the OF-extend version? Tobi Last edited by Tobi; August 3, 2012 at 08:09. |
|
August 2, 2012, 18:03 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Tobi!
A snappyHexMesh version provided by Chalmers? What? Where? Do you have a link? There might have been several improvements/changes made when OpenFOAM evolved from 1.7 to 2.0 which might make it difficult to use that modified version directly. Nonetheless, if you can provide the source code or a link to it and indicate what was the original version, it might be relatively easy to apply the same changes to the latest snappyHexMesh version to perform the same added features Best regards, Bruno
__________________
|
|
August 3, 2012, 04:15 |
|
#3 | |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Quote:
Hi Bruno ... here the link: its from 2011 and I wanna try it. Search for Christoffer Järpner: www.tfd.chalmers.se/~hani/kurser/OS_CFD_2011/ He added 4 features. Tobi |
||
August 3, 2012, 04:29 |
|
#4 | |
Senior Member
|
Quote:
if You look at Christoffer Järpner Report it says Devoloped for OpenFOAM-1.6.ext |
||
August 3, 2012, 08:09 |
|
#5 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi,
yes I know, couse in the Ext-Version there is the library that i am searching for. So my question was, if there is a possible way to implement that library in OF 2.1.x to work with that tool. Well I can use it at home (thats not a problem) but here in work I just have 2.1.x But thanks for your advice |
|
August 3, 2012, 09:46 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Elvis: thanks for the reference to the 1.6-ext! That way I didn't have to look any further @Tobi: Here you go: https://github.com/wyldckat/CJsnappyHexMesh - Sorry, it took me longer than I wanted, but it's done I was interested in seeing the result as well as well as improving my skills... As always, I've made the adaptations, but I haven't properly tested things... or in other words, I ran and adapted the cases, but I'm not 100% things are working as intended. This is a nifty way of adding boundary layers, although that priceless tutorial presented at OFW7 this year might make it easier to use in the long run : Quote:
I'll detail next in the "README" what steps did I take to get it working. edit: All done. Haven't referenced this at openfoamwiki.net yet... nor did I yet referenced libOpenSMOKE there... Best regards, Bruno
__________________
Last edited by wyldckat; August 3, 2012 at 10:17. Reason: see "edit:" |
||
August 3, 2012, 14:47 |
|
#7 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Bruno ... wow ... !!!
I ll test it on monday! I think you are just waiting that I post new things I read a while befor that you can get it bugfixed again and making me very happy Tobi |
|
August 3, 2012, 15:19 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Tobi,
This only happened because:
Bruno
__________________
|
|
September 3, 2012, 12:00 |
|
#10 |
New Member
Antoine Haettel
Join Date: May 2011
Posts: 6
Rep Power: 15 |
Hi and Thanks Bruno for the 2.1.x version it has been quite useful
I've been trying to mesh a hull with the original snappy and I can't manage to get a fully satisfying grid. I keep on getting a few snapped faces on my hull that have badly orientated faces due to a poor projections of the castellated grid. I can't manage to get a decent boundary layer around the hull (keep on getting a 95% extrusion success but the bulb and the bow (front) are where the layers are missing but also where I really need them!) I also noticed that the buffer layers were counted in the extrusion success value but they are not suitable for the criteria of the boundary layers. I'm trying to generate 8 layers with an expansion ratio of 1.3 and a starting thickness of 0.002 m I tried tweaking the parameters without any success. I was wondering what are the limits (geometry, refinement, mesh quality) for generating a correct boundary layer process in the original snappyHexMesh? Then I tried it with your 2.1.x version of Christoffers layer generation and got a much better result. However the checkMesh failed with non-orthogonal and highly-skewed elements . As you where suggesting before, the CJsnappy doesn't work with all sorts of surfaces. What would be the possible modifications that need to be brought to snappy in order for it to generate properly the grid + boundary around a Hull? /////////////////////////////////////////////////////////////////////////////////////// Layer.jpeg : Boundary Layers set I get with snappyHexMesh All Visible.jpg : Whole grid to compare the boundary layers locations Badorientation.jpg : Certain cells have a bad snap (in red) CJsnappy.jpg : Better mesh with the CJsnappyHexMesh but still needs work |
|
September 3, 2012, 13:36 |
|
#12 |
New Member
Antoine Haettel
Join Date: May 2011
Posts: 6
Rep Power: 15 |
I use ParaView but I only used half of the body as I applied a symmetry plane for the solver. If you click on the VTKPolyhedron field on the propriety tab, you'll get nicely formed hexaedrons. This works only for the boundaries and not for the slices as you can see on the CJsnappy.jpg image I posted.
Last edited by wyldckat; September 3, 2012 at 17:06. Reason: rectified accidental post ;) |
|
September 3, 2012, 17:05 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Tonioh211: I've got only two suggestions:
Bruno
__________________
|
|
September 5, 2012, 04:33 |
|
#14 |
New Member
Antoine Haettel
Join Date: May 2011
Posts: 6
Rep Power: 15 |
Thanks Bruno, I'm trying it as speaking but turning the mesh quality parameters all off helps a little but doesn't allow me to have a fully layered hull. I'll have a few more tries otherwise I'll try to understand the CJsnappy better and see if there are other ways to handle the boundary generation.
|
|
|
|