interFoam + 周期边界条件的压力问题
-
各位老师好,最近在研究在有重力作用下的interFoam周期性边界条件,如气泡上升,液膜降落等,
看到几个论坛交流的帖子,有fixedJump设置压力梯度的,但是不适合所有的情况 https://www.cfd-china.com/topic/1992/cyclic周期性边界条件在这篇论坛里提到
https://www.cfd-online.com/Forums/openfoam-solving/79300-interfoam-cyclic-boundary-condition-issue.html
interFoam求解器求解的时候把重力放到了压力计算的过程中,$p_{\rho g h}=p-\rho gh$。 请问有老师做过相似的问题可以交流一下吗 -
我也是interFoam + 周期边界条件,计算气泡槽道流。
不过我没有加重力,而是直接添加体积源项。/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2012 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object fvOptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // momentumSource { type meanVelocityForce; active yes; meanVelocityForceCoeffs { selectionMode all; fields (U); Ubar (1.0363 0 0); relaxation 1.0; } } /*momentumSource { type vectorSemiImplicitSource; active on; vectorSemiImplicitSourceCoeffs { selectionMode all; //volumeMode absolute; // specific volumeMode specific; injectionRateSuSp { U ( (0.3 0 0) 0); //partial p / partial x } } }*/ //************************************************************************** //