|
[Sponsors] | |||||
|
|
|
#1 | |
|
New Member
Mostafa Moghaddami
Join Date: Oct 2009
Posts: 13
Rep Power: 18 ![]() |
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 |
||
|
|
|
||
|
|
|
#2 |
|
Member
|
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 |
|
|
|
|
|
|
|
|
#3 |
|
Member
|
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
:
public radiationModel
{
// Private data
//- Incident radiation [W/m2]
volScalarField G_;
Code:
//- Const access to incident radiation field
inline const volScalarField& G() const;
Best regards Chengan |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 17 ![]() |
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 |
|
|
|
|
|
|
|
|
#5 |
|
Member
|
Hello Michael,
Thank you for your reply. Best regards Chengan |
|
|
|
|
|
![]() |
| Tags |
| incident radiation, modeling |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating New Solver: For particle-laden compressible jets | sankarv | OpenFOAM Running, Solving & CFD | 17 | December 3, 2014 20:41 |
| Quarter Burner mesh with periosic condition | SamCanuck | FLUENT | 2 | August 31, 2011 12:34 |
| Creating New Solver: For particle-laden compressible jets | sankarv | OpenFOAM | 0 | April 4, 2010 19:06 |
| Question about radiation | Flying | CFX | 0 | January 12, 2005 21:32 |
| radiation source-modeling people in room? | CFX5.7User | CFX | 0 | November 10, 2004 15:32 |