42 typedef GeometricField<Type, fvPatchField, volMesh> fieldType;
44 if (
io.headerClassName() == fieldType::typeName)
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 wordList types(fieldConditions<Type>(
io,
false));
84 typedef GeometricField<Type, fvPatchField, volMesh> fieldType;
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...
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 write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
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
A List of words.
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)
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.
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)