From 3c790e2316bc804f46d15cdb29f405e17180ccff Mon Sep 17 00:00:00 2001
From: sergio <sergio>
Date: Wed, 28 Sep 2016 10:42:21 -0700
Subject: [PATCH] Correcting Typo in SolarLoad radiation model

---
 .../radiation/radiationModels/solarLoad/solarLoad.C       | 2 +-
 .../radiation/submodels/solarCalculator/solarCalculator.C | 8 ++++----
 .../radiation/submodels/solarCalculator/solarCalculator.H | 6 +++---
 .../externalSolarLoad/constant/air/radiationProperties    | 2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/thermophysicalModels/radiation/radiationModels/solarLoad/solarLoad.C b/src/thermophysicalModels/radiation/radiationModels/solarLoad/solarLoad.C
index b6eb14b4a7a..866865fbcb2 100644
--- a/src/thermophysicalModels/radiation/radiationModels/solarLoad/solarLoad.C
+++ b/src/thermophysicalModels/radiation/radiationModels/solarLoad/solarLoad.C
@@ -65,7 +65,7 @@ bool Foam::radiation::solarLoad::updateHitFaces()
                 return false;
                 break;
             }
-            case solarCalculator::mSunDirTraking:
+            case solarCalculator::mSunDirTracking:
             {
                 label updateIndex = label
                 (
diff --git a/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.C b/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.C
index 905194a9142..caae10e34d3 100644
--- a/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.C
+++ b/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.C
@@ -41,7 +41,7 @@ namespace Foam
     >::names[] =
     {
         "sunDirConstant",
-        "sunDirTraking"
+        "sunDirTracking"
     };
 
     template<>
@@ -70,7 +70,7 @@ void Foam::solarCalculator::calculateBetaTetha()
     scalar runTime = 0.0;
     switch (sunDirectionModel_)
     {
-        case mSunDirTraking:
+        case mSunDirTracking:
         {
             runTime = mesh_.time().value();
             break;
@@ -165,7 +165,7 @@ void Foam::solarCalculator::init()
 
             break;
         }
-        case mSunDirTraking:
+        case mSunDirTracking:
         {
             if (word(mesh_.ddtScheme("default")) == "steadyState")
             {
@@ -278,7 +278,7 @@ void Foam::solarCalculator::correctSunDirection()
         {
             break;
         }
-        case mSunDirTraking:
+        case mSunDirTracking:
         {
             calculateBetaTetha();
             calculateSunDirection();
diff --git a/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.H b/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.H
index dd83c23f94f..6d3b13c12ba 100644
--- a/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.H
+++ b/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.H
@@ -30,7 +30,7 @@ Description
 
     For the Sun direction:
     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:
             localStandardMeridian : GMT (Local Zone Meridian) in hours
             startDay :  day from 1 to 365)
@@ -109,7 +109,7 @@ public:
         enum sunDirModel
         {
             mSunDirConstant,
-            mSunDirTraking
+            mSunDirTracking
         };
 
         //- Direct sun load models
@@ -182,7 +182,7 @@ private:
         //- Up grid orientation
         vector gridUp_;
 
-        //- Interval in decimal hours to update Sun direction for SunDirTraking
+        //- Interval in decimal hours to update Sun direction for SunDirTracking
         scalar sunTrackingUpdateInterval_;
 
         //- Start time for the Sun position (decimal hours)
diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/constant/air/radiationProperties b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/constant/air/radiationProperties
index 65e88f1f4eb..dd4e6f8da4a 100644
--- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/constant/air/radiationProperties
+++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/constant/air/radiationProperties
@@ -26,7 +26,7 @@ solarLoadCoeffs
 
     // Sun direction ray model. Give the sunDirection or calculated using the
     // (solar calculator)
-    sunDirectionModel   sunDirTraking;//sunDirConstant;
+    sunDirectionModel   sunDirTracking;//sunDirConstant;
 
         // Time interval to update Sun position (sec)
         sunTrackingUpdateInterval 800;
-- 
GitLab