|
[Sponsors] |
[snappyHexMesh] Mesh around ship with appropriate free surface refinement |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 30, 2013, 04:23 |
|
#21 | |
Member
Hannes
Join Date: Apr 2009
Location: Schleswig, Germany
Posts: 38
Rep Power: 17 |
Remove the 0 directory (save all relevant field data (U, p, ...) in 0.org before)
For getting the best cell sizes for resolution of a typical wave train several refine passes in normal direction are usually required, but, if you want to limit the normal refinement to specific refinement levels (e.g. up to one below the hull refinement level) you run into challenges after the first pass due to loss of information (cellLevel). Hannes Quote:
__________________
FluidEngineeringSolutions |
||
May 30, 2013, 05:52 |
|
#22 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
Hi Andrea,
to avoid the mentioned error message and to prevent you from copying folders and so on you could also use the -overwrite flag for some of the commands. That works for me. So the workflow looks like: 1. blockMesh 2. snappyHexMesh -overwrite 3. topoSet 4. refineMesh -dict -overwrite ( till now checkMesh is very good !! ) 5. snappyHexMesh -overwrite This however makes it impossible to see earlier results of your mesh. A question that came up to me: How much does the mesh quality improve if you do the snappy in two steps instead of one. my current procedure looks like: blockMesh surfaceFeatureExtract -includedAngle 150 (...) decomposePar snappyHexMesh -overwrite (of course with mpirun etc) reconstructParMesh topoSet refineMesh -dict -overwrite then changing the set in the refineMeshDict topoSet refineMesh -dict -overwrite with this procedure I get some good results. Do you think with my approach and yours combined the results could be even more improved? |
|
May 31, 2013, 08:09 |
|
#23 |
New Member
Join Date: Apr 2011
Posts: 28
Rep Power: 15 |
Dear all,
thanks for all your replies. They have been very useful to me, and now my procedure works fine. About your issue Colin: as you know the problem is related to mesh quality. Refining the mesh in the free surface region after having completed all the three SHM phases (castellated, snap, layer) could be critical for skewness and non-orthogonality of cells. So a good solution can be move up the refineMesh phase, just after the castellated meshing. As Vieri suggested, this works quite fine for me. But some issues regarding the layers insertion remain: the boundary layer appears not complete in many areas. I think you have managed similar problem, very frequently, using SHM in the past. Which parameters in my SHMD (please see attached file) can improve my boundary layer, in your opinion? Thanks again, regards. Andrea |
|
June 4, 2013, 05:44 |
|
#24 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
Dear Andrea,
I have also troubles with the layer settings and I overcome it with a more or less suitable workaround: scaling down the ship to model scale and then simply just add only one layer, for adding more layers doesn't work. see attached my sHMD for comparison. I hope you find the information you need. regards |
|
October 10, 2013, 12:43 |
|
#25 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Dear all,
I try to mesh with refinement in z direction. I use the procedure blockMesh/SHM/topoSet/refineMesh but when I run topoSet, I have the following message: Create polyMesh for time = 0 Reading topoSetDict Time = 0 mesh not changed. Created cellSet refineCells Applying source boxToCell Adding cells with center within box (-30 0 -2) (66 -24 2) cellSet refineCells now size 0 End It's normal to have size 0? Where is my mistake? I attache my blockMesh and topoSetdict. best regards |
|
October 11, 2013, 04:56 |
|
#26 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Hi all
I found the solution. It seem I must create an box in SHM around the free surface to have a size different than 0 whit topoSetDict. But now, when I use refineMeshDict, even if in direction part in refineMeshDict, I choose only "normal", always It refine all cells in all directions like if he don't take account of topoSetDict and refineMeshDict. Any Idea? Best Regard Vince |
|
October 11, 2013, 05:55 |
|
#27 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Ok I resolve my problem with refineMesh. I just forget to indicate the file where is the refineMeshDict.
Now it's ok. Vince |
|
October 12, 2013, 06:33 |
|
#28 |
New Member
Rafael Coelho
Join Date: Jun 2012
Location: Portsmouth
Posts: 23
Rep Power: 14 |
Hi Vince,
Thanks for your contribution. Do you mind post your case? I never used refine mesh before and it will be good to compare my results? Regards, Rafael |
|
October 13, 2013, 06:43 |
|
#29 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Hi Rafael
Sadly, I can't post this case because the CAD geometry is confidential. But I'm going to test the KCS hull and I will be happy to post this case. I hope I will have some good result to show. Regards Vince |
|
October 14, 2013, 05:11 |
|
#30 |
New Member
Rafael Coelho
Join Date: Jun 2012
Location: Portsmouth
Posts: 23
Rep Power: 14 |
It will be good to see your KCS hull results. Do you have any experimental data to compare it?
|
|
October 14, 2013, 06:08 |
|
#31 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Hi Rafael
I have some experimental data from the Gothenburg 2010 workshop but if you have more data base, I'm interesting to see that. Regards Vince |
|
October 22, 2013, 11:58 |
|
#32 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Hi Rafael
I test the KCS with this meshing method. I join the folder, but sadly for the moment, I have a Ct=3.21.10-3 where it's expected Ct=3.711.10-3, so an error up to 13%. I use a simple K-epsilon model for turbulence and for numerical scheme, you can see in the folder. If anybody have an idea to increase the precision. I must delete the CAD file to upload my case but if some people would like the CAD, I can send by mail. Regards Vince |
|
November 5, 2013, 04:22 |
|
#33 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
Hey Vince,
have you tried the k-omega-SST turbulence model instead of the k-epsilon model? For me the k-omega model gives somewhat better results than the k-epsilon. It would be interesting to see whether you could confirm that or not. kind regards Colin |
|
November 6, 2013, 03:31 |
|
#34 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Hey Colin
I test yesterday the same calcul with kOmega SST model. If it's little better, I haven't a result closed to experience yet. An another problem that if I see the forces evolutions, it's not stabillize after 100s (I work with the full scale model). I attached the Fpx, Fvx et Fpz evolution. In your opinion, what's wrong? My mesh, maybe too coarse? Or my schemes (I modify the div(rho*phi,U), div(phi,k) and div(phi,omega) ? You can note, I use for k, omega and nut parameter, the formula found on this page: http://www.cfd-online.com/Wiki/Turbu...ary_conditions Kind regards Vince |
|
November 6, 2013, 06:18 |
|
#35 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
Hi Vince
I noticed one major difference: You use interFoam while I use LTSInterFoam. Apart from that:
Code:
ddtSchemes { default localEuler rDeltaT; } gradSchemes { default Gauss linear; } divSchemes { div(rho*phi,U) Gauss linearUpwind grad(U); div(phi,alpha) Gauss vanLeer; div(phirb,alpha) Gauss interfaceCompression; div(phi,k) Gauss upwind; div(phi,omega) Gauss upwind; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } fluxRequired { default no; p_rgh; pcorr; alpha; } lead to a more stable calculation for waves are dampened. Does that help you? regards Colin |
|
November 7, 2013, 06:36 |
|
#36 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Hi Colin
Thanks for yours indications. I use 0.001 for I (I'm going to test with 0.005) Mu turbulent lenght scale is 1 Lpp (I assume it's too hight) My Cmu is 0.09 For my fvscheme, I use a limitedLinear scheme for dive(rho*phi,U), like for div(phi,k) and div(phi,omega). With those schemes, I have better results than with basic scheme. But with those scheme, when I have 2.6M cells, with LTSInterFoam, my calcul crash, that's why I use interFoam. Finally, if the water must passes the domain 3xtimes, 100s is not enought (U=12.34m/s and the lenght of domain is 883m). I'm going change the turbulent lenght and I and run the calcul during 215s to see if I have a better result. regards Vince |
|
November 13, 2013, 06:39 |
|
#37 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Hi Collin
So I change some values (turbulente intensity, turbulente length scale...) and I use a KomegaSST like turbulente model. I modifie my mesh, now I have 2.6M of cells. I run the calcul on 3 froude number and compare with experience. The total force is always under estimate (between 21.9% and 11.5%). But If I decompose the forces from the experience between viscous force (I use the ITTC57 formula) and wave resistance and I compare with pressure and viscous forces from OF, I note the pressure forces are very close (1.68% for Fr=0.28). However, viscous forces are really under estimate (67.45% for Fr=0.28!). I assume I must add a layer (for the moment I don't arrive to have a correct layer for KCS) and may be increase the number of cells. have you any idea to improve the results? Last question, when the calcul run during a long time, it appear some wave (I join a picture) and the forces begin to split. What's wrong? My boundary conditions (wall on side and bottom, symmetry on the other side and classical inlet/outlet on enter face/exit face). Regards Vince |
|
November 14, 2013, 04:15 |
|
#38 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
Hi Vince,
indeed the layers are important when it comes to viscous effects. Did you run yPlusRAS on your mesh, and if so what are the results? Concerning the incoming waves: If the mesh is too small this leads to non-physical waves in the domain. So I use a rather coarse mesh at the inlet to dampen out some irregularities Then as approaching the ship hull I gradually make the mesh more dense and after that when the wake field gets uninteresting again I'm using again a coarser mesh to dampen the waves and avoid reflection. Another question that I have is, is the distance from your bow to the inlet really that short? If so you might want to increase this distance , for otherwise the ship might impair the inlet. For the rest it is difficult to give you more hints, for i dont know the rest of the settings you have. Another hint I have is what I found just yesterday: http://www.openfoamworkshop2013.org/...p?Main=2&sub=1 on this page you will find a paper: Practical Application of OpenFOAM to Prediction of Hull Resistance of some guys from Hyundai where they also describe some settings in OF I'm about to compare my settings with theirs and see how it effects the results. regards Colin |
|
November 14, 2013, 04:33 |
|
#39 |
Member
Hannes
Join Date: Apr 2009
Location: Schleswig, Germany
Posts: 38
Rep Power: 17 |
Hi Vince,
I've good experience with 1 length ahead of the ship, 3 astern, 2 aside, 1 below, 1/2 above. Further, integrate waves2foam into your solver and use the potentialCurrent condition to stabilise in- and outlet. Good Luck Hannes
__________________
FluidEngineeringSolutions |
|
November 22, 2013, 11:10 |
|
#40 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 |
Hi Colin and Hannes
Thanks for yours replies. I meshing with new dimension for blockMesh with different mesh density and the problem of incoming wave was solved. Now I try to add a layer but for the moment, I don't arrive on the KCS (if you have some suggestion...). I read with lot of interest the paper "Pratical Application of OpenFOAM to predict hull resistance" present in the link gives by Colin. I have some question about this: -he use for alpha divscheme a mHRIC, it's the first time I meet this scheme, and you? -with LTSInterFoam, I believe it was impossible to have degree of freedom but he use DFBI (Dynamic fluid body interaction) module, it's an in-house modul developpe by HHI or it's present with the basic version of OF? Regards Vince |
|
Tags |
refinement, ship wave, shm, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
[snappyHexMesh] Snappy Hex Mesh - issue with smoothness of the model edges | olek.warc | OpenFOAM Meshing & Mesh Conversion | 1 | August 31, 2018 12:31 |
[snappyHexMesh] crash sHM | H25E | OpenFOAM Meshing & Mesh Conversion | 11 | November 10, 2014 12:27 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |