Routines containing routines for logging particle data.
Routine to log MEM particle data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_particle_MEM_type), | intent(in) | :: | particle | |||
| integer, | intent(in) | :: | plogUnit | |||
| integer, | intent(in) | :: | myRank | |||
| real(kind=rk), | intent(in) | :: | t |
Routine to log DPS particle data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_particle_DPS_type), | intent(in) | :: | particle | |||
| integer, | intent(in) | :: | plogUnit | |||
| integer, | intent(in) | :: | myRank | |||
| real(kind=rk), | intent(in) | :: | t |
Routine to create a particle logunit based on particle ID
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | particleID | |||
| integer, | intent(in) | :: | myRank |
Main routine to log particle data for MEM particles
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_particle_group_type), | intent(in) | :: | particleGroup |
Particle group to log |
||
| type(mus_param_type), | intent(in) | :: | params |
Params for access to time control |
||
| real(kind=rk), | optional | :: | t |
Time to log. If not provided this will be taken from params |
Main routine to log particle data for DPS particles
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_particle_group_type), | intent(in) | :: | particleGroup |
Particle group to log |
||
| type(mus_param_type), | intent(in) | :: | params |
Params for access to time control |
Routine to log MEM particle data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_particle_MEM_type), | intent(in) | :: | particle | |||
| integer, | intent(in) | :: | plogUnit | |||
| integer, | intent(in) | :: | myRank | |||
| real(kind=rk), | intent(in) | :: | t |
Routine to log DPS particle data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_particle_DPS_type), | intent(in) | :: | particle | |||
| integer, | intent(in) | :: | plogUnit | |||
| integer, | intent(in) | :: | myRank | |||
| real(kind=rk), | intent(in) | :: | t |
Routine to initialize MEM particle log file (e.g. print header)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | particleID | |||
| character(len=*), | intent(in) | :: | fileName | |||
| integer, | intent(in) | :: | plogUnit | |||
| logical, | intent(in) | :: | fileExists |
Routine to initialize DPS particle log file (e.g. print header)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | particleID | |||
| character(len=*), | intent(in) | :: | fileName | |||
| integer, | intent(in) | :: | plogUnit | |||
| logical, | intent(in) | :: | fileExists |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | plogUnit |
openLogFile opens a file with name fileName and returns the unit attached to it. It checks whether the file exists and if not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(inout) | :: | filename | |||
| integer, | intent(out) | :: | plogUnit | |||
| logical, | intent(out), | optional | :: | isNewFile |
Debugging routine to create a list of elements along a line so that the properties of these elements can be printed
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | dir(3) | |||
| real(kind=rk), | intent(in) | :: | xstart(3) | |||
| real(kind=rk), | intent(in) | :: | length | |||
| type(mus_scheme_type), | intent(in) | :: | scheme |
scheme |
||
| type(mus_geom_type), | intent(in) | :: | geometry |
geometry |
||
| type(dyn_intarray_type), | intent(inout) | :: | elemList |
Debugging routine to dump debug tracking data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_particle_debugtracking_type), | intent(inout) | :: | tracker |
Tracker containing file name and elemList |
||
| real(kind=rk), | intent(in) | :: | t |
Current simulation time |
||
| type(mus_scheme_type), | intent(inout) | :: | scheme |
Scheme for access to fluid data |
||
| type(mus_geom_type), | intent(in) | :: | geometry |
Geometry for access to tree |
||
| type(mus_param_type), | intent(in) | :: | params |
Params |
perform_particle_checks computes the total momentum of the fluid and particle phases and logs this to a file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_scheme_type), | intent(inout) | :: | 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. |
||
| integer | :: | comm |
MPI communicator |
perform_particle_checks computes the total momentum of the fluid and particle phases and logs this to a file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mus_particle_group_type), | intent(in) | :: | particleGroup |
Particle group on this process |
||
| type(mus_scheme_type), | intent(inout) | :: | 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. |
||
| integer | :: | comm |
MPI communicator |
|||
| real(kind=rk) | :: | t |
Current (physical) time |
Routine to dump particle timing data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | proc_logUnit |
Unit to log local timing data to |