[FLASH-USERS] Question about analyzing electron density and temperature in FLASH HDF5 files with yt

Hansen, Eddie ehansen at pas.rochester.edu
Thu Mar 20 09:25:01 EDT 2025


Hi Jesse,

Your data appears to already be 2D, so there’s nothing to choose for slicing or averaging in the z-direction. In 2D, FLASH assumes a dz = 1.0 cell width in that direction for some calculations, but the size of the data in the z-direction is always 1 (regardless of AMR level) as you showed in yt’s domain_dimensions output.

--
Eddie Hansen
Applications Group Leader
Flash Center for Computational Science


From: flash-users <flash-users-bounces at flash.rochester.edu> on behalf of Jesse Chen <cxxgc at msn.com>
Date: Thursday, March 20, 2025 at 5:57 AM
To: flash-users at flash.rochester.edu <flash-users at flash.rochester.edu>
Subject: [FLASH-USERS] Question about analyzing electron density and temperature in FLASH HDF5 files with yt
Dear FLASH Users and Engineers,

I hope this email finds you well. I am currently working with FLASH-generated HDF5 files and using the Python yt package to analyze electron number density and electron temperature in Cartesian x-y coordinates, AMR meshes.

I've noticed some inconsistencies in my results when dealing with AMR data, and I'm wondering about the proper methodology. Specifically, I would like to know:

1. When analyzing electron density and temperature in x-y coordinates with AMR data, should I take a specific z-slice (if so, what value of z is typically recommended)? or

2. Should I instead calculate the mean values across all z coordinates? (My Nz =8 for my current simulation case)

FYI, the dimensions of my simulation is as follows,

yt : [INFO     ] 2025-03-20 17:17:23,436 Parameters: domain_dimensions         = [ 48 144   1]
yt : [INFO     ] 2025-03-20 17:17:23,436 Parameters: domain_left_edge          = [-0.75 -0.06  0.  ]
yt : [INFO     ] 2025-03-20 17:17:23,436 Parameters: domain_right_edge         = [0.75 4.44 1.  ]

I've seen both approaches in some datasets (labeled as "slice0" and "mean"), but I'm not sure which is the standard practice for this type of analysis. Any guidance on best practices or considerations that might affect this decision would be greatly appreciated.

Thank you for your time and expertise.

Best regards,

Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20250320/846509bf/attachment.htm>


More information about the flash-users mailing list