openfoam对于气泡进行自适应网格细化出现棱角
-
继续往下计算的话,应该会算出来圆弧边的界面?
不过这个自适应加密对alpha.water的处理确实有点粗暴啊,我之前用的时候也没注意这一点。会不会是哪里没设置好?看看你的dynamicMeshDict。
还有就是fvSolution里面不要显式地把correctPhi改为no,自适应加密之后确实是需要进行通量修正的。
我的做法是先进行预加密,然后把在背景网格上已经有一定加密的网格文件直接替换掉constant/polyMesh。
https://www.cfd-china.com/topic/6177/paraview查看自适应加密网格出错 -
@学流体的小明 恩呢,谢谢您的回答。
/--------------------------------- C++ -----------------------------------
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: v2212 |
| \ / A nd | Website: www.openfoam.com |
| \/ M anipulation | |
*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //dynamicFvMesh dynamicRefineFvMesh;
// How often to refine
refineInterval 1;// Field to be refinement on
field alpha.water;// Refine field inbetween lower..upper
lowerRefineLevel 0.001;
upperRefineLevel 0.999;// If value < unrefineLevel unrefine
unrefineLevel 1;// Have slower than 2:1 refinement
nBufferLayers 6;// Refine cells only up to maxRefinement levels
maxRefinement 1;// Stop refinement if maxCells reached
maxCells 15000000;// Flux field and corresponding velocity field. Fluxes on changed
// faces get recalculated by interpolating the velocity. Use 'none'
// on surfaceScalarFields that do not need to be reinterpolated.
correctFluxes
(
(phi none)
(nHatf none)
(rhoPhi none)
(alphaPhi_ none)
(ghf none)
(phi0 none)
(dVf_ none)
(alphaPhi0.water none)
(alphaPhiUn none)
);// Write the refinement level as a volScalarField
dumpLevel true;// ************************************************************************* //
这是我的dynamicMeshDict文件。
我按您说的方法去试一下。