MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / writeScalarField

Function writeScalarField

src/conversion/ensight/part/ensightPartIO.C:216–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215
216void Foam::ensightPart::writeScalarField
217(
218 ensightFile& os,
219 const List<scalar>& field,
220 const bool perNode
221) const
222{
223 if (size() && field.size() && (os.allowUndef() || isFieldDefined(field)))
224 {
225 writeHeader(os);
226
227 if (perNode)
228 {
229 os.writeKeyword("coordinates");
230 writeFieldList(os, field, labelUList::null());
231 }
232 else
233 {
234 forAll(elementTypes(), elemI)
235 {
236 const labelUList& idList = elemLists_[elemI];
237
238 if (idList.size())
239 {
240 os.writeKeyword(elementTypes()[elemI]);
241 writeFieldList(os, field, idList);
242 }
243 }
244 }
245 }
246}
247
248
249void Foam::ensightPart::writeVectorField

Callers

nothing calls this directly

Calls 7

sizeFunction · 0.85
isFieldDefinedFunction · 0.85
writeFieldListFunction · 0.85
writeHeaderFunction · 0.70
nullClass · 0.50
forAllFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected