Loading...
Searching...
No Matches
directionInterpolate.H
Go to the documentation of this file.
1namespace Foam
2{
3
4//- Interpolate field vf according to direction dir
5template<class Type>
7(
9 const surfaceScalarField& dir,
10 const word& reconFieldName = word::null
11)
12{
14 (
16 (
17 vf,
18 dir,
19 "reconstruct("
20 + (reconFieldName.empty() ? vf.name() : reconFieldName)
21 + ')'
22 )
23 );
24
26
27 sf.rename(vf.name() + '_' + dir.name());
28
29 return tsf;
30}
31
32}
Generic GeometricField class.
const word & name() const noexcept
Return the object name.
Definition IOobjectI.H:205
virtual void rename(const word &newName)
Rename.
A class for managing temporary objects.
Definition tmp.H:75
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
Definition tmpI.H:235
A class for handling words, derived from Foam::string.
Definition word.H:66
static const word null
An empty word.
Definition word.H:84
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
Namespace for OpenFOAM.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
Definition curveTools.C:75