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

Issue with boundaryRadiationProperties

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2023, 13:17
Unhappy Issue with boundaryRadiationProperties
  #1
New Member
 
Peter Bevington
Join Date: May 2023
Posts: 10
Rep Power: 3
pbevington is on a distinguished road
Hi all,

I'm receiving the following error when running a coal combustion (with radiation) solver:

Code:
--> FOAM FATAL ERROR: (openfoam-2012)
Patch : base is not found in the boundaryRadiationProperties. Please add it

    From Foam::tmp<Foam::Field<double>> Foam::radiation::boundaryRadiationProperties::emissivity(int, int, Foam::Field<Foam::Vector<double>> *, Foam::Field<double> *) const
    in file submodels/boundaryRadiationProperties/boundaryRadiationProperties.C at line 128
In particular, the error occurs when the solver calls radiation->correct(). It seems to think that I haven't defined BCs for patch, even though I definitely have. I checked my boundaryRadiationProperties dict, which does contain a wildcard for all patches. To make extra sure it wasn't the dictionary, I even added an explicit dictionary entry for patch base, to no success:

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       dictionary;
    location    "constant";
    object      boundaryRadiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

".*"
{
    type            lookup;
    emissivity      1.0;
}

base
{
type boundaryRadiation;
emissivity uniform 1.0;
absorptivity uniform 1.0;
transmissivity uniform 0.0;
}

// ************************************************************************* //
For reference, I'm using the P1 radiation model with constantAbsorptionEmission, though this error still appears with different choices of radiation model:

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       dictionary;
    location    "constant";
    object      radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

radiation       on;

radiationModel  P1;

P1Coeffs
{
    C               C [0 0 0 0 0 0 0] 0;
}

// Number of flow iterations per radiation iteration
solverFreq 10;

absorptionEmissionModel constantAbsorptionEmission;
absorptivity    [0 -1 0 0 0 0 0] 0.5;
emissivity      [0 -1 0 0 0 0 0] 0.5;
E   [1 -1 -3 0 0 0 0] 0;

scatterModel    none;

cloudScatterCoeffs
{
    cloudNames
    (
        coalCloud1
    );
}

transmissivityModel none;
Any ideas where this issue could be originating from?
pbevington is offline   Reply With Quote

Old   July 7, 2023, 07:43
Default
  #2
New Member
 
Daniel W Theobald
Join Date: Feb 2017
Posts: 10
Rep Power: 9
pm11dt is on a distinguished road
I am having the same issue with buoyantPimpleFoam with P1 radiation model.

Did you find the reason for this?

Edit:

I am using OpenFOAM-v2212, I'm not sure if they changed things from older versions and/or the foundation versions but looking at the source code I figured out how the radiationBoundaryProperties should look.

Notes:
- It should be in the constant folder
- in the file header it should be labeled "class dictionary;"
- You can also set reflectivity and transmissivity, but not including those does not seem to throw any errors.
- you can set band-based emissivity, absorptivity, etc. values here, not sure specifically how though but the source code eludes to it.
- symmetry patches are not type symmetry here, they are type of a type like any other wall/patch BC (i use type lookup for my symmetry surfaces).
Attached Files
File Type: txt boundaryRadiationProperties.txt (1.1 KB, 20 views)

Last edited by pm11dt; July 7, 2023 at 08:21. Reason: Solved the issue
pm11dt is offline   Reply With Quote

Old   July 7, 2023, 12:43
Default
  #3
New Member
 
Peter Bevington
Join Date: May 2023
Posts: 10
Rep Power: 3
pbevington is on a distinguished road
My error was actually caused by the dictionary name- as I was using custom code to read the boundary radiation dict file I had to change the name to match what was expected.

I doubt this is the case for you- what is the error that you are getting exactly?
pbevington is offline   Reply With Quote

Old   July 7, 2023, 12:55
Default
  #4
New Member
 
Daniel W Theobald
Join Date: Feb 2017
Posts: 10
Rep Power: 9
pm11dt is on a distinguished road
It was the the same error you got where it said it could not find the radiation boundary properties for patch "..." and told me to please add it.

When looking at the C code it throws this error pretty much as a 'catch-all' response to any input error to the boundaryRadiationProperties file - which i think could be improved for usability.
pm11dt is offline   Reply With Quote

Old   July 7, 2023, 12:59
Default
  #5
New Member
 
Peter Bevington
Join Date: May 2023
Posts: 10
Rep Power: 3
pbevington is on a distinguished road
Looking at your provided file it looks like absorptivity is misspelled for patch other_patches. Maybe thats the issue?
pbevington is offline   Reply With Quote

Old   July 7, 2023, 13:03
Default
  #6
New Member
 
Daniel W Theobald
Join Date: Feb 2017
Posts: 10
Rep Power: 9
pm11dt is on a distinguished road
That is interesting because my case is running now with no issues, good spot though! Saved me a weekends worth of rerunning simulations.
pm11dt is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Issue on zeroGradient BC for system rotation magnushaese OpenFOAM Running, Solving & CFD 2 January 28, 2022 13:43
rhoCentralFoam inviscid airfoil issue (Foam::error::printStack(Foam::Ostream&) at ??) kmkb21 OpenFOAM Running, Solving & CFD 1 March 1, 2018 01:07
Prism Layer - Core Mesh Boundary Issue InfernoxCJC STAR-CCM+ 7 November 21, 2017 15:46
foamToTecplot360 issue with multiregion solvers manuc OpenFOAM Post-Processing 2 November 21, 2016 13:51
Pressure boundary condition issue Vijay FLUENT 0 April 6, 2012 13:35


All times are GMT -4. The time now is 05:28.