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

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 28, 2021, 04: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

 

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 15:46
[snappyHexMesh] Trying to understand the motorBike tutorial Andyjoe OpenFOAM Meshing & Mesh Conversion 10 August 10, 2014 16:57
Problem on Fluent Tutorial: Horizontal Film Boilig Feng FLUENT 2 April 13, 2013 05:34
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 16:01
[snappyHexMesh] SnappyHexMesh meshes inside and outside of an STL geometry villier OpenFOAM Meshing & Mesh Conversion 17 June 15, 2010 19:51


All times are GMT -4. The time now is 12:21.