Skip to content

Commit

Permalink
(moddump_radiotde) calculate gas-only entropy
Browse files Browse the repository at this point in the history
  • Loading branch information
Monash-Fitz-Hu committed Mar 15, 2024
1 parent e0b624b commit 7e65f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/moddump_radiotde.f90
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ subroutine modify_dump(npart,npartoftype,massoftype,xyzh,vxyzu)
if (read_temp) temperature = get_temp_r(r,rad_prof,temp_prof)
vxyzu(4,i) = uerg(rhof(r),temperature)
vxyzu(1:3,i) = 0. ! stationary for now
pxyzu(4,i) = (kb_on_mh / mu * log(temperature**1.5/rhof(r)) + 4.*radconst*temperature**3 / (3.*rhof(r))) / kboltz/ unit_ergg
pxyzu(4,i) = (kb_on_mh / mu * log(temperature**1.5/(rhof(r)*unit_density))) / kboltz/ unit_ergg
enddo

!--Set timesteps
Expand Down

0 comments on commit 7e65f60

Please sign in to comment.