mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: tabulatedNTUHeatTransfer fvOption - updated header documentation and minor code clean-up
This commit is contained in:
@ -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))
|
||||
|
||||
@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user