compute_fluid_momentum calculates the total momentum of the fluid for all fluid elements in the global domain. The result "totalMomentum" is returned in physical units.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_scheme_type), | intent(in) | :: | scheme |
scheme for access to auxfield |
||
| integer, | intent(in) | :: | lev |
level in the octree to compute total momentum on |
||
| type(mus_param_type), | intent(in) | :: | params |
params for access to dt, dx, etc. |
||
| real(kind=rk), | intent(out) | :: | totalMomentum(3) |
output: total momentum on ENTIRE fluid domain (across all procs) |
||
| integer | :: | comm |
MPI communicator |
|||
| integer | :: | myRank |
My MPI rank |
|||
| integer | :: | nProcs |
Number of MPI processes in communicator |