36 namespace compressible
41 template<
class Type,
class PatchType>
42 tmp<GeometricField<Type, fvPatchField, volMesh> >
45 const word& fieldName,
52 mesh.time().timeName(),
57 typedef GeometricField<Type, fvPatchField, volMesh> fieldType;
59 if (mutHeader.headerOk())
68 mesh.time().timeName(),
80 Info<<
"--> Upgrading " << fieldName
81 <<
" to employ run-time selectable wall functions" <<
endl;
87 mesh.time().timeName(),
94 tmp<fieldType> fieldOrig
104 Info<<
" Backup original " << fieldName <<
" to "
105 << fieldName <<
".old" <<
endl;
106 mvBak(ioObj.objectPath(),
"old");
109 PtrList<fvPatchField<Type> > newPatchFields(mesh.boundary().size());
111 forAll(newPatchFields, patchI)
113 if (isA<wallFvPatch>(mesh.boundary()[patchI]))
120 mesh.boundary()[patchI],
121 fieldOrig().dimensionedInternalField()
124 newPatchFields[patchI] == fieldOrig().boundaryField()[patchI];
136 tmp<fieldType> fieldNew
143 mesh.time().timeName(),
150 fieldOrig().dimensions(),
151 fieldOrig().internalField(),
156 Info<<
" Writing updated " << fieldName <<
endl;