mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: minor code cosmetics
This commit is contained in:
@ -46,7 +46,7 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class basicSolidThermo Declaration
|
Class basicSolidThermo Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class basicSolidThermo
|
class basicSolidThermo
|
||||||
@ -69,8 +69,7 @@ public:
|
|||||||
TypeName("basicSolidThermo");
|
TypeName("basicSolidThermo");
|
||||||
|
|
||||||
|
|
||||||
// Declare run-time constructor selection tables
|
//- Declare run-time constructor selection tables
|
||||||
|
|
||||||
declareRunTimeSelectionTable
|
declareRunTimeSelectionTable
|
||||||
(
|
(
|
||||||
autoPtr,
|
autoPtr,
|
||||||
@ -91,9 +90,8 @@ public:
|
|||||||
static autoPtr<basicSolidThermo> New(const fvMesh&);
|
static autoPtr<basicSolidThermo> New(const fvMesh&);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
//- Destructor
|
||||||
|
virtual ~basicSolidThermo();
|
||||||
virtual ~basicSolidThermo();
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
@ -149,6 +147,7 @@ public:
|
|||||||
//- Emissivity []
|
//- Emissivity []
|
||||||
virtual tmp<scalarField> emissivity(const label) const = 0;
|
virtual tmp<scalarField> emissivity(const label) const = 0;
|
||||||
|
|
||||||
|
|
||||||
// // Point wise properties
|
// // Point wise properties
|
||||||
//
|
//
|
||||||
// //- Density [kg/m3]
|
// //- Density [kg/m3]
|
||||||
@ -166,6 +165,7 @@ public:
|
|||||||
// //- Emissivity []
|
// //- Emissivity []
|
||||||
// virtual scalar emissivity(const scalar T) const = 0;
|
// virtual scalar emissivity(const scalar T) const = 0;
|
||||||
|
|
||||||
|
|
||||||
// I-O
|
// I-O
|
||||||
|
|
||||||
//- Write the basicSolidThermo properties
|
//- Write the basicSolidThermo properties
|
||||||
|
|||||||
@ -228,8 +228,6 @@ Foam::directionalSolidThermo::directionalSolidThermo(const fvMesh& mesh)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
correct();
|
correct();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,7 +267,7 @@ Foam::symmTensor Foam::directionalSolidThermo::transformPrincipal
|
|||||||
tt.yx()*st.x()*tt.zx()
|
tt.yx()*st.x()*tt.zx()
|
||||||
+ tt.yy()*st.y()*tt.zy()
|
+ tt.yy()*st.y()*tt.zy()
|
||||||
+ tt.yz()*st.z()*tt.zz(),
|
+ tt.yz()*st.z()*tt.zz(),
|
||||||
|
|
||||||
tt.zx()*st.x()*tt.zx()
|
tt.zx()*st.x()*tt.zx()
|
||||||
+ tt.zy()*st.y()*tt.zy()
|
+ tt.zy()*st.y()*tt.zy()
|
||||||
+ tt.zz()*st.z()*tt.zz()
|
+ tt.zz()*st.z()*tt.zz()
|
||||||
@ -419,9 +417,9 @@ Foam::tmp<Foam::volScalarField> Foam::directionalSolidThermo::K() const
|
|||||||
const vector& v = KValues_[i];
|
const vector& v = KValues_[i];
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
v.x() != v.y()
|
v.x() != v.y()
|
||||||
|| v.x() != v.z()
|
|| v.x() != v.z()
|
||||||
|| v.y() != v.z()
|
|| v.y() != v.z()
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
FatalErrorIn("directionalSolidThermo::K() const")
|
FatalErrorIn("directionalSolidThermo::K() const")
|
||||||
@ -597,9 +595,9 @@ Foam::tmp<Foam::scalarField> Foam::directionalSolidThermo::K
|
|||||||
const vector& v = KValues_[i];
|
const vector& v = KValues_[i];
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
v.x() != v.y()
|
v.x() != v.y()
|
||||||
|| v.x() != v.z()
|
|| v.x() != v.z()
|
||||||
|| v.y() != v.z()
|
|| v.y() != v.z()
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
FatalErrorIn("directionalSolidThermo::K() const")
|
FatalErrorIn("directionalSolidThermo::K() const")
|
||||||
@ -634,7 +632,7 @@ Foam::tmp<Foam::symmTensorField> Foam::directionalSolidThermo::directionalK
|
|||||||
|
|
||||||
tmp<symmTensorField> tglobalK(new symmTensorField(localK.size()));
|
tmp<symmTensorField> tglobalK(new symmTensorField(localK.size()));
|
||||||
transformField(tglobalK(), ccTransforms_.boundaryField()[patchI], localK);
|
transformField(tglobalK(), ccTransforms_.boundaryField()[patchI], localK);
|
||||||
|
|
||||||
return tglobalK;
|
return tglobalK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user