Minor clean-up

This commit is contained in:
Hrvoje Jasak 2013-04-15 12:54:13 +01:00
parent 9caccd55b5
commit 420f06b193
3 changed files with 20 additions and 22 deletions

View file

@ -45,21 +45,6 @@ fluxCorrectedVelocityFvPatchVectorField
{}
Foam::fluxCorrectedVelocityFvPatchVectorField::
fluxCorrectedVelocityFvPatchVectorField
(
const fluxCorrectedVelocityFvPatchVectorField& ptf,
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
const fvPatchFieldMapper& mapper
)
:
zeroGradientFvPatchVectorField(ptf, p, iF, mapper),
phiName_(ptf.phiName_),
rhoName_(ptf.rhoName_)
{}
Foam::fluxCorrectedVelocityFvPatchVectorField::
fluxCorrectedVelocityFvPatchVectorField
(
@ -76,6 +61,21 @@ fluxCorrectedVelocityFvPatchVectorField
}
Foam::fluxCorrectedVelocityFvPatchVectorField::
fluxCorrectedVelocityFvPatchVectorField
(
const fluxCorrectedVelocityFvPatchVectorField& ptf,
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
const fvPatchFieldMapper& mapper
)
:
zeroGradientFvPatchVectorField(ptf, p, iF, mapper),
phiName_(ptf.phiName_),
rhoName_(ptf.rhoName_)
{}
Foam::fluxCorrectedVelocityFvPatchVectorField::
fluxCorrectedVelocityFvPatchVectorField
(

View file

@ -127,7 +127,7 @@ void inletOutletFvPatchField<Type>::updateCoeffs()
return;
}
const Field<scalar>& phip = this->lookupPatchField
const scalarField& phip = this->lookupPatchField
(
phiName_,
reinterpret_cast<const surfaceScalarField*>(0),

View file

@ -30,8 +30,6 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField
@ -82,14 +80,14 @@ Foam::totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField
{
if (dict.found("value"))
{
fvPatchField<scalar>::operator=
fvPatchScalarField::operator=
(
scalarField("value", dict, p.size())
);
}
else
{
fvPatchField<scalar>::operator=(T0_);
fvPatchScalarField::operator=(T0_);
}
}
@ -160,10 +158,10 @@ void Foam::totalTemperatureFvPatchScalarField::updateCoeffs()
const fvPatchVectorField& Up =
lookupPatchField<volVectorField, vector>(UName_);
const fvsPatchField<scalar>& phip =
const fvsPatchScalarField& phip =
lookupPatchField<surfaceScalarField, scalar>(phiName_);
const fvPatchField<scalar>& psip =
const fvPatchScalarField& psip =
lookupPatchField<volScalarField, scalar>(psiName_);
scalar gM1ByG = (gamma_ - 1.0)/gamma_;