const fvMesh& mesh = refCast<const fvMesh>(this->db());
赋值建议采用
operator==(field);
具体可以参考codedFixedValuePointPatchField.H的注释
Example:
movingWall
{
type codedFixedValue;
value uniform 0;
name rampedFixedValue; // name of generated bc
code
#{
operator==
(
vector(0,0,1)
*min(10, 0.1*this->db().time().value())
);
#};
// codeInclude
//#{
// #include "fvCFD.H"
//#};
// codeOptions
//#{
// -I$(LIB_SRC)/finiteVolume/lnInclude
//#};
}