42 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
44 if (
io.isHeaderClass<VolFieldType>())
48 fvPatchField<Type>::dictionaryConstructorTablePtr_->
sortedToc()
53 Info<<
"Available boundary conditions for " 54 << pTraits<Type>::typeName <<
" field: " <<
io.name() <<
nl;
58 Info<<
" " << types[i] <<
nl;
77 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
79 wordList types(fieldConditions<Type>(
io,
false));
86 const fvMesh&
mesh =
dynamic_cast<const fvMesh&
>(
io.db());
93 mesh.time().timeName(),
104 Info<<
"Fixed value boundary conditions for " 105 << pTraits<Type>::typeName <<
" field: " <<
io.name() <<
nl;
112 bool foundFixed =
false;
115 const word& patchType = types[i];
123 mesh.nInternalFaces(),
129 fvPatch fvp(
pp,
mesh.boundary());
131 tmp<fvPatchField<Type>> pf
141 if (pf().fixesValue())
143 Info<<
" " << patchType <<
nl;
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
static tmp< fvPatchField< Type > > New(const word &patchFieldType, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
constexpr char nl
The newline '\n' character (0x0a)
bool throwing() const noexcept
Return the current exception throwing state (on or off)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ignore writing from objectRegistry::writeObject()
const dimensionSet dimless
Dimensionless.
#define forAll(list, i)
Loop across all elements in list.
void fixedValueFieldConditions(const IOobject &io) const
Output the available fixed boundary conditions for fields of Type.
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))
wordList fieldConditions(const IOobject &io, const bool write) const
Return/output the available boundary conditions for fields of Type.
List< word > wordList
List of word.
List< label > sortedToc(const UList< bool > &bools)
Return the (sorted) values corresponding to 'true' entries.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Do not request registration (bool: false)
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0)