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

Error: "Source airToporous defined for field h but never used"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2020, 12:00
Question Error: "Source airToporous defined for field h but never used"
  #1
New Member
 
Utkan Erdem
Join Date: Sep 2020
Posts: 19
Rep Power: 6
Utkan is on a distinguished road
I am a newbie in OpenFOAM and I desperately need any type of help or guidance in my situation. I want to simulate the forced cooling of a radiator with air by a fan. I am working with the heatExchanger case under chtMultiRegionFoam. However, the amount of fin/capillary details of this radiator makes it impossible to mesh with a commercial meshing tool. Hence, I'm going for the porosity approach. Water is considered a porous fluid of which the porous parameters are given in the fvOptions. I will include fvOptions of both regions below. The momentum source term due to the porosity blockage is I think already being added correctly, but from what I understood, I have to find a way to add the energy source term to get rid of the warning. But I don't know how to do that. I would really appreciate any help overcoming this error. Thank you in advance.


This is the error that I get, when I try to solve the case

Code:
Solving for fluid region air
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used
DILUPBiCGStab:  Solving for Ux, Initial residual = 0.474622, Final residual = 0.00170632, No Iterations 1
DILUPBiCGStab:  Solving for Uy, Initial residual = 0.403169, Final residual = 0.00159073, No Iterations 1
DILUPBiCGStab:  Solving for Uz, Initial residual = 0.573588, Final residual = 0.00181622, No Iterations 1
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used
DILUPBiCGStab:  Solving for e, Initial residual = 0.00898525, Final residual = 5.40341e-05, No Iterations 1
Min/max T:292.92 325.612
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used
GAMG:  Solving for p_rgh, Initial residual = 0.441588, Final residual = 0.00311991, No Iterations 12
time step continuity errors : sum local = 0.000507967, global = 3.8117e-05, cumulative = 3.8117e-05
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used
DILUPBiCGStab:  Solving for epsilon, Initial residual = 0.0690558, Final residual = 0.000399087, No Iterations 1
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used
--> FOAM Warning : 
    From function virtual void Foam::fv::option::checkApplied() const
    in file cfdTools/general/fvOptions/fvOption.C at line 125
    Source airToporous defined for field h but never used


the fvOptions for both regions is as follows;

For air region;

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

airToporous
{
    type            constantHeatTransfer;

    interpolationMethod cellVolumeWeight;
    nbrRegionName   porous;
    master          false;

    nbrModel        porousToair;
    fields          (h);
    semiImplicit    no;
}

porosityBlockage
{
    type            interRegionExplicitPorositySource;

    interRegionExplicitPorositySourceCoeffs
    {
        interpolationMethod cellVolumeWeight;
        nbrRegionName   porous;

        type            DarcyForchheimer;

        d   (-1000 -1000 1e4);
        f   (0 0 0);

        coordinateSystem
        {
            type    cartesian;
            origin  (0 0 0);
            coordinateRotation
            {
                type    axesRotation;
                e1      (0 1 0);
                e2      (0 0 1);
            }
        }
    }
}


// ************************************************************************* //
For the porous region;

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

porousToair
{
    type            constantHeatTransfer;

    interpolationMethod cellVolumeWeight;
    nbrRegionName   air;
    master          true;

    nbrModel        airToporous;
    fields          (e);
    semiImplicit    no;
}


// ************************************************************************* //
Utkan is offline   Reply With Quote

Old   March 31, 2022, 15:51
Default
  #2
New Member
 
Raphael Santos
Join Date: Oct 2013
Posts: 20
Rep Power: 13
Raphael_Santos is on a distinguished road
Hello Utkan,

have you find a solution to that issue?

Cheers,
Raphael_Santos is offline   Reply With Quote

Old   April 6, 2022, 09:23
Default
  #3
Member
 
Lukas
Join Date: Sep 2021
Posts: 36
Rep Power: 5
Pappelau is on a distinguished road
he defined energy as h in fvoptions but is using in the theromprops the formulation with epsilon this visible in the solver log: solving for epsilon .... this cant work out
Pappelau is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, energy source term, fvoptions, heat exchanger two fluids, porosity; fvoptions


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
[ICEM] How can I define different zones in ICEM? llrr ANSYS Meshing & Geometry 14 February 12, 2017 14:44
UDF link fortran source yorelchr Fluent UDF and Scheme Programming 0 February 7, 2013 04:44
using METIS functions in fortran dokeun Main CFD Forum 7 January 29, 2013 05:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 06:06


All times are GMT -4. The time now is 16:01.