|
[Sponsors] |
June 6, 2023, 13:17 |
Issue with boundaryRadiationProperties
|
#1 |
New Member
Peter Bevington
Join Date: May 2023
Posts: 10
Rep Power: 3 |
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 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; } // ************************************************************************* // 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; |
|
July 7, 2023, 07:43 |
|
#2 |
New Member
Daniel W Theobald
Join Date: Feb 2017
Posts: 10
Rep Power: 9 |
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). Last edited by pm11dt; July 7, 2023 at 08:21. Reason: Solved the issue |
|
July 7, 2023, 12:43 |
|
#3 |
New Member
Peter Bevington
Join Date: May 2023
Posts: 10
Rep Power: 3 |
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? |
|
July 7, 2023, 12:55 |
|
#4 |
New Member
Daniel W Theobald
Join Date: Feb 2017
Posts: 10
Rep Power: 9 |
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. |
|
July 7, 2023, 12:59 |
|
#5 |
New Member
Peter Bevington
Join Date: May 2023
Posts: 10
Rep Power: 3 |
Looking at your provided file it looks like absorptivity is misspelled for patch other_patches. Maybe thats the issue?
|
|
July 7, 2023, 13:03 |
|
#6 |
New Member
Daniel W Theobald
Join Date: Feb 2017
Posts: 10
Rep Power: 9 |
That is interesting because my case is running now with no issues, good spot though! Saved me a weekends worth of rerunning simulations.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |