fvModels: heatTransfer, interRegionHeatTransfer: Usability improvements

The input syntax of the heatTransfer and interRegionHeatTransfer
fvModels has been modified to make it more usable and consistent with
the rest of OpenFOAM.

The settings for area per unit volume (AoV) are no longer controlled by
the heat transfer coefficient model. Instead they belong to the fvModel
itself and are specified within the base fvModel's dictionary.

The heat transfer coefficient model has been renamed to
"heatTransferCoefficientModel" to better account for exactly what it
does. It is now selected using an entry called
"heatTransferCoefficientModel", rather than "type". As a sub-sub model,
"type" clashes with the outer fvModel's "type" entry unless a Coeffs
dictionary is used. This change has made the Coeffs sub-dictionary
optional, as it should be, unless model-specific keywords require
disambiguation.

A heat transfer coefficient model can now be specified as follows:

    heatTransfer1
    {
        type            heatTransfer;

        heatTransferCoeffs
        {
            selectionMode   all;
            semiImplicit    true;
            Ta              298;
            AoV             100;

            heatTransferCoefficientModel variable; // constant, function1

            constantCoeffs
            {
                htc             1000;
            }

            variableCoeffs
            {
                a               0.332;
                b               0.5;
                c               0.333333;
                Pr              0.7;
                L               0.1;
            }
        }
    }

Alternatively, the coefficient sub-dictionaries can all be omitted,
giving the following syntax:

    heatTransfer1
    {
        type            heatTransfer;

        selectionMode   all;
        semiImplicit    true;
        Ta              298;
        AoV             100;

        heatTransferCoefficientModel variable;

        a               0.332;
        b               0.5;
        c               0.333333;
        Pr              0.7;
        L               0.1;
    }
This commit is contained in:
Will Bainbridge
2023-01-26 17:33:25 +00:00
parent 644a5945da
commit 75da5c3d4c
20 changed files with 604 additions and 434 deletions

View File

@ -18,15 +18,12 @@ airToporous
{
type interRegionHeatTransfer;
interRegionHeatTransferCoeffs
{
nbrRegion porous;
nbrRegion porous;
master false;
interpolationMethod cellVolumeWeight;
master false;
interpolationMethod cellVolumeWeight;
semiImplicit no;
}
semiImplicit no;
}
porosityBlockage

View File

@ -18,19 +18,20 @@ porousToair
{
type interRegionHeatTransfer;
interRegionHeatTransferCoeffs
nbrRegion air;
master true;
interpolationMethod cellVolumeWeight;
semiImplicit no;
AoV 200;
heatTransferCoefficientModel constant;
constantCoeffs
{
nbrRegion air;
interpolationMethod cellVolumeWeight;
master true;
semiImplicit no;
type constant;
htc 10;
AoV 200;
}
}