From 8f03a3258b6aa98246a6b1623074488abdb6264f Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 1 Oct 2010 17:22:59 +0100 Subject: [PATCH] ENH: updated buoyantBoussinesqPimpleFoam solver to include thermal wall functions on (kinematic) turbulent thermal conductivity, kappat and updated tutorial --- .../buoyantBoussinesqPimpleFoam/TEqn.H | 9 ++-- .../createFields.H | 15 +++++++ .../hotRoom/0/kappat | 45 +++++++++++++++++++ 3 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/0/kappat diff --git a/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/TEqn.H b/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/TEqn.H index a7a019a210..dbfc61739f 100644 --- a/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/TEqn.H +++ b/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/TEqn.H @@ -1,9 +1,8 @@ { - volScalarField kappaEff - ( - "kappaEff", - turbulence->nu()/Pr + turbulence->nut()/Prt - ); + kappat = turbulence->nut()/Prt; + kappat.correctBoundaryConditions(); + + volScalarField kappaEff("kappaEff", turbulence->nu()/Pr + kappat); fvScalarMatrix TEqn ( diff --git a/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/createFields.H b/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/createFields.H index 704918bb09..23d20cfa96 100644 --- a/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/createFields.H +++ b/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam/createFields.H @@ -52,6 +52,21 @@ incompressible::RASModel::New(U, phi, laminarTransport) ); + // kinematic turbulent thermal thermal conductivity m2/s + Info<< "Reading field kappat\n" << endl; + volScalarField kappat + ( + IOobject + ( + "kappat", + runTime.timeName(), + mesh, + IOobject::MUST_READ, + IOobject::AUTO_WRITE + ), + mesh + ); + label pRefCell = 0; scalar pRefValue = 0.0; setRefCell diff --git a/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/0/kappat b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/0/kappat new file mode 100644 index 0000000000..60ef341d55 --- /dev/null +++ b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/0/kappat @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object kappat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + floor + { + type kappatJayatillekeWallFunction; + Prt 0.85; + value uniform 0; + } + ceiling + { + type kappatJayatillekeWallFunction; + Prt 0.85; + value uniform 0; + } + fixedWalls + { + type kappatJayatillekeWallFunction; + Prt 0.85; + value uniform 0; + } +} + + +// ************************************************************************* //