internalField() 和 Ref()
-
OpenFOAM-4.x以前?反正是老的:
const scalarField& psi = U.internalField(); scalarField& psi = U.internalField();
OpenFOAM-5.x, 4.x:
const scalarField& psi = U.primitiveField(); scalarField& psi = U.primitiveFieldRef();
https://www.openfoam.com/documentation/developer-upgrade-guide.php
-
对,最近也是发现这个改动。不太明白出于什么目的,之前函数重载用着挺舒服的。不知道为什么要改成这样