mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: fix typo in comfort functionObject, minor style changes (#2325)
This commit is contained in:
@ -435,7 +435,7 @@ bool Foam::functionObjects::comfort::execute()
|
|||||||
mesh_
|
mesh_
|
||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensionedScalar(dimless, 0)
|
dimensionedScalar(dimless, Zero)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (foundObject<volScalarField>("k"))
|
if (foundObject<volScalarField>("k"))
|
||||||
@ -456,28 +456,33 @@ bool Foam::functionObjects::comfort::execute()
|
|||||||
correctUnit*(factor12 - T)*pow(Umag - Umin, 0.62)*(pre*Umag*TI + C1);
|
correctUnit*(factor12 - T)*pow(Umag - Umin, 0.62)*(pre*Umag*TI + C1);
|
||||||
|
|
||||||
// Calculate the operative temperature
|
// Calculate the operative temperature
|
||||||
tmp<volScalarField> Top = (T + Trad)/2;
|
tmp<volScalarField> Top = 0.5*(T + Trad);
|
||||||
|
|
||||||
// Workaround
|
// Need modifiable field names:
|
||||||
word fieldNamePMV = "PMV";
|
word fieldNamePMV = "PMV";
|
||||||
word fieldNamePPD = "PPD";
|
word fieldNamePPD = "PPD";
|
||||||
word fieldNameDR = "DR";
|
word fieldNameDR = "DR";
|
||||||
word fieldNameTop = "Top";
|
word fieldNameTop = "Top";
|
||||||
|
|
||||||
return
|
return
|
||||||
|
(
|
||||||
store(fieldNamePMV, PMV)
|
store(fieldNamePMV, PMV)
|
||||||
&& store(fieldNamePPD, PPD)
|
&& store(fieldNamePPD, PPD)
|
||||||
&& store(fieldNameDR, DR)
|
&& store(fieldNameDR, DR)
|
||||||
&& store(fieldNameDR, Top);
|
&& store(fieldNameTop, Top)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::functionObjects::comfort::write()
|
bool Foam::functionObjects::comfort::write()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
|
(
|
||||||
writeObject("PMV")
|
writeObject("PMV")
|
||||||
&& writeObject("PPD")
|
&& writeObject("PPD")
|
||||||
&& writeObject("DR")
|
&& writeObject("DR")
|
||||||
&& writeObject("Top");
|
&& writeObject("Top")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user