Skip to content

Commit

Permalink
Update src/hisp/plamsa_data_handling/main.py
Browse files Browse the repository at this point in the history
Co-authored-by: Rémi Delaporte-Mathurin <40028739+RemDelaporteMathurin@users.noreply.github.com>
  • Loading branch information
kaelyndunnell and RemDelaporteMathurin authored Dec 20, 2024
1 parent 8ffb867 commit 3d6655a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hisp/plamsa_data_handling/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ def get_heat(self, pulse: Pulse, bin: SubBin | DivBin, t_rel: float) -> float:
raise ValueError(f"Invalid pulse type {pulse.pulse_type}")

if pulse.pulse_type == "FP":
heat_total = data["heat_total"][bin_index]+0.11e+06 # photon radiation heat adjustment
photon_heat_radiation = 0.11e6 # W/m2
heat_total = data["heat_total"][bin_index]+ photon_heat_radiation
heat_ion = data["heat_ion"][bin_index]
if isinstance(bin, SubBin):
heat_val = heat_total - heat_ion * (1 - bin.wetted_frac)
Expand Down

0 comments on commit 3d6655a

Please sign in to comment.