36 const IOobjectList& objects,
37 const word& fieldName,
46 typedef GeometricField<Type, fvPatchField, volMesh> fieldType;
48 const word
timeName(mesh.time().timeName());
50 IOobjectList fieldObjbjects(objects.lookupClass(fieldType::typeName));
52 if (fieldObjbjects.lookup(fieldName) != NULL)
54 fieldType vtf(*fieldObjbjects.lookup(fieldName),
mesh);
55 const typename fieldType::Boundary& bf =
60 if (
isA<externalCoupledMixedFvPatchField<Type>>(bf[
patchi]))
62 Info<<
"Generating external coupled geometry for field " 65 const externalCoupledMixedFvPatchField<Type>& pf =
66 refCast<const externalCoupledMixedFvPatchField<Type>>
82 Info<<
"Field " << fieldName <<
" found, but does not have any " 83 << externalCoupledMixedFvPatchField<Type>::typeName
84 <<
" boundary conditions" <<
endl;
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void processField(bool &processed, const word &fieldName)