Corrections for compilation with Clang
This commit is contained in:
@ -71,46 +71,6 @@ Foam::mappedFieldFvPatchField<Type>::mappedFieldFvPatchField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
Foam::mappedFieldFvPatchField<Type>::mappedFieldFvPatchField
|
|
||||||
(
|
|
||||||
const fvPatch& p,
|
|
||||||
const DimensionedField<Type, volMesh>& iF,
|
|
||||||
|
|
||||||
// mappedPatchBase
|
|
||||||
const word& sampleRegion,
|
|
||||||
const sampleMode sampleMode,
|
|
||||||
const word& samplePatch,
|
|
||||||
const scalar distance,
|
|
||||||
|
|
||||||
// My settings
|
|
||||||
const word& fieldName,
|
|
||||||
const bool setAverage,
|
|
||||||
const Type average,
|
|
||||||
const word& interpolationScheme
|
|
||||||
)
|
|
||||||
:
|
|
||||||
fixedValueFvPatchField<Type>(p, iF),
|
|
||||||
mappedPatchBase
|
|
||||||
(
|
|
||||||
p.patch(),
|
|
||||||
sampleRegion,
|
|
||||||
sampleMode,
|
|
||||||
samplePatch,
|
|
||||||
distance
|
|
||||||
),
|
|
||||||
mappedPatchFieldBase<Type>
|
|
||||||
(
|
|
||||||
*this,
|
|
||||||
*this,
|
|
||||||
fieldName,
|
|
||||||
setAverage,
|
|
||||||
average,
|
|
||||||
interpolationScheme
|
|
||||||
)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
Foam::mappedFieldFvPatchField<Type>::mappedFieldFvPatchField
|
Foam::mappedFieldFvPatchField<Type>::mappedFieldFvPatchField
|
||||||
(
|
(
|
||||||
|
|||||||
@ -115,29 +115,7 @@ public:
|
|||||||
const dictionary&
|
const dictionary&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from patch, internal field and distance for normal type
|
//- Construct by mapping given mappedFieldFvPatchField onto a new patch
|
||||||
// sampling
|
|
||||||
mappedFieldFvPatchField
|
|
||||||
(
|
|
||||||
const fvPatch&,
|
|
||||||
const DimensionedField<Type, volMesh>&,
|
|
||||||
|
|
||||||
// mappedPatchBase
|
|
||||||
const word& sampleRegion,
|
|
||||||
const sampleMode sampleMode,
|
|
||||||
const word& samplePatch,
|
|
||||||
const scalar distance,
|
|
||||||
|
|
||||||
// My settings
|
|
||||||
const word& fieldName,
|
|
||||||
const bool setAverage,
|
|
||||||
const Type average,
|
|
||||||
const word& interpolationScheme
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct by mapping given
|
|
||||||
// mappedFieldFvPatchField
|
|
||||||
// onto a new patch
|
|
||||||
mappedFieldFvPatchField
|
mappedFieldFvPatchField
|
||||||
(
|
(
|
||||||
const mappedFieldFvPatchField<Type>&,
|
const mappedFieldFvPatchField<Type>&,
|
||||||
|
|||||||
@ -170,9 +170,9 @@ void Foam::MarshakRadiationFvPatchScalarField::updateCoeffs()
|
|||||||
const scalarField& gamma =
|
const scalarField& gamma =
|
||||||
patch().lookupPatchField<volScalarField, scalar>("gammaRad");
|
patch().lookupPatchField<volScalarField, scalar>("gammaRad");
|
||||||
|
|
||||||
const scalarField temissivity = emissivity();
|
const scalarField emissivity(this->emissivity());
|
||||||
|
|
||||||
const scalarField Ep(temissivity/(2.0*(2.0 - temissivity)));
|
const scalarField Ep(emissivity/(2.0*(2.0 - emissivity)));
|
||||||
|
|
||||||
// Set value fraction
|
// Set value fraction
|
||||||
valueFraction() = 1.0/(1.0 + gamma*patch().deltaCoeffs()/Ep);
|
valueFraction() = 1.0/(1.0 + gamma*patch().deltaCoeffs()/Ep);
|
||||||
|
|||||||
@ -173,9 +173,9 @@ void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs()
|
|||||||
const scalarField& gamma =
|
const scalarField& gamma =
|
||||||
patch().lookupPatchField<volScalarField, scalar>("gammaRad");
|
patch().lookupPatchField<volScalarField, scalar>("gammaRad");
|
||||||
|
|
||||||
const scalarField temissivity = emissivity();
|
const scalarField emissivity(this->emissivity());
|
||||||
|
|
||||||
const scalarField Ep(temissivity/(2*(2 - temissivity)));
|
const scalarField Ep(emissivity/(2*(2 - emissivity)));
|
||||||
|
|
||||||
// Set value fraction
|
// Set value fraction
|
||||||
valueFraction() = 1.0/(1.0 + gamma*patch().deltaCoeffs()/Ep);
|
valueFraction() = 1.0/(1.0 + gamma*patch().deltaCoeffs()/Ep);
|
||||||
|
|||||||
@ -199,7 +199,7 @@ void Foam::greyDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs()
|
|||||||
|
|
||||||
ray.qr().boundaryFieldRef()[patchi] += Iw*nAve;
|
ray.qr().boundaryFieldRef()[patchi] += Iw*nAve;
|
||||||
|
|
||||||
const scalarField temissivity = emissivity();
|
const scalarField emissivity(this->emissivity());
|
||||||
|
|
||||||
scalarField& qem = ray.qem().boundaryFieldRef()[patchi];
|
scalarField& qem = ray.qem().boundaryFieldRef()[patchi];
|
||||||
scalarField& qin = ray.qin().boundaryFieldRef()[patchi];
|
scalarField& qin = ray.qin().boundaryFieldRef()[patchi];
|
||||||
@ -224,8 +224,8 @@ void Foam::greyDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs()
|
|||||||
valueFraction()[facei] = 1.0;
|
valueFraction()[facei] = 1.0;
|
||||||
refValue()[facei] =
|
refValue()[facei] =
|
||||||
(
|
(
|
||||||
Ir[facei]*(scalar(1) - temissivity[facei])
|
Ir[facei]*(scalar(1) - emissivity[facei])
|
||||||
+ temissivity[facei]*physicoChemical::sigma.value()
|
+ emissivity[facei]*physicoChemical::sigma.value()
|
||||||
* pow4(Tp[facei])
|
* pow4(Tp[facei])
|
||||||
)/pi;
|
)/pi;
|
||||||
|
|
||||||
|
|||||||
@ -205,7 +205,7 @@ void Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs()
|
|||||||
dom.blackBody().bLambda(lambdaId).boundaryField()[patchi]
|
dom.blackBody().bLambda(lambdaId).boundaryField()[patchi]
|
||||||
);
|
);
|
||||||
|
|
||||||
scalarField temissivity = emissivity();
|
scalarField emissivity(this->emissivity());
|
||||||
|
|
||||||
scalarField& qem = ray.qem().boundaryFieldRef()[patchi];
|
scalarField& qem = ray.qem().boundaryFieldRef()[patchi];
|
||||||
scalarField& qin = ray.qin().boundaryFieldRef()[patchi];
|
scalarField& qin = ray.qin().boundaryFieldRef()[patchi];
|
||||||
@ -230,8 +230,8 @@ void Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs()
|
|||||||
valueFraction()[facei] = 1.0;
|
valueFraction()[facei] = 1.0;
|
||||||
refValue()[facei] =
|
refValue()[facei] =
|
||||||
(
|
(
|
||||||
Ir[facei]*(1.0 - temissivity[facei])
|
Ir[facei]*(1.0 - emissivity[facei])
|
||||||
+ temissivity[facei]*Eb[facei]
|
+ emissivity[facei]*Eb[facei]
|
||||||
)/pi;
|
)/pi;
|
||||||
|
|
||||||
// Emitted heat flux from this ray direction
|
// Emitted heat flux from this ray direction
|
||||||
|
|||||||
Reference in New Issue
Block a user