|
KTH framework for Nek5000 toolboxes; testing version
0.0.1
|
Set of post-processing routines for 3D statistics. More...
Collaboration diagram for Post-processing of 3D statistics:Files | |
| file | pstat3D.f |
| Post processing for statistics module. | |
| file | pstat3D_IO.f |
| Post processing I/O routines for statistics module. | |
Functions | |
| subroutine | pstat3d_register () |
| Register post processing statistics module. More... | |
| subroutine | pstat3d_init () |
| Initilise pstat module. More... | |
| logical function | pstat3d_is_initialised () |
| Check if module was initialised. More... | |
| subroutine | pstat3d_main |
| Main interface of pstat module. More... | |
| subroutine | pstat3d_sts_avg |
| Read in fields and average them. More... | |
| subroutine | pstat3d_nfield |
| Calculate new fileds. More... | |
| subroutine | pstat3d_interp |
| Interpolate int the set of points. More... | |
| subroutine | pstat3d_mfo |
| Write field data data to the file. More... | |
| subroutine | pstat3d_mfi_interp |
| Read interpolation points position and redistribute them. More... | |
| subroutine | pstat3d_mfo_interp |
| Geather data and write it down. More... | |
| subroutine | pstat3d_field_out (int_field, fldim, ierr) |
| Geather single field data and write it down. More... | |
Set of post-processing routines for 3D statistics.
This tools allows post-processing of 3D statistics files generated by the stats tool. In particular, it allows to do two things:
s01 to s11 to generate a single set of corresponding files.In addition, when doing the above the tool will compute a number of extra fields, including the components of the turbulent kinetic energy budget. Details below.
The following workflow is suggested to use the module:
.usr and .par and makefile_usr.inc files according to the examples herein. (See also the phill_PSTAT3D example case.) Compile the case.s01-s11 to this folder. If you are not interested in point interpolation the next 2 steps can be skipped.int_pos using the Python API in writer_int_pos.py. This file will contain the locations of the points, to which the average data will be interpolated.int_pos file to the DATA folder.int_pos file will be found. That is OK.As a result, the tool will produce a set of files with prefix a01 to a22 containing data averaged across STS_NFILE of the provided s01-s11 files, excluding those collected at times less than STS_STIME. The list of fields and their distributon acros the files is given in field_list.txt in this folder.
The interpolated point data is saved to a file called int_fld. It can be read using the functions in reader_int_fld.py Python file.
| Varaible | Type | Runtime parameter | Description |
|---|---|---|---|
| pstat_nfile | integer | _pstat3d:STS_NFILE | Number of collected s01-s11 files |
| pstat_stime | float | _pstat3d:STS_STIME | Statistics starting time |
| pstat_nstep | integer | _pstat3d:STS_NSTEP | Number of steps between averaging in collected s01-s11 files |
| subroutine pstat3d_field_out | ( | real, dimension(fldim*lhis) | int_field, |
| integer | fldim, | ||
| integer | ierr | ||
| ) |
Geather single field data and write it down.
| [in] | int_field | interpolated field |
| [in] | fldim | field dimension |
| [out] | ierr | error flag |
Definition at line 588 of file pstat3D_IO.f.
References byte_write, copy(), copyx4(), crecv2(), and csend().
Here is the call graph for this function:
Here is the caller graph for this function:| subroutine pstat3d_init |
Initilise pstat module.
Definition at line 95 of file pstat3D.f.
References icopy(), mntr_tmr_add(), mntr_warn(), and rprm_rp_get().
Here is the call graph for this function:| subroutine pstat3d_interp |
Interpolate int the set of points.
Definition at line 790 of file pstat3D.f.
References io_file_freeid(), mntr_abort(), pstat3d_mfi_interp(), and pstat3d_mfo_interp().
Here is the call graph for this function:
Here is the caller graph for this function:| logical function pstat3d_is_initialised |
| subroutine pstat3d_main |
Main interface of pstat module.
Definition at line 173 of file pstat3D.f.
References mntr_log(), mntr_tmr_add(), pstat3d_interp(), pstat3d_nfield(), and pstat3d_sts_avg().
Here is the call graph for this function:| subroutine pstat3d_mfi_interp |
Read interpolation points position and redistribute them.
Definition at line 82 of file pstat3D_IO.f.
References bcast(), blank(), byte_close, byte_open, byte_read, byte_reverse, byte_reverse8, copy(), copy4r(), crecv2(), csend(), io_file_freeid(), mntr_check_abort(), and mntr_logi().
Here is the call graph for this function:
Here is the caller graph for this function:| subroutine pstat3d_mfo |
Write field data data to the file.
Definition at line 9 of file pstat3D_IO.f.
References outpost().
Here is the call graph for this function:
Here is the caller graph for this function:| subroutine pstat3d_mfo_interp |
Geather data and write it down.
Definition at line 275 of file pstat3D_IO.f.
References byte_close, byte_open, byte_write, mntr_check_abort(), and pstat3d_field_out().
Here is the call graph for this function:
Here is the caller graph for this function:| subroutine pstat3d_nfield |
Calculate new fileds.
Definition at line 353 of file pstat3D.f.
References add2(), add3(), add4(), admcol3(), chsign(), cmult(), col3(), copy(), gradm1(), pstat3d_mfo(), rzero(), sub2(), sub3(), subcol3(), subcol4(), and vdot3().
Here is the call graph for this function:
Here is the caller graph for this function:| subroutine pstat3d_register |
Register post processing statistics module.
Definition at line 10 of file pstat3D.f.
References mntr_abort(), mntr_mod_is_name_reg(), mntr_mod_reg(), mntr_tmr_add(), mntr_tmr_is_name_reg(), mntr_tmr_reg(), mntr_warn(), rprm_rp_reg(), rprm_sec_reg(), and rprm_sec_set_act().
Here is the call graph for this function: