Skip to content

externalWallHeatFluxTemperature and PatchFunction1

Summary

If is used a combination of boundary condition externalWallHeatFluxTemperature with PatchFunction1 then there is a problem with writing the boundary condition during the calculation. I have used a combination of PatchFunction1 and coded as is shown below

    type            externalWallHeatFluxTemperature;

    mode            flux;
    q               coded;
    kappaMethod     fluidThermo;
    value           $internalField;
    
    name         heatFluxVerticalProfile;
    
    code
    #{
          ...
    #};

During the calculation, the boundary condition is written as

    type            externalWallHeatFluxTemperature;
    mode            flux;
    kappaMethod     fluidThermo;
    q
    {
        type            externalWallHeatFluxTemperature;
        mode            flux;
        q               coded;
        name            heatFluxVerticalProfile;
        code            
        #{
             ...
        #};
        kappaMethod     fluidThermo;
        value           uniform 873;
    }

Environment information

Providing details of your set-up can help us identify any issues, e.g. OpenFOAM version : v2212 Operating system : openSUSE Hardware info : any info that may help? Compiler : gcc

Possible fixes

Necessary to check how is the boundary condition written.