directionInterpolate.H
Go to the documentation of this file.
1 namespace Foam
2 {
3 
4 //- Interpolate field vf according to direction dir
5 template<class Type>
6 tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate
7 (
9  const surfaceScalarField& dir,
10  const word& reconFieldName = word::null
11 )
12 {
14  (
16  (
17  vf,
18  dir,
19  "reconstruct("
20  + (reconFieldName != word::null ? reconFieldName : vf.name())
21  + ')'
22  )
23  );
24 
26 
27  sf.rename(vf.name() + '_' + dir.name());
28 
29  return tsf;
30 }
31 
32 }
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf, const surfaceScalarField &faceFlux, Istream &schemeData)
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
Definition: curveTools.C:75
A class for handling words, derived from string.
Definition: word.H:59
volScalarField sf(fieldObject, mesh)
Namespace for OpenFOAM.
const word & name() const
Return name.
Definition: IOobject.H:260
Generic GeometricField class.
A class for managing temporary objects.
Definition: PtrList.H:118
static const word null
An empty word.
Definition: word.H:77