Skip to content

Commit

Permalink
Fixed power normalization for vtk file
Browse files Browse the repository at this point in the history
  • Loading branch information
imronuke committed Dec 13, 2023
1 parent c276ca4 commit f61fd07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file modified docs/images/half_core.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/mod_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -4506,14 +4506,17 @@ SUBROUTINE print_vtk(time_step)
integer :: g
character(5) :: step
real(dp) :: flux(nnod, ng)
real(dp) :: total

step = int_to_char(time_step)

! Power
if (bther == 1) then
write(vunit, *)'SCALARS Power_' // trim(adjustl(step)) &
// '(W) double'
npow = npow * pow * ppow * 0.01_dp
// '(kW) double'
total = sum(npow)
npow = npow / total
npow = npow * pow * ppow * 1.e-5
else
write(vunit, *)'SCALARS Relative_Power_' // trim(adjustl(step)) &
// ' double'
Expand Down

0 comments on commit f61fd07

Please sign in to comment.