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 VolField<Type>& vfld,
77 return vfld.boundaryField()[
patchi].patchInternalField();
81 return vfld.boundaryField()[
patchi];
89 const SurfaceField<Type>& 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];
106 fld[i] = sfld[facei];
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.
static const string null
An empty string.
tmp< Field< Type > > getFaceField(const SurfaceField< Type > &, const labelList &faceLabels) const
Get mixed field: fvsPatchField for boundary faces and.
tmp< Field< Type > > getPatchField(const bool nearCellValue, const VolField< Type > &vfld, const label patchi) const
Get either fvPatchField or patchInternalField.
static void getTecplotNames(const wordList &names, const INTEGER4 loc, string &varNames, DynamicList< INTEGER4 > &varLocation)
void writeField(const Field< Type > &fld) const
Write generic Field.
static wordList getNames(const PtrList< GeoField > &)
A class for managing temporary objects.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const fvPatchList & patches
List< word > wordList
A List of words.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.