STYLE: use readValueEntry in BCs. Assign Zero for refValue/refGrad
This commit is contained in:
parent
34e36b83ab
commit
f801e99f9e
@ -93,10 +93,7 @@ CONSTRUCT
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
//Initialise with the value entry if evaluation is not possible
|
//Initialise with the value entry if evaluation is not possible
|
||||||
FVPATCHF::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
FIELD("value", dict, p.size())
|
|
||||||
);
|
|
||||||
this->refValue() = *this;
|
this->refValue() = *this;
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
@ -52,8 +52,8 @@ turbulentMixingLengthDissipationRateInletFvPatchScalarField
|
|||||||
mixingLength_(0.0),
|
mixingLength_(0.0),
|
||||||
Cmu_(0.0)
|
Cmu_(0.0)
|
||||||
{
|
{
|
||||||
this->refValue() = 0.0;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 0.0;
|
this->valueFraction() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,10 +92,10 @@ turbulentMixingLengthDissipationRateInletFvPatchScalarField
|
|||||||
{
|
{
|
||||||
this->phiName_ = dict.getOrDefault<word>("phi", "phi");
|
this->phiName_ = dict.getOrDefault<word>("phi", "phi");
|
||||||
|
|
||||||
fvPatchScalarField::operator=(scalarField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
|
|
||||||
this->refValue() = 0.0;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 0.0;
|
this->valueFraction() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@ turbulentMixingLengthFrequencyInletFvPatchScalarField
|
|||||||
mixingLength_(0.0),
|
mixingLength_(0.0),
|
||||||
kName_("undefined-k")
|
kName_("undefined-k")
|
||||||
{
|
{
|
||||||
this->refValue() = 0.0;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 0.0;
|
this->valueFraction() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,10 +84,10 @@ turbulentMixingLengthFrequencyInletFvPatchScalarField
|
|||||||
{
|
{
|
||||||
this->phiName_ = dict.getOrDefault<word>("phi", "phi");
|
this->phiName_ = dict.getOrDefault<word>("phi", "phi");
|
||||||
|
|
||||||
fvPatchScalarField::operator=(scalarField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
|
|
||||||
this->refValue() = 0.0;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 0.0;
|
this->valueFraction() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ atmBoundaryLayerInletEpsilonFvPatchScalarField
|
|||||||
|
|
||||||
if (!initABL_)
|
if (!initABL_)
|
||||||
{
|
{
|
||||||
scalarField::operator=(scalarField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@ atmBoundaryLayerInletKFvPatchScalarField
|
|||||||
|
|
||||||
if (!initABL_)
|
if (!initABL_)
|
||||||
{
|
{
|
||||||
scalarField::operator=(scalarField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -69,7 +69,7 @@ atmBoundaryLayerInletOmegaFvPatchScalarField
|
|||||||
|
|
||||||
if (!initABL_)
|
if (!initABL_)
|
||||||
{
|
{
|
||||||
scalarField::operator=(scalarField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@ atmBoundaryLayerInletVelocityFvPatchVectorField
|
|||||||
|
|
||||||
if (!initABL_)
|
if (!initABL_)
|
||||||
{
|
{
|
||||||
vectorField::operator=(vectorField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -242,7 +242,7 @@ Foam::displacementLayeredMotionMotionSolver::faceZoneEvaluate
|
|||||||
|
|
||||||
if (type == "fixedValue")
|
if (type == "fixedValue")
|
||||||
{
|
{
|
||||||
fld = vectorField("value", dict, meshPoints.size());
|
fld.assign("value", dict, meshPoints.size());
|
||||||
}
|
}
|
||||||
else if (type == "timeVaryingUniformFixedValue")
|
else if (type == "timeVaryingUniformFixedValue")
|
||||||
{
|
{
|
||||||
|
@ -77,8 +77,7 @@ SRFFreestreamVelocityFvPatchVectorField
|
|||||||
UInf_(dict.get<vector>("UInf"))
|
UInf_(dict.get<vector>("UInf"))
|
||||||
{
|
{
|
||||||
this->phiName_ = dict.getOrDefault<word>("phi", "phi");
|
this->phiName_ = dict.getOrDefault<word>("phi", "phi");
|
||||||
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ fixedNormalInletOutletVelocityFvPatchVectorField
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
fvPatchFieldBase::readDict(dict);
|
fvPatchFieldBase::readDict(dict);
|
||||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
refValue() = normalVelocity();
|
refValue() = normalVelocity();
|
||||||
refGrad() = Zero;
|
refGrad() = Zero;
|
||||||
valueFraction() = Zero;
|
valueFraction() = Zero;
|
||||||
|
@ -49,15 +49,14 @@ Foam::freestreamVelocityFvPatchVectorField::freestreamVelocityFvPatchVectorField
|
|||||||
:
|
:
|
||||||
mixedFvPatchVectorField(p, iF)
|
mixedFvPatchVectorField(p, iF)
|
||||||
{
|
{
|
||||||
freestreamValue() = vectorField("freestreamValue", dict, p.size());
|
freestreamValue().assign("freestreamValue", dict, p.size());
|
||||||
|
refGrad() = Zero;
|
||||||
|
valueFraction() = 1;
|
||||||
|
|
||||||
if (!this->readValueEntry(dict))
|
if (!this->readValueEntry(dict))
|
||||||
{
|
{
|
||||||
fvPatchVectorField::operator=(freestreamValue());
|
fvPatchVectorField::operator=(freestreamValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
refGrad() = Zero;
|
|
||||||
valueFraction() = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ pressureDirectedInletOutletVelocityFvPatchVectorField
|
|||||||
inletDir_("inletDirection", dict, p.size())
|
inletDir_("inletDirection", dict, p.size())
|
||||||
{
|
{
|
||||||
fvPatchFieldBase::readDict(dict);
|
fvPatchFieldBase::readDict(dict);
|
||||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
refValue() = *this;
|
refValue() = *this;
|
||||||
refGrad() = Zero;
|
refGrad() = Zero;
|
||||||
valueFraction() = 0.0;
|
valueFraction() = 0.0;
|
||||||
|
@ -80,7 +80,7 @@ pressureInletOutletParSlipVelocityFvPatchVectorField
|
|||||||
rhoName_(dict.getOrDefault<word>("rho", "rho"))
|
rhoName_(dict.getOrDefault<word>("rho", "rho"))
|
||||||
{
|
{
|
||||||
fvPatchFieldBase::readDict(dict);
|
fvPatchFieldBase::readDict(dict);
|
||||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
refValue() = *this;
|
refValue() = *this;
|
||||||
refGrad() = Zero;
|
refGrad() = Zero;
|
||||||
valueFraction() = 0.0;
|
valueFraction() = 0.0;
|
||||||
|
@ -81,7 +81,7 @@ pressureInletOutletVelocityFvPatchVectorField
|
|||||||
phiName_(dict.getOrDefault<word>("phi", "phi"))
|
phiName_(dict.getOrDefault<word>("phi", "phi"))
|
||||||
{
|
{
|
||||||
fvPatchFieldBase::readDict(dict);
|
fvPatchFieldBase::readDict(dict);
|
||||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
|
|
||||||
if (dict.found("tangentialVelocity"))
|
if (dict.found("tangentialVelocity"))
|
||||||
{
|
{
|
||||||
|
@ -80,7 +80,7 @@ pressureNormalInletOutletVelocityFvPatchVectorField
|
|||||||
rhoName_(dict.getOrDefault<word>("rho", "rho"))
|
rhoName_(dict.getOrDefault<word>("rho", "rho"))
|
||||||
{
|
{
|
||||||
fvPatchFieldBase::readDict(dict);
|
fvPatchFieldBase::readDict(dict);
|
||||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
refValue() = *this;
|
refValue() = *this;
|
||||||
refGrad() = Zero;
|
refGrad() = Zero;
|
||||||
valueFraction() = 0.0;
|
valueFraction() = 0.0;
|
||||||
|
@ -84,7 +84,7 @@ pressurePermeableAlphaInletOutletVelocityFvPatchVectorField
|
|||||||
alphaMin_(dict.getOrDefault<scalar>("alphaMin", 1))
|
alphaMin_(dict.getOrDefault<scalar>("alphaMin", 1))
|
||||||
{
|
{
|
||||||
fvPatchFieldBase::readDict(dict);
|
fvPatchFieldBase::readDict(dict);
|
||||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
refValue() = Zero;
|
refValue() = Zero;
|
||||||
refGrad() = Zero;
|
refGrad() = Zero;
|
||||||
valueFraction() = 1.0;
|
valueFraction() = 1.0;
|
||||||
|
@ -45,8 +45,8 @@ turbulentIntensityKineticEnergyInletFvPatchScalarField
|
|||||||
intensity_(0.0),
|
intensity_(0.0),
|
||||||
UName_("U")
|
UName_("U")
|
||||||
{
|
{
|
||||||
this->refValue() = 0.0;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 0.0;
|
this->valueFraction() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,10 +91,10 @@ turbulentIntensityKineticEnergyInletFvPatchScalarField
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
fvPatchScalarField::operator=(scalarField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
|
|
||||||
this->refValue() = 0.0;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 0.0;
|
this->valueFraction() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,10 +73,7 @@ adjointFarFieldPressureFvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -69,10 +69,7 @@ adjointFarFieldVelocityFvPatchVectorField
|
|||||||
fixedValueFvPatchVectorField(p, iF),
|
fixedValueFvPatchVectorField(p, iF),
|
||||||
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<vector>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,10 +71,7 @@ adjointInletVelocityFvPatchVectorField
|
|||||||
fixedValueFvPatchVectorField(p, iF),
|
fixedValueFvPatchVectorField(p, iF),
|
||||||
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<vector>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,10 +74,7 @@ adjointOutletPressureFvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -131,10 +131,7 @@ adjointOutletVelocityFvPatchVectorField
|
|||||||
fixedValueFvPatchVectorField(p, iF),
|
fixedValueFvPatchVectorField(p, iF),
|
||||||
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<vector>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,10 +71,7 @@ adjointOutletVelocityFluxFvPatchVectorField
|
|||||||
fixedValueFvPatchVectorField(p, iF),
|
fixedValueFvPatchVectorField(p, iF),
|
||||||
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<vector>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,10 +77,7 @@ adjointWallVelocityFvPatchVectorField
|
|||||||
kappa_(dict.getOrDefault<scalar>("kappa", 0.41)),
|
kappa_(dict.getOrDefault<scalar>("kappa", 0.41)),
|
||||||
E_(dict.getOrDefault<scalar>("E", 9.8))
|
E_(dict.getOrDefault<scalar>("E", 9.8))
|
||||||
{
|
{
|
||||||
fvPatchField<vector>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,10 +70,7 @@ adjointWallVelocityLowReFvPatchVectorField
|
|||||||
fixedValueFvPatchVectorField(p, iF),
|
fixedValueFvPatchVectorField(p, iF),
|
||||||
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointVectorBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<vector>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,10 +77,7 @@ adjointFarFieldNuaTildaFvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,10 +76,7 @@ adjointFarFieldTMVar1FvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,10 +76,7 @@ adjointFarFieldTMVar2FvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,10 +72,7 @@ adjointOutletKaFvPatchScalarField::adjointOutletKaFvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -73,10 +73,7 @@ adjointOutletNuaTildaFvPatchScalarField::adjointOutletNuaTildaFvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,10 +76,7 @@ adjointOutletNuaTildaFluxFvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,10 +72,7 @@ adjointOutletWaFvPatchScalarField::adjointOutletWaFvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
adjointScalarBoundaryCondition(p, iF, dict.get<word>("solverName"))
|
||||||
{
|
{
|
||||||
fvPatchField<scalar>::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,10 +91,7 @@ JohnsonJacksonParticleSlipFvPatchVectorField
|
|||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
fvPatchVectorField::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,10 +105,7 @@ JohnsonJacksonParticleThetaFvPatchScalarField
|
|||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
fvPatchScalarField::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,10 +91,7 @@ JohnsonJacksonParticleSlipFvPatchVectorField
|
|||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
fvPatchVectorField::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
vectorField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,10 +105,7 @@ JohnsonJacksonParticleThetaFvPatchScalarField
|
|||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
fvPatchScalarField::operator=
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
(
|
|
||||||
scalarField("value", dict, p.size())
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -83,11 +83,11 @@ lumpedMassWallTemperatureFvPatchScalarField
|
|||||||
mass_(dict.get<scalar>("mass")),
|
mass_(dict.get<scalar>("mass")),
|
||||||
curTimeIndex_(-1)
|
curTimeIndex_(-1)
|
||||||
{
|
{
|
||||||
refGrad() = 0.0;
|
fvPatchFieldBase::readDict(dict);
|
||||||
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
|
refValue() = *this;
|
||||||
|
refGrad() = Zero;
|
||||||
valueFraction() = 1.0;
|
valueFraction() = 1.0;
|
||||||
refValue() = scalarField("value", dict, p.size());
|
|
||||||
|
|
||||||
fvPatchScalarField::operator=(scalarField("value", dict, p.size()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ semiPermeableBaffleMassFractionFvPatchScalarField
|
|||||||
c_(dict.getOrDefault<scalar>("c", 0)),
|
c_(dict.getOrDefault<scalar>("c", 0)),
|
||||||
phiName_(dict.getOrDefault<word>("phi", "phi"))
|
phiName_(dict.getOrDefault<word>("phi", "phi"))
|
||||||
{
|
{
|
||||||
fvPatchScalarField::operator=(scalarField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
|
|
||||||
refValue() = Zero;
|
refValue() = Zero;
|
||||||
refGrad() = Zero;
|
refGrad() = Zero;
|
||||||
|
@ -86,7 +86,7 @@ semiPermeableBaffleVelocityFvPatchVectorField
|
|||||||
fixedValueFvPatchVectorField(p, iF),
|
fixedValueFvPatchVectorField(p, iF),
|
||||||
rhoName_(dict.getOrDefault<word>("rho", "rho"))
|
rhoName_(dict.getOrDefault<word>("rho", "rho"))
|
||||||
{
|
{
|
||||||
fvPatchVectorField::operator==(vectorField("value", dict, p.size()));
|
this->readValueEntry(dict, IOobjectOption::MUST_READ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,8 +57,8 @@ turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
|
|||||||
),
|
),
|
||||||
TnbrName_("undefined-Tnbr")
|
TnbrName_("undefined-Tnbr")
|
||||||
{
|
{
|
||||||
this->refValue() = 0.0;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 1.0;
|
this->valueFraction() = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
|
|||||||
{
|
{
|
||||||
// Start from user entered data. Assume fixedValue.
|
// Start from user entered data. Assume fixedValue.
|
||||||
refValue() = *this;
|
refValue() = *this;
|
||||||
refGrad() = 0.0;
|
refGrad() = Zero;
|
||||||
valueFraction() = 1.0;
|
valueFraction() = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -377,7 +377,7 @@ void turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs()
|
|||||||
// - mixFraction = nbrKDelta / (nbrKDelta + myKDelta())
|
// - mixFraction = nbrKDelta / (nbrKDelta + myKDelta())
|
||||||
|
|
||||||
this->refValue() = nbrIntFld;
|
this->refValue() = nbrIntFld;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = nbrKDelta/(nbrKDelta + myKDelta());
|
this->valueFraction() = nbrKDelta/(nbrKDelta + myKDelta());
|
||||||
|
|
||||||
mixedFvPatchScalarField::updateCoeffs();
|
mixedFvPatchScalarField::updateCoeffs();
|
||||||
|
@ -62,8 +62,8 @@ turbulentTemperatureRadCoupledMixedFvPatchScalarField
|
|||||||
qrName_("undefined-qr"),
|
qrName_("undefined-qr"),
|
||||||
thermalInertia_(false)
|
thermalInertia_(false)
|
||||||
{
|
{
|
||||||
this->refValue() = 0.0;
|
this->refValue() = Zero;
|
||||||
this->refGrad() = 0.0;
|
this->refGrad() = Zero;
|
||||||
this->valueFraction() = 1.0;
|
this->valueFraction() = 1.0;
|
||||||
this->source() = 0.0;
|
this->source() = 0.0;
|
||||||
}
|
}
|
||||||
@ -201,7 +201,7 @@ turbulentTemperatureRadCoupledMixedFvPatchScalarField
|
|||||||
{
|
{
|
||||||
// Start from user entered data. Assume fixedValue.
|
// Start from user entered data. Assume fixedValue.
|
||||||
refValue() = *this;
|
refValue() = *this;
|
||||||
refGrad() = 0.0;
|
refGrad() = Zero;
|
||||||
valueFraction() = 1.0;
|
valueFraction() = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,8 +42,8 @@ Foam::wallHeatTransferFvPatchScalarField::wallHeatTransferFvPatchScalarField
|
|||||||
Tinf_(p.size(), Zero),
|
Tinf_(p.size(), Zero),
|
||||||
alphaWall_(p.size(), Zero)
|
alphaWall_(p.size(), Zero)
|
||||||
{
|
{
|
||||||
refValue() = 0.0;
|
refValue() = Zero;
|
||||||
refGrad() = 0.0;
|
refGrad() = Zero;
|
||||||
valueFraction() = 0.0;
|
valueFraction() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ Foam::wallHeatTransferFvPatchScalarField::wallHeatTransferFvPatchScalarField
|
|||||||
alphaWall_("alphaWall", dict, p.size())
|
alphaWall_("alphaWall", dict, p.size())
|
||||||
{
|
{
|
||||||
refValue() = Tinf_;
|
refValue() = Tinf_;
|
||||||
refGrad() = 0.0;
|
refGrad() = Zero;
|
||||||
valueFraction() = 0.0;
|
valueFraction() = 0.0;
|
||||||
|
|
||||||
if (!this->readValueEntry(dict))
|
if (!this->readValueEntry(dict))
|
||||||
|
@ -46,8 +46,8 @@ mixedEnergyFvPatchScalarField
|
|||||||
mixedFvPatchScalarField(p, iF)
|
mixedFvPatchScalarField(p, iF)
|
||||||
{
|
{
|
||||||
valueFraction() = 0.0;
|
valueFraction() = 0.0;
|
||||||
refValue() = 0.0;
|
refValue() = Zero;
|
||||||
refGrad() = 0.0;
|
refGrad() = Zero;
|
||||||
source() = 0.0;
|
source() = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,8 +53,8 @@ greyDiffusiveRadiationMixedFvPatchScalarField
|
|||||||
qRadExt_(0),
|
qRadExt_(0),
|
||||||
qRadExtDir_(Zero)
|
qRadExtDir_(Zero)
|
||||||
{
|
{
|
||||||
refValue() = 0.0;
|
refValue() = Zero;
|
||||||
refGrad() = 0.0;
|
refGrad() = Zero;
|
||||||
valueFraction() = 1.0;
|
valueFraction() = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,8 +95,8 @@ greyDiffusiveRadiationMixedFvPatchScalarField
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
refValue() = 0.0;
|
refValue() = Zero;
|
||||||
refGrad() = 0.0;
|
refGrad() = Zero;
|
||||||
valueFraction() = 1.0;
|
valueFraction() = 1.0;
|
||||||
|
|
||||||
fvPatchScalarField::operator=(refValue());
|
fvPatchScalarField::operator=(refValue());
|
||||||
|
@ -50,8 +50,8 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
|
|||||||
:
|
:
|
||||||
mixedFvPatchScalarField(p, iF)
|
mixedFvPatchScalarField(p, iF)
|
||||||
{
|
{
|
||||||
refValue() = 0.0;
|
refValue() = Zero;
|
||||||
refGrad() = 0.0;
|
refGrad() = Zero;
|
||||||
valueFraction() = 1.0;
|
valueFraction() = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,9 +42,9 @@ mixedUnburntEnthalpyFvPatchScalarField
|
|||||||
:
|
:
|
||||||
mixedFvPatchScalarField(p, iF)
|
mixedFvPatchScalarField(p, iF)
|
||||||
{
|
{
|
||||||
|
refValue() = Zero;
|
||||||
|
refGrad() = Zero;
|
||||||
valueFraction() = 0.0;
|
valueFraction() = 0.0;
|
||||||
refValue() = 0.0;
|
|
||||||
refGrad() = 0.0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user