@东岳 
李老师,怎么用到h0中的数据呢,报了这个错误
outlet
{
type codedFixedValue;
value uniform 0.01; //default value
redirectType linearTBC; //name of new BC type
code
#{
const vectorField& Cf = patch().Cf(); // get face center coordinate;
scalarField& h = *this;
forAll(Cf,faceI)
{
h[faceI] = 0.01-h0[faceI];
}
#};