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: Quote:
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. Regards Mostafa |
Dear Mostaf,
I meet samiliar problem like you. I want to use incident radiaton in my solver. But it is private scalarfield. Have you solved your problem? Chengan |
1 Attachment(s)
Hello everyone,
I want to use incident radiation 'G' in my solver, which is in the attachement. In c++ code, it writes Code:
class fvDOM Code:
//- Const access to incident radiation field Best regards Chengan |
Maybe the reply is a bit late but one can access a field present in memory by the following command:
const volScalarField& G_ = U.mesh().lookupObject<volScalarField>("G"); it gives you constant access to the desired field (obviously it cannot be modified) Best Michael |
Hello Michael,
Thank you for your reply. Best regards Chengan |
All times are GMT -4. The time now is 22:59. |