46 tHbyANew.
ref().rename(
"HbyA");
54 auto& HbyAbf = tHbyANew.
ref().boundaryFieldRef();
56 forAll(
U.boundaryField(), patchi)
60 !
U.boundaryField()[patchi].assignable()
63 p.boundaryField()[patchi]
67 HbyAbf[patchi] =
U.boundaryField()[patchi];
A class for managing temporary objects.
void reset(tmp< T > &&other) noexcept
Clear existing and transfer ownership.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
tmp< volVectorField > tHbyA
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
#define forAll(list, i)
Loop across all elements in list.