PyKROME + Numpy

26 views
Skip to first unread message

Siddhant Deshmukh

unread,
Mar 15, 2021, 5:00:24 AM3/15/21
to KROMEusers
Hi,
I would like to use PyKROME for chemical post-processing on some model snapshots in 2D. I have a (num_species, x_cells, z_cells) shape numpy array with the number densities of the chemical species and a (x_cells, z_cells) shape numpy array of temperatures. Is it possible to run KROME and pass in these arrays instead of looping over the x, z indices?

Cheers,
Siddhant

tommaso grassi

unread,
Mar 15, 2021, 5:08:49 AM3/15/21
to KROMEusers
Hi Siddhant,

thanks for contacting us.
No, KROME is not vectorized because the solver we are using (DLSODES) is not vectorized.

cheers,
-tg
Reply all
Reply to author
Forward
0 new messages