Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
只能看出来phaseChangeTwoPhaseMixure::vDotAlphal()函数有问题 :slight_smile:
phaseChangeTwoPhaseMixure::vDotAlphal()
错误提示发散了,该从哪里找原因呢
时间步长9e-9?另外这才刚开始算第一步,不是发散:astonished:
错误显示分母为0; Foam::phaseChangeTwoPhaseMixture::vDotAlphal() const { volScalarField alphalCoeff(1.0/rho1() - alpha1_*(1.0/rho1() - 1.0/rho2())); Pair<tmp<volScalarField> > mDotAlphal = this->mDotAlphal(); rho1() rho2() 这个地方,公式没错,该怎样修改呢
我做的是可压缩空化,对于密度是变化的,case里面需要定义初始密度?
@mark 能否提供测试代码和算例?