CRPropa / CRPropa3

CRPropa is a public astrophysical simulation framework for propagating extraterrestrial ultra-high energy particles. https://crpropa.github.io/CRPropa3/
https://crpropa.desy.de
GNU General Public License v3.0
72 stars 69 forks source link

Loading TF17 man #482

Closed VasundharaShaw closed 7 months ago

VasundharaShaw commented 7 months ago

Hello I am trying to use the TF17 model and I want to load different configurations of the model so for example "Ad1" disc model and "C0" halo model. This is how I call the field:

bField = TF17Field("Ad1","C0") .

I have attached the error below. Its not clear to me how can call different components of TF17.

Thanks! Screenshot 2024-04-16 at 11 39 07

JulienDoerner commented 7 months ago

hey @VasundharaShaw, CRPropa defines seperate varaibles for the models. You can use them like bfield = TF17Field(TF17DiskModel_Ad1, TF17HaloModel_C0) where you can change the disk model to Ad1, Bd1 and Dd1 as well as the halo models C0 or C1.

I hope this answers your question.

VasundharaShaw commented 7 months ago

@JulienDoerner Thanks a lot. It works now!