1. Luminosity case, setting incident radiation field with Q and R_inner
c_input = pc.CloudyInput('/folder/model_name_Q')
c_input.set_star(SED = 'table star "user_defined_grid.mod" ', SED_params = 'age=3e6 zmet=1', lumi_unit = 'Q(H)', lumi_value = '46.547')
2. Intensity case, setting incident radiation field with U, the ionization parameter and also setting R_inner
c_input = pc.CloudyInput('/folder/model_name_U')
c_input.set_star(SED =
'table star "user_defined_grid.mod" ', SED_params = 'age=3e6 zmet=1',
lumi_unit = 'ionization parameter', lumi_value = '0.512')
Keeping all other input parameters the same (i.e. constant density at 30 cm^-3, setting inner radius to 0.01 pc, spherical geometry, etc.) produces different pyCloudy model objects despite the fact that cloudy itself behaves the same (in terms of exact same output emission line spectrum - the only difference is how I've set the strength of the incident radiation field).
model_Q = pc.CloudyModel('/folder/model_name_Q')
model_U = pc.CloudyModel('/folder/model_name_U')
model_Q.print_stats()
......
......
.....
<log U> = -3.08
model_U.print_stats()
.....
.....
.....
warng CloudyModel: No U computed
mod_Q.log_U and
mod_Q.log_U_mean are defined, but
mod_U.log_U and
mod_U.log_U_mean are not.
Just wondering if I am missing something about how to input U vs Q.....maybe this is just an oversight - R_inner and nH are defined in both, and it would be a trivial calculation (especially since Phi is defined in the U case). I ask because it is useful if one has been using U to define their models but would like to know / calculate the stromgren radius.
I've been using cloudy for a while but I've only just started to explore pyCloudy- it seems like an extremely useful tool, so thanks for all your work!