如何导出sprayFoam能量方程中的各项参数?
-
目前想分析下能量方程中各项参数(如非定常项、对流项、亚格子项,化学反应源项和扩散项)在总能量中所占比例,针对下面sprayFoam中求解能量方程的EEqn.H文件,请教大家采用什么方法能导出各项参数到新时刻文件夹中呢?
EEqn.H{ volScalarField& he = thermo.he(); fvScalarMatrix EEqn ( fvm::ddt(rho, he) + mvConvection->fvmDiv(phi, he) + fvc::ddt(rho, K) + fvc::div(phi, K) + ( he.name() == "e" ? fvc::div ( fvc::absolute(phi/fvc::interpolate(rho), U), p, "div(phiv,p)" ) : -dpdt ) - fvm::laplacian(turbulence->alphaEff(), he) == rho*(U&g) + parcels.Sh(he) + radiation->Sh(thermo, he) + Qdot + fvOptions(rho, he) ); EEqn.relax(); fvOptions.constrain(EEqn); EEqn.solve(); fvOptions.correct(he); thermo.correct(); radiation->correct(); Info<< "T gas min/max " << min(T).value() << ", " << max(T).value() << endl; } drhoedt=fvm::ddt(rho, he);