mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
put into compressiblenamespace
This commit is contained in:
@ -33,9 +33,16 @@ License
|
|||||||
#include "basicThermo.H"
|
#include "basicThermo.H"
|
||||||
#include "RASModel.H"
|
#include "RASModel.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
namespace compressible
|
||||||
|
{
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::interfaceOwner
|
bool turbulentTemperatureCoupledBaffleFvPatchScalarField::interfaceOwner
|
||||||
(
|
(
|
||||||
const polyMesh& nbrRegion,
|
const polyMesh& nbrRegion,
|
||||||
const polyPatch& nbrPatch
|
const polyPatch& nbrPatch
|
||||||
@ -103,7 +110,7 @@ bool Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::interfaceOwner
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::
|
turbulentTemperatureCoupledBaffleFvPatchScalarField::
|
||||||
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
@ -121,7 +128,7 @@ turbulentTemperatureCoupledBaffleFvPatchScalarField
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::
|
turbulentTemperatureCoupledBaffleFvPatchScalarField::
|
||||||
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
||||||
(
|
(
|
||||||
const turbulentTemperatureCoupledBaffleFvPatchScalarField& ptf,
|
const turbulentTemperatureCoupledBaffleFvPatchScalarField& ptf,
|
||||||
@ -137,7 +144,7 @@ turbulentTemperatureCoupledBaffleFvPatchScalarField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::
|
turbulentTemperatureCoupledBaffleFvPatchScalarField::
|
||||||
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
@ -189,7 +196,7 @@ turbulentTemperatureCoupledBaffleFvPatchScalarField
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::
|
turbulentTemperatureCoupledBaffleFvPatchScalarField::
|
||||||
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
||||||
(
|
(
|
||||||
const turbulentTemperatureCoupledBaffleFvPatchScalarField& wtcsf,
|
const turbulentTemperatureCoupledBaffleFvPatchScalarField& wtcsf,
|
||||||
@ -205,8 +212,8 @@ turbulentTemperatureCoupledBaffleFvPatchScalarField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::tmp<Foam::scalarField>
|
tmp<scalarField>
|
||||||
Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::K() const
|
turbulentTemperatureCoupledBaffleFvPatchScalarField::K() const
|
||||||
{
|
{
|
||||||
if (KName_ == "none")
|
if (KName_ == "none")
|
||||||
{
|
{
|
||||||
@ -230,7 +237,7 @@ Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::K() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs()
|
void turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs()
|
||||||
{
|
{
|
||||||
if (updated())
|
if (updated())
|
||||||
{
|
{
|
||||||
@ -336,9 +343,12 @@ void Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs()
|
|||||||
{
|
{
|
||||||
scalar Q = gSum(K()*patch().magSf()*normalGradient());
|
scalar Q = gSum(K()*patch().magSf()*normalGradient());
|
||||||
|
|
||||||
Info<< "turbulentTemperatureCoupledBaffleFvPatchScalarField::"
|
Info<< patch().boundaryMesh().mesh().name() << ':'
|
||||||
<< "updateCoeffs() :"
|
<< patch().name() << ':'
|
||||||
<< " patch:" << patch().name()
|
<< this->dimensionedInternalField().name() << " -> "
|
||||||
|
<< nbrMesh.name() << ':'
|
||||||
|
<< nbrPatch.name() << ':'
|
||||||
|
<< this->dimensionedInternalField().name() << " :"
|
||||||
<< " heatFlux:" << Q
|
<< " heatFlux:" << Q
|
||||||
<< " walltemperature "
|
<< " walltemperature "
|
||||||
<< " min:" << gMin(*this)
|
<< " min:" << gMin(*this)
|
||||||
@ -373,8 +383,12 @@ void Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs()
|
|||||||
{
|
{
|
||||||
label nTotSize = returnReduce(this->size(), sumOp<label>());
|
label nTotSize = returnReduce(this->size(), sumOp<label>());
|
||||||
|
|
||||||
Info<< "turbulentTemperatureCoupledBaffleFvPatchScalarField::"
|
Info<< patch().boundaryMesh().mesh().name() << ':'
|
||||||
<< "updateCoeffs() :"
|
<< patch().name() << ':'
|
||||||
|
<< this->dimensionedInternalField().name() << " -> "
|
||||||
|
<< nbrMesh.name() << ':'
|
||||||
|
<< nbrPatch.name() << ':'
|
||||||
|
<< this->dimensionedInternalField().name() << " :"
|
||||||
<< " patch:" << patch().name()
|
<< " patch:" << patch().name()
|
||||||
<< " out of:" << nTotSize
|
<< " out of:" << nTotSize
|
||||||
<< " fixedBC:" << nFixed
|
<< " fixedBC:" << nFixed
|
||||||
@ -385,7 +399,7 @@ void Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::write
|
void turbulentTemperatureCoupledBaffleFvPatchScalarField::write
|
||||||
(
|
(
|
||||||
Ostream& os
|
Ostream& os
|
||||||
) const
|
) const
|
||||||
@ -400,15 +414,17 @@ void Foam::turbulentTemperatureCoupledBaffleFvPatchScalarField::write
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
makePatchTypeField
|
makePatchTypeField
|
||||||
(
|
(
|
||||||
fvPatchScalarField,
|
fvPatchScalarField,
|
||||||
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace compressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -23,7 +23,7 @@ License
|
|||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
Class
|
Class
|
||||||
turbulentTemperatureCoupledBaffleFvPatchScalarField
|
Foam::compressible::turbulentTemperatureCoupledBaffleFvPatchScalarField
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Mixed boundary condition for temperature, to be used for heat-transfer
|
Mixed boundary condition for temperature, to be used for heat-transfer
|
||||||
@ -65,14 +65,16 @@ SourceFiles
|
|||||||
#ifndef turbulentTemperatureCoupledBaffleFvPatchScalarField_H
|
#ifndef turbulentTemperatureCoupledBaffleFvPatchScalarField_H
|
||||||
#define turbulentTemperatureCoupledBaffleFvPatchScalarField_H
|
#define turbulentTemperatureCoupledBaffleFvPatchScalarField_H
|
||||||
|
|
||||||
#include "fvPatchFields.H"
|
//#include "fvPatchFields.H"
|
||||||
#include "mixedFvPatchFields.H"
|
#include "mixedFvPatchFields.H"
|
||||||
#include "fvPatch.H"
|
//#include "fvPatch.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
namespace compressible
|
||||||
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class turbulentTemperatureCoupledBaffleFvPatchScalarField Declaration
|
Class turbulentTemperatureCoupledBaffleFvPatchScalarField Declaration
|
||||||
@ -102,7 +104,7 @@ class turbulentTemperatureCoupledBaffleFvPatchScalarField
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
TypeName("turbulentTemperatureCoupledBaffle");
|
TypeName("compressible::turbulentTemperatureCoupledBaffle");
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
@ -188,6 +190,7 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace compressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user