ThermophysicalTransportModels: Corrected the documentation of the units of the q() function

heSolidThermo: Changed the q() function to return an intensive flux consistent
with ThermophysicalTransportModels.
This commit is contained in:
Henry Weller
2020-10-29 20:51:32 +00:00
parent aa4cb44b1e
commit ab12f38c2a
9 changed files with 9 additions and 10 deletions

View File

@ -112,7 +112,7 @@ public:
const label patchi
) const;
//- Return the heat flux [W]
//- Return the heat flux [W/m^2]
virtual tmp<surfaceScalarField> q() const;
//- Return the source term for the energy equation

View File

@ -118,7 +118,7 @@ public:
return this->alphaEff(patchi);
}
//- Return the heat flux [W]
//- Return the heat flux [W/m^2]
virtual tmp<surfaceScalarField> q() const;
//- Return the source term for the energy equation

View File

@ -127,7 +127,7 @@ public:
const label patchi
) const = 0;
//- Return the heat flux [W]
//- Return the heat flux [W/m^2]
virtual tmp<surfaceScalarField> q() const = 0;
//- Return the source term for the energy equation

View File

@ -181,7 +181,7 @@ public:
const label patchi
) const;
//- Return the heat flux [W]
//- Return the heat flux [W/m^2]
virtual tmp<surfaceScalarField> q() const;
//- Return the source term for the energy equation

View File

@ -143,7 +143,7 @@ public:
);
}
//- Return the heat flux [W]
//- Return the heat flux [W/m^2]
virtual tmp<surfaceScalarField> q() const;
//- Return the source term for the energy equation

View File

@ -199,7 +199,7 @@ public:
return alphaEff(patchi);
}
//- Return the heat flux [W]
//- Return the heat flux [W/m^2]
virtual tmp<surfaceScalarField> q() const;
//- Return the source term for the energy equation

View File

@ -79,13 +79,12 @@ Foam::functionObjects::wallHeatFlux::calcWallHeatFlux
twallHeatFlux.ref().boundaryFieldRef();
const surfaceScalarField::Boundary& qBf = q.boundaryField();
const surfaceScalarField::Boundary& magSf = mesh_.magSf().boundaryField();
forAllConstIter(labelHashSet, patchSet_, iter)
{
const label patchi = iter.key();
wallHeatFluxBf[patchi] = -qBf[patchi]/magSf[patchi];
wallHeatFluxBf[patchi] = -qBf[patchi];
}
if (foundObject<volScalarField>("qr"))

View File

@ -340,7 +340,7 @@ Foam::heSolidThermo<BasicSolidThermo, MixtureType>::q() const
isotropic()
? fvm::laplacian(this->kappa(), this->T_)().flux()
: fvm::laplacian(KappaLocal(), this->T_)().flux()
);
)/mesh.magSf();
}

View File

@ -115,7 +115,7 @@ public:
// in the local coordinate system [W/m/K]
virtual tmp<symmTensorField> KappaLocal(const label patchi) const;
//- Return the heat flux [W]
//- Return the heat flux [W/m^2]
virtual tmp<surfaceScalarField> q() const;
//- Return the source term for the energy equation