42 typedef GeometricField<Type, fvPatchField, volMesh> fieldType;
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;
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
const word & name() const noexcept
Return the object name.
const word & headerClassName() const noexcept
Return name of the class name read from header.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
bool throwing() const noexcept
Return the current exception throwing state (on or off)
wordList fieldConditions(const IOobject &io, const bool write) const
Return/output the available boundary conditions for fields of Type.
void fixedValueFieldConditions(const IOobject &io) const
Output the available fixed boundary conditions for fields of Type.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
List< label > sortedToc(const UList< bool > &bools)
Return the (sorted) values corresponding to 'true' entries.
List< word > wordList
A List of words.
const dimensionSet dimless
Dimensionless.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.