41 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
46 Field<float> floats(cmptFld.size());
49 floats[i] = float(cmptFld[i]);
52 INTEGER4 size = INTEGER4(floats.size());
53 INTEGER4 IsDouble = 0;
58 if (!TECDAT112(&size, floats.begin(), &IsDouble))
70 const bool nearCellValue,
71 const GeometricField<Type, fvPatchField, volMesh>& vfld,
77 return vfld.boundaryField()[
patchi].patchInternalField();
81 return vfld.boundaryField()[
patchi];
89 const GeometricField<Type, fvsPatchField, surfaceMesh>& sfld,
93 const polyBoundaryMesh& patches = sfld.mesh().boundaryMesh();
95 tmp<Field<Type>> tfld(
new Field<Type>(faceLabels.size()));
96 Field<Type>& fld = tfld.ref();
100 label facei = faceLabels[i];
102 label patchi = patches.whichPatch(facei);
106 fld[i] = sfld[facei];
110 label localFacei = facei - patches[
patchi].start();
111 fld[i] = sfld.boundaryField()[
patchi][localFacei];
119 template<
class GeoField>
122 const PtrList<GeoField>& flds
128 names[i] = flds[i].name();
140 DynamicList<INTEGER4>& varLocation
145 if (!varNames.empty())
150 label nCmpts = pTraits<Type>::nComponents;
154 varNames += names[i];
155 varLocation.append(loc);
170 + pTraits<Type>::componentNames[cmpt];
172 varLocation.append(loc);
179 template<
class GeoField>
182 const PtrList<GeoField>& flds,
185 DynamicList<INTEGER4>& varLocation
188 getTecplotNames<typename GeoField::value_type>
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static wordList getNames(const PtrList< GeoField > &)
static void getTecplotNames(const wordList &names, const INTEGER4 loc, string &varNames, DynamicList< INTEGER4 > &varLocation)
void writeField(const Field< Type > &fld) const
Write generic Field.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
tmp< Field< Type > > getFaceField(const GeometricField< Type, fvsPatchField, surfaceMesh > &, const labelList &faceLabels) const
Get mixed field: fvsPatchField for boundary faces and.
List< label > labelList
A List of labels.
static const string null
An empty string.
tmp< Field< Type > > getPatchField(const bool nearCellValue, const GeometricField< Type, fvPatchField, volMesh > &vfld, const label patchi) const
Get either fvPatchField or patchInternalField.
List< word > wordList
A List of words.
A class for managing temporary objects.