namespace Foam { //- Interpolate field vf according to direction dir template tmp> interpolate ( const GeometricField& vf, const surfaceScalarField& dir, const word& reconFieldName = word::null ) { tmp> tsf ( fvc::interpolate ( vf, dir, "reconstruct(" + (reconFieldName != word::null ? reconFieldName : vf.name()) + ')' ) ); GeometricField& sf = tsf(); sf.rename(vf.name() + '_' + dir.name()); return tsf; } }