From 9efaf83fee680da4d700e7b16021689360245b4f Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 1 Oct 2010 17:23:52 +0100 Subject: [PATCH] ENH: updated buoyantBoussinesqSimpleFoam solver to include thermal wall functions on (kinematic) turbulent thermal conductivity, kappat and updated tutorial --- .../buoyantBoussinesqSimpleFoam/TEqn.H | 9 ++-- .../createFields.H | 15 ++++++ .../hotRoom/0/kappat | 45 ++++++++++++++++ .../iglooWithFridges/0/kappat | 54 +++++++++++++++++++ 4 files changed, 118 insertions(+), 5 deletions(-) create mode 100644 tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/kappat create mode 100644 tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/0/kappat diff --git a/applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/TEqn.H b/applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/TEqn.H index 2084d4dbda..180a33d918 100644 --- a/applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/TEqn.H +++ b/applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/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/buoyantBoussinesqSimpleFoam/createFields.H b/applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/createFields.H index b84f0735b0..76cc4da8ba 100644 --- a/applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/createFields.H +++ b/applications/solvers/heatTransfer/buoyantBoussinesqSimpleFoam/createFields.H @@ -64,6 +64,21 @@ 1.0 - beta*(T - TRef) ); + // 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 + ); + Info<< "Calculating field g.h\n" << endl; volScalarField gh("gh", g & mesh.C()); surfaceScalarField ghf("ghf", g & mesh.Cf()); diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/kappat b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/kappat new file mode 100644 index 0000000000..60ef341d55 --- /dev/null +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/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; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/0/kappat b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/0/kappat new file mode 100644 index 0000000000..1bea15c9c2 --- /dev/null +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/0/kappat @@ -0,0 +1,54 @@ +/*--------------------------------*- 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 +{ + ground + { + type kappatJayatillekeWallFunction; + Prt 0.85; + value uniform 0; + } + + igloo_region0 + { + type kappatJayatillekeWallFunction; + Prt 0.85; + value uniform 0; + } + + twoFridgeFreezers_seal_0 + { + type kappatJayatillekeWallFunction; + Prt 0.85; + value uniform 0; + } + + twoFridgeFreezers_herring_1 + { + type kappatJayatillekeWallFunction; + Prt 0.85; + value uniform 0; + } +} + + +// ************************************************************************* //