CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Using incident radiation (G) in the solver (

Mostafa June 1, 2011 08:56

Using incident radiation (G) in the solver
1 Attachment(s)
Dear all,

I have some problems while generating a new solver base on the icoFOAM in OpenFOAM 1.7.0.
At first, I have added the radiation model and two species transport equations (YH2O2 and YOHr) to the icoFOAM. Up to this step the solver worked correctly and provided reasonable results. Then I wanted to use incident radiation (G or G_) as a part of the source term of the species transport equations. But I got this error:


In file included from WUVrad.C:118:
chemicalComponents.H: In function ‘int main(int, char**)’:
chemicalComponents.H:7: error: ‘G’ was not declared in this scope
It seems that the G (incident radiation) is a private scalerfield in the radiation models.
I wonder if there is anyway to use the incident radiation (G) as a parameter in my solver?

The files of the solver are attached.

Any help would be appreciated.


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