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).
问题:在scalarTransportFoam中,目前是把rhoc当做常数,并除到K下面,得到DT 请问如果rho随空间变化(比如说现有 volScalarfield rho),该如何实现该方程的求解呢?
在代码里加入
volScalarField rho ( IOobject ( "rho", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh );
然后直接用就行