34 void Foam::patchProbes::sampleAndWrite
36 const GeometricField<Type, fvPatchField, volMesh>& vField
39 Field<Type> values = sample(vField);
46 probeStream <<
setw(w) << vField.time().value();
50 probeStream <<
' ' <<
setw(w) << values[probeI];
58 void Foam::patchProbes::sampleAndWrite
60 const fieldGroup<Type>&
fields
69 GeometricField<Type, fvPatchField, volMesh>
74 obr_.time().timeName(),
75 refCast<const polyMesh>(obr_),
80 refCast<const fvMesh>(obr_)
98 <GeometricField<Type, fvPatchField, volMesh> >
113 Foam::patchProbes::sample
115 const GeometricField<Type, fvPatchField, volMesh>& vField
118 const Type unsetVal(-VGREAT*pTraits<Type>::one);
120 tmp<Field<Type> > tValues
122 new Field<Type>(probeLocations_.size(), unsetVal)
125 Field<Type>& values = tValues();
127 const polyBoundaryMesh&
patches = vField.mesh().boundaryMesh();
129 forAll(probeLocations_, probeI)
131 label faceI = elementList_[probeI];
135 label patchI = patches.whichPatch(faceI);
136 label localFaceI = patches[patchI].whichFace(faceI);
137 values[probeI] = vField.boundaryField()[patchI][localFaceI];
150 Foam::patchProbes::sample(
const word& fieldName)
const
154 obr_.lookupObject<GeometricField<Type, fvPatchField, volMesh> >