CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

rhoSimpleFoam and externalWallHeatFluxTemperature issue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2021, 12:11
Wink rhoSimpleFoam and externalWallHeatFluxTemperature issue
  #1
New Member
 
Matt
Join Date: Sep 2016
Posts: 7
Rep Power: 10
mattmirsad is on a distinguished road
Dear FOAMers,

I am trying to solve a simple internal flow case in a pipe with rhoSimpleFoam where an external heat flux is specified using "externalWallHeatFluxTemperature" as shown in the code below:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 300;

boundaryField
{
    Inlet
    {
        type            fixedValue;
        value           $internalField;
    }

    outlet
    {
        type            inletOutlet;
        value           $internalField;
        inletValue      $internalField;
    }

    sides
    {

        type            externalWallHeatFluxTemperature;
		mode            coefficient;
        Ta              constant 700.0;
        h               constant 1000.0;
        thicknessLayers (0.001 0.002);
        kappaLayers     (1 2.5);
        kappaMethod     fluidThermo;
        value           $internalField;

    }
}

// ************************************************************************* //
The solver runs smoothly without any problem and the results are reasonable. But if I only change the "sides" temperature boundary condition to uniform heat flux (as shown below), the solver stops in the first iteration without any error message!


PHP Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    
version     2.0;
    
format      ascii;
    class       
volScalarField;
    
object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 300;

boundaryField
{
    
Inlet
    
{
        
type            fixedValue;
        
value           $internalField;
    }

    
outlet
    
{
        
type            inletOutlet;
        
value           $internalField;
        
inletValue      $internalField;
    }

    
sides
    
{
        
type            externalWallHeatFluxTemperature;
        
mode            flux;
        
q               uniform 111// W/m^2
        
value           $internalField;
        
kappaMethod     fluidThermo;
        
kappa           none;
        
Qr              none;
    }
}

// ************************************************************************* // 
In a nutshell, mode "coefficient" works perfectly but mode "flux" cause the solver to crash without any error message. Here is how the solver stops:
PHP Code:
Time 1

GAMG
:  Solving for UxInitial residual 1, Final residual 0.0495507No Iterations 2
GAMG
:  Solving for UyInitial residual 1, Final residual 0.0551383No Iterations 2
GAMG
:  Solving for UzInitial residual 1, Final residual 0.0278211No Iterations 1 
Could you please share your thoughts on the possible root causes for this?

Cheers,
Matt
mattmirsad is offline   Reply With Quote

Reply

Tags
rhosimplefoam error


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
transsonic nozzle with rhoSimpleFoam Unseen OpenFOAM Running, Solving & CFD 8 July 1, 2022 07:54
rhoSimpleFoam Spalart Allmaras simulation issue mariloo OpenFOAM Running, Solving & CFD 0 December 4, 2019 12:09
rhoSimpleFoam convergence issue fxzf OpenFOAM Running, Solving & CFD 2 August 28, 2017 05:37
rhoSimpleFoam angledDuctExplicitFixedCoeff tutorial fails in parallel donQi OpenFOAM Running, Solving & CFD 1 February 22, 2016 20:47
rhoSimpleFoam. patchField error. 123 OpenFOAM Running, Solving & CFD 4 June 6, 2014 16:22


All times are GMT -4. The time now is 17:24.