From 7acdd65d837bbf95e53d62c0eb7329bb6ac172fb Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 11 Oct 2010 17:39:20 +0100 Subject: [PATCH] STYLE: minor code cosmetics --- .../basicSolidThermo/basicSolidThermo.H | 12 ++++++------ .../directionalSolidThermo.C | 18 ++++++++---------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/thermophysicalModels/basicSolidThermo/basicSolidThermo/basicSolidThermo.H b/src/thermophysicalModels/basicSolidThermo/basicSolidThermo/basicSolidThermo.H index 4b62582519..ddd2750668 100644 --- a/src/thermophysicalModels/basicSolidThermo/basicSolidThermo/basicSolidThermo.H +++ b/src/thermophysicalModels/basicSolidThermo/basicSolidThermo/basicSolidThermo.H @@ -46,7 +46,7 @@ namespace Foam { /*---------------------------------------------------------------------------*\ - Class basicSolidThermo Declaration + Class basicSolidThermo Declaration \*---------------------------------------------------------------------------*/ class basicSolidThermo @@ -69,8 +69,7 @@ public: TypeName("basicSolidThermo"); - // Declare run-time constructor selection tables - + //- Declare run-time constructor selection tables declareRunTimeSelectionTable ( autoPtr, @@ -91,9 +90,8 @@ public: static autoPtr New(const fvMesh&); - // Destructor - - virtual ~basicSolidThermo(); + //- Destructor + virtual ~basicSolidThermo(); // Member Functions @@ -149,6 +147,7 @@ public: //- Emissivity [] virtual tmp emissivity(const label) const = 0; + // // Point wise properties // // //- Density [kg/m3] @@ -166,6 +165,7 @@ public: // //- Emissivity [] // virtual scalar emissivity(const scalar T) const = 0; + // I-O //- Write the basicSolidThermo properties diff --git a/src/thermophysicalModels/basicSolidThermo/directionalSolidThermo/directionalSolidThermo.C b/src/thermophysicalModels/basicSolidThermo/directionalSolidThermo/directionalSolidThermo.C index e7caf0d847..e81e44bca2 100644 --- a/src/thermophysicalModels/basicSolidThermo/directionalSolidThermo/directionalSolidThermo.C +++ b/src/thermophysicalModels/basicSolidThermo/directionalSolidThermo/directionalSolidThermo.C @@ -228,8 +228,6 @@ Foam::directionalSolidThermo::directionalSolidThermo(const fvMesh& mesh) } } - - correct(); } @@ -269,7 +267,7 @@ Foam::symmTensor Foam::directionalSolidThermo::transformPrincipal tt.yx()*st.x()*tt.zx() + tt.yy()*st.y()*tt.zy() + tt.yz()*st.z()*tt.zz(), - + tt.zx()*st.x()*tt.zx() + tt.zy()*st.y()*tt.zy() + tt.zz()*st.z()*tt.zz() @@ -419,9 +417,9 @@ Foam::tmp Foam::directionalSolidThermo::K() const const vector& v = KValues_[i]; if ( - v.x() != v.y() - || v.x() != v.z() - || v.y() != v.z() + v.x() != v.y() + || v.x() != v.z() + || v.y() != v.z() ) { FatalErrorIn("directionalSolidThermo::K() const") @@ -597,9 +595,9 @@ Foam::tmp Foam::directionalSolidThermo::K const vector& v = KValues_[i]; if ( - v.x() != v.y() - || v.x() != v.z() - || v.y() != v.z() + v.x() != v.y() + || v.x() != v.z() + || v.y() != v.z() ) { FatalErrorIn("directionalSolidThermo::K() const") @@ -634,7 +632,7 @@ Foam::tmp Foam::directionalSolidThermo::directionalK tmp tglobalK(new symmTensorField(localK.size())); transformField(tglobalK(), ccTransforms_.boundaryField()[patchI], localK); - + return tglobalK; }