CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

OF Multiphase: interFoam-replace DTC Hull STL file with wigley hull

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Ship Designer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2020, 16:02
Default OF Multiphase: interFoam-replace DTC Hull STL file with wigley hull
  #1
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
[SIZE="3"][SIZE="3"][SIZE="2"]HI ALL,

Now I am working on interFoam using DTC hull case tutorial. Currently I am trying to replace the DTC HULL with a simpler Wigley hull and then repeat the simulation (RAS-interFoam).

DTC hull and Wigley hull are not in the same size and not in same position, I have maneged to make wigley hull in same scaling and same centre position using 3d builder and meshLab, but it appears erros when i conduct surfaceFeatureExtract, which is attached. Does anyone know how to scale this kind of STL file and make it work?

Btw, both STL files of DTC Hull and wigley hull are from OF resource.

please let me know if you have any hint. Any further discussion will be appreciated!

Many thanks
Tony
Attached Images
File Type: png Reported error.png (160.7 KB, 40 views)
zyfsoton is offline   Reply With Quote

Old   August 3, 2020, 22:12
Default
  #2
Senior Member
 
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7
Ship Designer is on a distinguished road
Hi Tony,

Judging from the error message it seems that there is an error in the STL file. Have you tried running the surfaceCheck utility on the STL file after modifying it with the programs you've used? As an alternative you could also use OpenFOAM's own surface manipulation tools found in applications/utilities/surface/. If you want to use the Wigley hull within the domain of the DTCHull tutorial, make sure you close the Wigley hull, i.e. add a deck. Otherwise snappyHexMesh won't be able to subtract the hull from the domain because it has no volume. You might also want to have a look at this case with the Wigley hull by WolfDynamics: http://www.wolfdynamics.com/tutorials.html?id=149
zyfsoton likes this.
Ship Designer is offline   Reply With Quote

Old   December 1, 2020, 19:11
Default
  #3
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Hi Claudio, many thanks for your reply and that's very helpful. And sorry for the late reply because of focusing on some writing recently.

Now I have fixed this problem, but have another one: after running the ship case using interFoam (I am using OFv6) and I hope to compute the wave profile along the hull (something like the image attached) through paraview. Do you have any idea how to do this? Appreciated if you can share some steps, many thanks! T
Attached Images
File Type: png Screen Shot 2020-12-01 at 20.40.23.png (39.1 KB, 19 views)
zyfsoton is offline   Reply With Quote

Old   December 1, 2020, 19:15
Default
  #4
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7
zyfsoton is on a distinguished road
Quote:
Originally Posted by Ship Designer View Post
Hi Tony,

Judging from the error message it seems that there is an error in the STL file. Have you tried running the surfaceCheck utility on the STL file after modifying it with the programs you've used? As an alternative you could also use OpenFOAM's own surface manipulation tools found in applications/utilities/surface/. If you want to use the Wigley hull within the domain of the DTCHull tutorial, make sure you close the Wigley hull, i.e. add a deck. Otherwise snappyHexMesh won't be able to subtract the hull from the domain because it has no volume. You might also want to have a look at this case with the Wigley hull by WolfDynamics: http://www.wolfdynamics.com/tutorials.html?id=149
Hi Claudio, many thanks for your reply and that's very helpful. And sorry for the late reply because of focusing on some writing recently.

Now I have fixed this problem, but have another one: after running the ship case using interFoam (I am using OFv6) and I hope to compute the wave profile along the hull (something like the image attached) through paraview. Do you have any idea how to do this? Appreciated if you can share some steps, many thanks! T
Attached Images
File Type: png Screen Shot 2020-12-01 at 20.40.23.png (39.1 KB, 11 views)
zyfsoton is offline   Reply With Quote

Old   December 1, 2020, 20:17
Default
  #5
Senior Member
 
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7
Ship Designer is on a distinguished road
Hello Tony,

Glad I could help! I never needed to get the wave profile you are looking for but I know they are used to compare measured model test wave profiles with calculated ones. Maybe there's a quicker and more elegnat way to do this in Paraview, but out of my mind my first idea would be like this:
  1. In Paraview, create a filter for the wave elevation surface, Contour by alpha set to 0.5
  2. Make sure only this filter is visible in the pipeline browser, then execute File > Save Data… and export the free surface geometry to an obj or stl file.
  3. Open the hull geometry and import the free surface geometry into a 3D CAD application like Rhino 3D. Make sure the relative positioning to each other is the same as in the CFD domain.
  4. Add transverse (station) planes spaced along the hull length as many as you need points on the plot.
  5. Intersect hull, free surface and transverse planes to obtain intersection points.
  6. Get z-coordinates from points and use them to make the plot in the plot/chart application of your choice.
I haven't tried it so feel free to let me know how this works. Good luck!

Cheers, Claudio
Ship Designer 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 calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


All times are GMT -4. The time now is 07:20.