Skip to content
Snippets Groups Projects
Commit eab309a8 authored by andy's avatar andy
Browse files

ENH: Updated film radiation model

parent 643f4cb9
Branches
Tags
No related merge requests found
......@@ -57,11 +57,11 @@ standardRadiation::standardRadiation
)
:
filmRadiationModel(typeName, owner, dict),
QrPrimary_
QinPrimary_
(
IOobject
(
"Qr", // same name as Qr on primary region to enable mapping
"Qin", // same name as Qin on primary region to enable mapping
owner.time().timeName(),
owner.regionMesh(),
IOobject::NO_READ,
......@@ -103,7 +103,7 @@ standardRadiation::~standardRadiation()
void standardRadiation::correct()
{
// Transfer Qr from primary region
QrPrimary_.correctBoundaryConditions();
QinPrimary_.correctBoundaryConditions();
}
......@@ -128,13 +128,13 @@ tmp<volScalarField> standardRadiation::Shs()
);
scalarField& Shs = tShs();
const scalarField& QrP = QrPrimary_.internalField();
const scalarField& QinP = QinPrimary_.internalField();
const scalarField& delta = delta_.internalField();
Shs = beta_*(QrP*pos(delta - deltaMin_))*(1.0 - exp(-kappaBar_*delta));
Shs = beta_*(QinP*pos(delta - deltaMin_))*(1.0 - exp(-kappaBar_*delta));
// Update net Qr on local region
QrNet_.internalField() = QrP - Shs;
QrNet_.internalField() = QinP - Shs;
QrNet_.correctBoundaryConditions();
return tShs;
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -59,8 +59,8 @@ private:
// Private data
//- Radiative flux mapped from the primary region / [kg/s3]
volScalarField QrPrimary_;
//- Radiative incident flux mapped from the primary region / [kg/s3]
volScalarField QinPrimary_;
//- Remaining radiative flux after removing local contribution
volScalarField QrNet_;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment