ENH: tabulatedNTUHeatTransfer fvOption - updated header documentation and minor code clean-up

This commit is contained in:
Andrew Heather
2015-12-02 09:00:08 +00:00
parent 3c9deb1080
commit e35afa35bf
2 changed files with 37 additions and 16 deletions

View File

@ -295,19 +295,6 @@ void Foam::fv::tabulatedNTUHeatTransfer::calculateHtc()
}
void Foam::fv::tabulatedNTUHeatTransfer::writeData(Ostream& os) const
{
os << indent << token::BEGIN_BLOCK << incrIndent << nl;
interRegionHeatTransferModel::writeData(os);
os << indent << type() + "Coeffs" << nl;
coeffs_.write(os);
os << decrIndent << indent << token::END_BLOCK << endl;
}
bool Foam::fv::tabulatedNTUHeatTransfer::read(const dictionary& dict)
{
if (option::read(dict))

View File

@ -54,10 +54,47 @@ Description
C_{min} = min \left(Cp_1 \dot{m}_1, Cp_2 \dot{m}_2 \right)
\f]
\heading Example usage
\verbatim
coolerToAir
{
type tabulatedNTUHeatTransfer;
active yes;
tabulatedNTUHeatTransferCoeffs
{
interpolationMethod cellVolumeWeight;
nbrRegionName air;
master true;
fieldNames (h);
outOfBounds clamp;
fileName "ntuTable";
nbrModelName airToCooler;
semiImplicit no;
geometryMode user;
Ain 0.01728;
AinNbr 0.3456;
Vcore 0.01244; // Optional
// geometryMode calculated;
// inletPatch inlet_HWK;
// inletPatchNbr inlet_air;
// inletBlockageRatio 0.10;
// inletBlockageRatioNbr 0.04;
// coreBlockageRatio 0;
}
}
SourceFiles
tabulatedNTUHeatTransfer.C
SeeAlso
interRegionHeatTransferModel.H
\*---------------------------------------------------------------------------*/
#ifndef tabulatedNTUHeatTransfer_H
@ -171,9 +208,6 @@ public:
// I-O
//- Write data
virtual void writeData(Ostream&) const;
//- Read dictionary
virtual bool read(const dictionary& dict);
};