Correcting Typo in SolarLoad radiation model

This commit is contained in:
sergio
2016-09-28 10:42:21 -07:00
parent 3dbd39146c
commit 3c790e2316
4 changed files with 9 additions and 9 deletions

View File

@ -65,7 +65,7 @@ bool Foam::radiation::solarLoad::updateHitFaces()
return false; return false;
break; break;
} }
case solarCalculator::mSunDirTraking: case solarCalculator::mSunDirTracking:
{ {
label updateIndex = label label updateIndex = label
( (

View File

@ -41,7 +41,7 @@ namespace Foam
>::names[] = >::names[] =
{ {
"sunDirConstant", "sunDirConstant",
"sunDirTraking" "sunDirTracking"
}; };
template<> template<>
@ -70,7 +70,7 @@ void Foam::solarCalculator::calculateBetaTetha()
scalar runTime = 0.0; scalar runTime = 0.0;
switch (sunDirectionModel_) switch (sunDirectionModel_)
{ {
case mSunDirTraking: case mSunDirTracking:
{ {
runTime = mesh_.time().value(); runTime = mesh_.time().value();
break; break;
@ -165,7 +165,7 @@ void Foam::solarCalculator::init()
break; break;
} }
case mSunDirTraking: case mSunDirTracking:
{ {
if (word(mesh_.ddtScheme("default")) == "steadyState") if (word(mesh_.ddtScheme("default")) == "steadyState")
{ {
@ -278,7 +278,7 @@ void Foam::solarCalculator::correctSunDirection()
{ {
break; break;
} }
case mSunDirTraking: case mSunDirTracking:
{ {
calculateBetaTetha(); calculateBetaTetha();
calculateSunDirection(); calculateSunDirection();

View File

@ -30,7 +30,7 @@ Description
For the Sun direction: For the Sun direction:
1) SunDirConstant : the direction is given in 'sunDirection' 1) SunDirConstant : the direction is given in 'sunDirection'
2) SunDirTraking : the direction is calculated from the following 2) SunDirTracking : the direction is calculated from the following
parameters: parameters:
localStandardMeridian : GMT (Local Zone Meridian) in hours localStandardMeridian : GMT (Local Zone Meridian) in hours
startDay : day from 1 to 365) startDay : day from 1 to 365)
@ -109,7 +109,7 @@ public:
enum sunDirModel enum sunDirModel
{ {
mSunDirConstant, mSunDirConstant,
mSunDirTraking mSunDirTracking
}; };
//- Direct sun load models //- Direct sun load models
@ -182,7 +182,7 @@ private:
//- Up grid orientation //- Up grid orientation
vector gridUp_; vector gridUp_;
//- Interval in decimal hours to update Sun direction for SunDirTraking //- Interval in decimal hours to update Sun direction for SunDirTracking
scalar sunTrackingUpdateInterval_; scalar sunTrackingUpdateInterval_;
//- Start time for the Sun position (decimal hours) //- Start time for the Sun position (decimal hours)

View File

@ -26,7 +26,7 @@ solarLoadCoeffs
// Sun direction ray model. Give the sunDirection or calculated using the // Sun direction ray model. Give the sunDirection or calculated using the
// (solar calculator) // (solar calculator)
sunDirectionModel sunDirTraking;//sunDirConstant; sunDirectionModel sunDirTracking;//sunDirConstant;
// Time interval to update Sun position (sec) // Time interval to update Sun position (sec)
sunTrackingUpdateInterval 800; sunTrackingUpdateInterval 800;