|
[Sponsors] |
[snappyHexMesh] Replacing hullBox/hullWall with STL in boatAndPropeller tutorial |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 28, 2021, 05:06 |
Replacing hullBox/hullWall with STL in boatAndPropeller tutorial
|
#1 |
New Member
Norge
Join Date: Dec 2020
Posts: 7
Rep Power: 5 |
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) 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 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; } } 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) ); } 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 |
|
August 9, 2021, 07:12 |
|
#2 |
New Member
Norge
Join Date: Dec 2020
Posts: 7
Rep Power: 5 |
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? |
|
January 21, 2022, 01:28 |
|
#3 |
New Member
manoj
Join Date: Dec 2013
Posts: 2
Rep Power: 0 |
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? |
|
November 18, 2022, 09:02 |
|
#4 | |
New Member
Álvaro
Join Date: Jun 2022
Location: Spain
Posts: 4
Rep Power: 4 |
Quote:
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! |
||
November 18, 2022, 09:29 |
|
#5 | |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,206
Rep Power: 28 |
Quote:
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 |
||
Tags |
blender, multiphase, oversetmesh, snappyhexmesh 3d |
|
|
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 |