Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User statistics #1519

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

User statistics #1519

wants to merge 4 commits into from

Conversation

MartinKarp
Copy link
Collaborator

@MartinKarp MartinKarp commented Sep 27, 2024

User defined statistics.

Picks a field from the field_registry and computes the temporal average. Going to look through for documentation and such, but most things are in place.

The ordering of the output fields is kind of all over the place. Maybe best if everything would be output into the scalars?

Finishes the CTR porting adventure, interpolation next.

Based on #1494

@MartinKarp MartinKarp mentioned this pull request Sep 27, 2024
8 tasks
@njansson njansson marked this pull request as ready for review December 3, 2024 14:05
@njansson njansson added the enhancement New feature or request label Dec 3, 2024
Comment on lines +167 to +178
!!Switch around fields to get correct orders
!!Put average direction mean_vel in scalar45
!do i = 1, this%map_2d%n_2d
! u = output_2d%v%x(i)
! v = output_2d%w%x(i)
! w = output_2d%p%x(i)
! p = output_2d%u%x(i)
! output_2d%p%x(i) = p
! output_2d%u%x(i) = u
! output_2d%v%x(i) = v
! output_2d%w%x(i) = w
!end do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a bit of cleanup is in order?

Suggested change
!!Switch around fields to get correct orders
!!Put average direction mean_vel in scalar45
!do i = 1, this%map_2d%n_2d
! u = output_2d%v%x(i)
! v = output_2d%w%x(i)
! w = output_2d%p%x(i)
! p = output_2d%u%x(i)
! output_2d%p%x(i) = p
! output_2d%u%x(i) = u
! output_2d%v%x(i) = v
! output_2d%w%x(i) = w
!end do

@timofeymukha
Copy link
Collaborator

Don't forget the documentation :-).


end subroutine user_stats_free

!> Compute the vorticity field.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!> Compute the vorticity field.
!> Update the statistics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants