mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Multiple updates related to code style
This commit is contained in:
@ -50,7 +50,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class basicSolidThermo Declaration
|
||||
Class basicSolidThermo Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class basicSolidThermo
|
||||
@ -109,8 +109,7 @@ public:
|
||||
|
||||
|
||||
//- Destructor
|
||||
|
||||
virtual ~basicSolidThermo();
|
||||
virtual ~basicSolidThermo();
|
||||
|
||||
|
||||
// Member functions
|
||||
@ -204,7 +203,7 @@ public:
|
||||
//- Read thermophysicalProperties dictionary
|
||||
virtual bool read() = 0;
|
||||
|
||||
// Ostream Operator
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const basicSolidThermo& s);
|
||||
};
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class constSolidThermo Declaration
|
||||
Class constSolidThermo Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class constSolidThermo
|
||||
@ -159,11 +159,8 @@ public:
|
||||
//- Read solidThermophysicalProperties dictionary
|
||||
bool read(const dictionary&);
|
||||
|
||||
|
||||
|
||||
// Ostream Operator
|
||||
|
||||
friend Ostream& operator<<(Ostream& os, const constSolidThermo& s);
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const constSolidThermo& s);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -309,8 +309,8 @@ void Foam::directionalKSolidThermo::correct()
|
||||
}
|
||||
|
||||
|
||||
const Foam::volSymmTensorField& Foam::directionalKSolidThermo::
|
||||
directionalK() const
|
||||
const Foam::volSymmTensorField&
|
||||
Foam::directionalKSolidThermo::directionalK() const
|
||||
{
|
||||
return directionalK_;
|
||||
}
|
||||
|
||||
@ -44,7 +44,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class directionalKSolidThermo Declaration
|
||||
Class directionalKSolidThermo Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class directionalKSolidThermo
|
||||
@ -99,8 +99,8 @@ public:
|
||||
directionalKSolidThermo(const fvMesh& mesh);
|
||||
|
||||
|
||||
// Destructor
|
||||
virtual ~directionalKSolidThermo();
|
||||
//- Destructor
|
||||
virtual ~directionalKSolidThermo();
|
||||
|
||||
|
||||
// Member Functions
|
||||
@ -136,14 +136,12 @@ public:
|
||||
//- Read the directionalKSolidThermo properties
|
||||
bool read(const dictionary& dict);
|
||||
|
||||
|
||||
// Ostream Operator
|
||||
|
||||
friend Ostream& operator<<
|
||||
(
|
||||
Ostream& os,
|
||||
const directionalKSolidThermo& s
|
||||
);
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<
|
||||
(
|
||||
Ostream& os,
|
||||
const directionalKSolidThermo& s
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -31,7 +31,6 @@ License
|
||||
|
||||
Foam::interpolateSolid::interpolateSolid(const dictionary& dict)
|
||||
{
|
||||
|
||||
read(dict);
|
||||
|
||||
Info<< "Constructed directionalKSolidThermo with samples" << nl
|
||||
@ -108,4 +107,6 @@ bool Foam::interpolateSolid::read(const dictionary& dict)
|
||||
sigmaSValues_ = Field<scalar>(dict.lookup("sigmaSValues"));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -44,7 +44,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class interpolateSolid Declaration
|
||||
Class interpolateSolid Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class interpolateSolid
|
||||
@ -77,8 +77,7 @@ public:
|
||||
|
||||
|
||||
//- Destructor
|
||||
|
||||
virtual ~interpolateSolid();
|
||||
virtual ~interpolateSolid();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -44,7 +44,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class interpolatedSolidThermo Declaration
|
||||
Class interpolatedSolidThermo Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class interpolatedSolidThermo
|
||||
@ -119,14 +119,12 @@ public:
|
||||
//- Read the interpolatedSolidThermo properties
|
||||
bool read(const dictionary& dict);
|
||||
|
||||
|
||||
// Ostream Operator
|
||||
|
||||
friend Ostream& operator<<
|
||||
(
|
||||
Ostream& os,
|
||||
const interpolatedSolidThermo& s
|
||||
);
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<
|
||||
(
|
||||
Ostream& os,
|
||||
const interpolatedSolidThermo& s
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class isotropicKSolidThermo Declaration
|
||||
Class isotropicKSolidThermo Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class isotropicKSolidThermo
|
||||
@ -71,9 +71,10 @@ public:
|
||||
isotropicKSolidThermo(const fvMesh& mesh);
|
||||
|
||||
|
||||
// Destructor
|
||||
//- Destructor
|
||||
virtual ~isotropicKSolidThermo();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
//- Update properties
|
||||
@ -102,9 +103,7 @@ public:
|
||||
//- Write properties
|
||||
virtual bool writeData(Ostream& os) const;
|
||||
|
||||
|
||||
// Ostream Operator
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<
|
||||
(
|
||||
Ostream& os,
|
||||
|
||||
@ -43,8 +43,9 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class multiComponentSolidMixture Declaration
|
||||
Class multiComponentSolidMixture Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class ThermoSolidType>
|
||||
class multiComponentSolidMixture
|
||||
:
|
||||
@ -65,6 +66,7 @@ class multiComponentSolidMixture
|
||||
//- Return molar fraction for component i in celli and at T
|
||||
scalar X(label i, label celli, scalar T) const;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@ -75,9 +77,8 @@ public:
|
||||
|
||||
|
||||
//- Destructor
|
||||
|
||||
virtual ~multiComponentSolidMixture()
|
||||
{}
|
||||
virtual ~multiComponentSolidMixture()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
@ -92,7 +93,7 @@ public:
|
||||
void read(const dictionary&);
|
||||
|
||||
|
||||
// Cell based properties.
|
||||
// Cell-based properties
|
||||
|
||||
//- Density
|
||||
virtual scalar rho(scalar T, label celli) const;
|
||||
@ -118,9 +119,8 @@ public:
|
||||
//- Total enthalpy
|
||||
virtual scalar h(scalar T, label celli) const;
|
||||
|
||||
//- Cp
|
||||
//- Specific heat capacity
|
||||
virtual scalar Cp(scalar T, label celli) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class reactingSolidMixture Declaration
|
||||
Class reactingSolidMixture Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class ThermoSolidType>
|
||||
|
||||
@ -104,8 +104,7 @@ void Foam::solidMixtureThermo<MixtureType>::correct()
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
const Foam::volScalarField&
|
||||
Foam::solidMixtureThermo<MixtureType>::K() const
|
||||
const Foam::volScalarField& Foam::solidMixtureThermo<MixtureType>::K() const
|
||||
{
|
||||
return K_;
|
||||
}
|
||||
@ -220,8 +219,7 @@ Foam::solidMixtureThermo<MixtureType>::Hf() const
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField>
|
||||
Foam::solidMixtureThermo<MixtureType>::rho
|
||||
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::rho
|
||||
(
|
||||
const label patchI
|
||||
) const
|
||||
@ -243,8 +241,7 @@ Foam::solidMixtureThermo<MixtureType>::rho
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField>
|
||||
Foam::solidMixtureThermo<MixtureType>::Cp
|
||||
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::Cp
|
||||
(
|
||||
const label patchI
|
||||
) const
|
||||
@ -266,8 +263,7 @@ Foam::solidMixtureThermo<MixtureType>::Cp
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField>
|
||||
Foam::solidMixtureThermo<MixtureType>::hs
|
||||
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::hs
|
||||
(
|
||||
const label patchI
|
||||
) const
|
||||
@ -289,8 +285,7 @@ Foam::solidMixtureThermo<MixtureType>::hs
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField>
|
||||
Foam::solidMixtureThermo<MixtureType>::K
|
||||
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::K
|
||||
(
|
||||
const label patchI
|
||||
) const
|
||||
@ -312,8 +307,7 @@ Foam::solidMixtureThermo<MixtureType>::K
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField>
|
||||
Foam::solidMixtureThermo<MixtureType>::Hf
|
||||
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::Hf
|
||||
(
|
||||
const label patchI
|
||||
) const
|
||||
@ -335,8 +329,7 @@ Foam::solidMixtureThermo<MixtureType>::Hf
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField>
|
||||
Foam::solidMixtureThermo<MixtureType>::sigmaS
|
||||
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::sigmaS
|
||||
(
|
||||
const label patchI
|
||||
) const
|
||||
@ -359,8 +352,7 @@ Foam::solidMixtureThermo<MixtureType>::sigmaS
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField>
|
||||
Foam::solidMixtureThermo<MixtureType>::kappa
|
||||
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::kappa
|
||||
(
|
||||
const label patchI
|
||||
) const
|
||||
@ -383,8 +375,7 @@ Foam::solidMixtureThermo<MixtureType>::kappa
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField>
|
||||
Foam::solidMixtureThermo<MixtureType>::emissivity
|
||||
Foam::tmp<Foam::scalarField> Foam::solidMixtureThermo<MixtureType>::emissivity
|
||||
(
|
||||
const label patchI
|
||||
) const
|
||||
|
||||
@ -43,7 +43,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class solidMixtureThermo Declaration
|
||||
Class solidMixtureThermo Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class MixtureType>
|
||||
@ -81,8 +81,7 @@ public:
|
||||
|
||||
|
||||
//- Destructor
|
||||
|
||||
virtual ~solidMixtureThermo();
|
||||
virtual ~solidMixtureThermo();
|
||||
|
||||
|
||||
// Member functions
|
||||
@ -122,8 +121,8 @@ public:
|
||||
|
||||
// Patches variables
|
||||
|
||||
|
||||
//- Density [kg/m3]
|
||||
|
||||
//- Density [kg/m3]
|
||||
virtual tmp<scalarField> rho(const label patchI) const;
|
||||
|
||||
//- Specific heat capacity [J/(kg.K)]
|
||||
@ -148,13 +147,11 @@ public:
|
||||
virtual tmp<scalarField> emissivity(const label patchI) const;
|
||||
|
||||
|
||||
|
||||
//- Read thermophysicalProperties dictionary
|
||||
virtual bool read();
|
||||
|
||||
//- Write the basicSolidThermo properties
|
||||
virtual bool writeData(Ostream& os) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -73,17 +73,16 @@ Foam::autoPtr<Foam::pointSolidMixture> Foam::pointSolidMixture::New
|
||||
const dictionary& thermophysicalProperties
|
||||
)
|
||||
{
|
||||
return autoPtr<pointSolidMixture>(new
|
||||
pointSolidMixture(thermophysicalProperties));
|
||||
return autoPtr<pointSolidMixture>
|
||||
(
|
||||
new pointSolidMixture(thermophysicalProperties)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
Foam::scalarField Foam::pointSolidMixture::X
|
||||
(
|
||||
const scalarField& Y
|
||||
) const
|
||||
Foam::scalarField Foam::pointSolidMixture::X(const scalarField& Y) const
|
||||
{
|
||||
scalarField X(Y.size());
|
||||
scalar rhoInv = 0.0;
|
||||
@ -97,10 +96,7 @@ Foam::scalarField Foam::pointSolidMixture::X
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::pointSolidMixture::rho
|
||||
(
|
||||
const scalarField& X
|
||||
) const
|
||||
Foam::scalar Foam::pointSolidMixture::rho(const scalarField& X) const
|
||||
{
|
||||
scalar val = 0.0;
|
||||
forAll(properties_, i)
|
||||
@ -111,10 +107,7 @@ Foam::scalar Foam::pointSolidMixture::rho
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::pointSolidMixture::Cp
|
||||
(
|
||||
const scalarField& Y
|
||||
) const
|
||||
Foam::scalar Foam::pointSolidMixture::Cp(const scalarField& Y) const
|
||||
{
|
||||
scalar val = 0.0;
|
||||
forAll(properties_, i)
|
||||
|
||||
@ -55,7 +55,7 @@ Ostream& operator<<
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class pointSolid Declaration
|
||||
Class pointSolid Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class pointSolid
|
||||
|
||||
Reference in New Issue
Block a user