CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Replacing hullBox/hullWall with STL in boatAndPropeller tutorial

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2021, 05:06
Default Replacing hullBox/hullWall with STL in boatAndPropeller tutorial
  #1
New Member
 
Norge
Join Date: Dec 2020
Posts: 7
Rep Power: 5
abeda is on a distinguished road
Hi, foamers.

I want to make a ship move from the forces generated from propeller, so my first thought was that the boatAndPropeller was a good starting point. So therefore I want to replace the hullWall in the tutorial by an STL geometry and then apply the power of snappyhexmesh.

My OF version: v2012
Platform: Ubuntu 20.04 in WSL2.
Geometry is created in Blender, using the new SnappyHexMesh add-on that supports openfoam.com.


So far I'm only able see propellerWall and rudderWall in paraView after running blockmesh, toposet/refineMesh pairs, toposets/subsetMesh pairs, snappyhexmesh and setfields. This is the sequence I'm using.

In the blockMeshDict from the original boatAndPropeller tutorial I find this line:

Code:
hex (8 9 10 11 12 13 14 15) hullBox (32 16 16) simpleGrading (1 1 1)
This line defines a cellZone named hullBox, right?
While the hullWall in the original tutorial is populated later in subsetMesh, right?
(For reference:
Code:
  hullWall
    {
        type wall;
        faces ();
    }
)
So if I uncomment and replacing this line in Allrun.pre script that populates the hullWall patch by using the keepBox cellset
Code:
runApplication -s hull topoSet -dict system/topoSetDictHull
runApplication -s hull subsetMesh keepBox -patch hullWall -overwrite
by adding this lines refinementSurfaces in SnappyHexMeshDict it should work? Or maybe I still don't understand this....
Code:
geometry
{
    hullWall
    {
        type triSurfaceMesh;
        file "hullWall.stl";
        // Min Bounds = [-2.50269e+00 -3.34423e-01 -1.43194e-01]
        // Max Bounds = [ 2.50000e+00  3.34428e-01  2.30424e-01]
        // Area = 9.23760e+00
    }
}
refinementSurfaces
    {
        hullWall
        {
            level (0 0);
            patchInfo { type wall; }
            faceZone hullWall;
            faceType boundary;
            cellZone hullWall;
            cellZoneInside inside;
        }

    }
Or should it be like this?
Code:
refinementSurfaces
    {
        hullWall
        {
            level (0 0);
            patchInfo { type wall; }
            faceZone hullBox;
            faceType boundary;
            cellZone hullBox;
            cellZoneInside inside;
        }

    }

But what do I do handle overset faces, when I use SnappyHexMesh?
Code:
overset1  //oversetHull
    {
        type        overset;
        faces
        (
            ( 8 12 15 11)
            (10 14 13  9)
            (11 15 14 10)
            ( 9 13 12  8)
            ( 9  8 11 10)
            (12 13 14 15)
        );
    }
Should I still make an entry for overset1 in blockMeshDict, or is there a more clever and elegant way in solving this? E.g is it possible to snappyhexmesh or am I forced to use toposet to do this?

I have also looked at the DTCMovingHull tutorial for inspiration, but this doesn't define overset, but it does the toposet/refinemesh pair.

But maybe I'm overcomplicating this problem?
Maybe I just can resize the hullBox in blockMeshDict so it surrounds the hullWall patch from STL file and do this instead i Allrun.pre script?
Code:
runApplication -s hull topoSet -dict system/topoSetDictHull
#runApplication -s hull subsetMesh keepBox -patch hullWall -overwrite
abeda is offline   Reply With Quote

Old   August 9, 2021, 07:12
Default
  #2
New Member
 
Norge
Join Date: Dec 2020
Posts: 7
Rep Power: 5
abeda is on a distinguished road
Hi, Foamers.

I never thought I was going to answer to self here.
But the release OF-2106 solved everything for me.
For the OF-2106 the boatAndPropeller was replaced by rigidBodyHull. RigidBodyHull example is using obj files for geometry.

I did some changes to the example, though. In 10 minutes I had removed the overset-2 (MRF, OverSetPatch) and did my first run with overset.

I have one question, though.
The hull geometry looks like the KVLCC2 geometry. Is that correct?
abeda is offline   Reply With Quote

Old   January 21, 2022, 01:28
Default
  #3
New Member
 
manoj
Join Date: Dec 2013
Posts: 2
Rep Power: 0
emjaey3590 is on a distinguished road
Hello Abeda,


I am facing some problem regarding connecting overset to snappyHexMesh. I am using openfoam-2012 and it has no tutorials on how to use the snappyHexMesh and oversetmesh approach. I have seen that you wrote that you had solve it. Can you please share the solved problem of your hull?
emjaey3590 is offline   Reply With Quote

Old   November 18, 2022, 09:02
Default
  #4
New Member
 
Álvaro
Join Date: Jun 2022
Location: Spain
Posts: 4
Rep Power: 4
coke1997 is on a distinguished road
Quote:
Originally Posted by
;820670
Hello Abeda,


I am facing some problem regarding connecting overset to snappyHexMesh. I am using openfoam-2012 and it has no tutorials on how to use the snappyHexMesh and oversetmesh approach. I have seen that you wrote that you had solve it. Can you please share the solved problem of your hull?
Hi emjaey3590,

I believe OpenFOAM 2012 is not compatible with overset solvers. At least, in my experiences OpenFOAM V8 has not the over* solvers available. Try this code find $FOAM_SOLVERS -iname "over*" to make sure that you have the solvers in your OF version.

Good luck!
coke1997 is offline   Reply With Quote

Old   November 18, 2022, 09:29
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,206
Rep Power: 28
Yann will become famous soon enough
Quote:
Originally Posted by coke1997 View Post
Hi emjaey3590,

I believe OpenFOAM 2012 is not compatible with overset solvers. At least, in my experiences OpenFOAM V8 has not the over* solvers available. Try this code find $FOAM_SOLVERS -iname "over*" to make sure that you have the solvers in your OF version.

Good luck!
Hi,

Overset is available in the ESI-OpenCFD branch (openfoam.com) since OpenFOAM-v1706. So OpenFOAM-v2012 definitely includes overset solvers.

However, AFAIK there is no overset capabilities in the foundation branch (openfoam.org).

Cheers,
Yann
Yann is offline   Reply With Quote

Reply

Tags
blender, multiphase, oversetmesh, snappyhexmesh 3d


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
[CAD formats] beginners how to convert binarySTL to asciiSTL with regions (good for SHM tutorial) soonic OpenFOAM Meshing & Mesh Conversion 11 July 28, 2017 16:46
[snappyHexMesh] Trying to understand the motorBike tutorial Andyjoe OpenFOAM Meshing & Mesh Conversion 10 August 10, 2014 17:57
Problem on Fluent Tutorial: Horizontal Film Boilig Feng FLUENT 2 April 13, 2013 06:34
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 17:01
[snappyHexMesh] SnappyHexMesh meshes inside and outside of an STL geometry villier OpenFOAM Meshing & Mesh Conversion 17 June 15, 2010 20:51


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