Go to the documentation of this file.
31 const label nComponents =
34 label
count = data_.size();
35 data_.
setSize(data_.size() +
fld.size()*nComponents);
39 for (
direction d = 0; d < nComponents; ++d)
47 template<
class Type1,
class Type2>
50 if (fld1.size() != fld2.size())
53 <<
"Field lengths must be the same. Field1:"
54 << fld1.size() <<
" Field2:" << fld2.size()
58 const label nComponents1 =
61 const label nComponents2 =
64 label
count = data_.size();
67 data_.size() + fld1.size()*(nComponents1 + nComponents2)
72 for (
direction d = 0; d < nComponents1; ++d)
77 for (
direction d = 0; d < nComponents2; ++d)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
#define forAll(list, i)
Loop across all elements in list.
void setSize(const label n)
Alias for resize()
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A traits class, which is primarily used for primitives.
void addData(const Type &fld)
Add data to the buffer.