Skip to content

Commit

Permalink
Writing statistical averages for postprocessing in .vtu files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-m committed Aug 17, 2023
1 parent 65c46a8 commit 8dc9dda
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/io/writefiles.f90
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,19 @@ subroutine writefiles
! call vtu_write_XML_scalar_field_node ( output_unit, 'mueff', uN )
! !#--

!#--
! Write ensemble averaged velocity components values in nodes.
! Interpolate to nodes using interpolation weights generated at init stage.
if(ltransient .and. lturb) then

call interpolate_to_nodes(u_aver, uN)
call interpolate_to_nodes(v_aver, vN)
call interpolate_to_nodes(w_aver, wN)
call vtu_write_XML_vector_field_node( output_unit, 'Uavg', uN, vN, wN )

endif
! !#--

deallocate( uN,vN, wN )

do i=1,2! Lines where we close PointData tag and open CellData
Expand Down

0 comments on commit 8dc9dda

Please sign in to comment.