看一下你的边界条件代码中的 write 函数,你需要在 write 函数中定义需要写出到边界条件字典文件中的 参数,例如:
void turbulentMixingLengthDissipationRateInletFvPatchScalarField::write
(
Ostream& os
) const
{
fvPatchScalarField::write(os);
os.writeEntry("mixingLength", mixingLength_);
os.writeEntry("phi", this->phiName_);
os.writeEntry("k", kName_);
writeEntry("value", os);
}
,如果你没有定义写出 fixedU ,就会出现你描述的现象。