MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_data_output.fpp.f90 File Reference

Contains module m_data_output. More...

Go to the source code of this file.

Modules

module  m_data_output
 Writes solution data, run-time stability diagnostics (ICFL, VCFL, CCFL, Rc), and probe/center-of-mass files.

Functions/Subroutines

impure subroutine, public m_data_output::s_write_data_files (q_cons_vf, q_t_sf, q_prim_vf, t_step, bc_type, beta)
 Write data files. Dispatch subroutine that replaces procedure pointer.
impure subroutine, public m_data_output::s_open_run_time_information_file
 Open the run-time information file and write the stability criteria table header.
impure subroutine, public m_data_output::s_open_probe_files
 Open flow probe data files for writing.
impure subroutine, public m_data_output::s_write_run_time_information (q_prim_vf, t_step)
 Write stability criteria extrema to the run-time information file at the given time step.
impure subroutine m_data_output::s_report_icfl_violation (q_prim_vf)
 Locate the grid cell responsible for an ICFL violation on this rank and report its state plus the nearest immersed-boundary particles, to aid debugging stability failures in particle-laden high-Mach cases.
impure subroutine, public m_data_output::s_write_serial_data_files (q_cons_vf, q_t_sf, q_prim_vf, t_step, bc_type, beta)
 Write grid and conservative variable data files in serial format.
impure subroutine, public m_data_output::s_write_parallel_data_files (q_cons_vf, t_step, beta, q_t_sf)
 Write grid and conservative variable data files in parallel via MPI I/O.
subroutine m_data_output::s_write_serial_ib_data (time_step)
 Write immersed boundary marker data to a serial (per-processor) unformatted file.
subroutine m_data_output::s_write_parallel_ib_data (time_step)
 Write immersed boundary marker data in parallel using MPI I/O.
subroutine, public m_data_output::s_write_ib_data_file (time_step)
 Dispatch immersed boundary data output to the serial or parallel writer.
subroutine m_data_output::s_write_parallel_ib_state (t_step)
 Writes the IB state information out to file.
subroutine m_data_output::s_write_serial_ib_state (t_step)
 Write IB state data to a per-timestep serial (unformatted) file.
impure subroutine, public m_data_output::s_write_ib_history (t_step)
 Record every immersed body's force, torque and kinematics (D/ib_forces.dat, ib_force_wrt) and its mass and heat exchange (D/ib_heat.dat, ib_heat_wrt) for this step.
impure subroutine m_data_output::s_write_ib_record (unit, row, gid, fields)
 Write body gid's record in the given row. The format is fixed width by construction: every ES descriptor right-justifies in its field, including for negatives, three-digit exponents, NaN and Inf, so a record is always 10 + 18*size(fields) characters plus its newline. That is what lets a rank write at a computed byte offset, with no gather and no per-rank shards.
pure character(len=32) function m_data_output::f_ib_rec_fmt (nf)
 Record format for nf reals after the body id.
impure subroutine m_data_output::s_open_ib_history (unit, stem, nf)
 Open the shared history file D/<stem>.dat of nf-real records. Done once for the run.
impure subroutine, public m_data_output::s_close_ib_history
 Close the history files. Nothing is buffered, so there is nothing to flush first.
impure subroutine s_close_unit (unit)
impure subroutine, public m_data_output::s_write_ib_state_file (time_step)
 Writes IB state records to restart_data/ib_state.dat. Called on every rank.
impure subroutine m_data_output::s_write_centroid_offsets (step)
 Write each global patch's centroid_offset to restart_data/ib_offset_<step>.dat, so a restart continues about the same centre of mass instead of re-measuring it from the body voxelised at the restart attitude. Collective.
impure subroutine, public m_data_output::s_write_probe_files (t_step, q_cons_vf, accel_mag)
 Write flow probe data at the current time step.
impure subroutine, public m_data_output::s_close_run_time_information_file
 Write footer with stability criteria extrema and run-time to the information file, then close it.
impure subroutine, public m_data_output::s_close_probe_files
 Closes probe files.
impure subroutine, public m_data_output::s_initialize_data_output_module
 Initialize the data output module.
impure subroutine, public m_data_output::s_finalize_data_output_module
 Module deallocation and/or disassociation procedures.
impure subroutine, public m_data_output::s_initialize_lag_output (save_count, qtime)
 Create D/, open the Lagrangian output files, and write the initial output, from the restart point (save_count, qtime).
impure subroutine, public m_data_output::s_write_lag_particle_evol_if_due (stage)
 Append to the particle evolution file before an RK stage: at the first stage of t = 0, and at the last stage once mytime reaches the next t_save multiple.
impure subroutine, public m_data_output::s_write_lag_step_output ()
 Append the per-step Lagrangian output after the last RK stage commits the step.
impure subroutine, public m_data_output::s_write_lag_save_data (save_count)
 Write the Lagrangian restart file, and the bubble statistics, for save save_count. The caller syncs the state to the host.
impure subroutine m_data_output::s_close_lag_output ()
 Close the Lagrangian output files.
impure subroutine, public m_data_output::s_create_d_dir ()
 Create case_dir/D on rank 0 if it does not exist.
impure subroutine m_data_output::s_open_lag_evol (lag_kind, width, headers)
 Open this rank's evolution file D/lag_<lag_kind>evol<rank>.dat: on a fresh start replace it and write the column headers (first header width 14, the others width), on a restart append to it.
impure subroutine m_data_output::s_open_void_evol
 Open D/voidfraction.dat on rank 0, appending if it exists.
impure subroutine m_data_output::s_write_void_evol (qtime, alpha_f, charwidth)
 Append the cloud's average and maximum Lagrangian volume fraction 1 - alpha_f and its total volume at qtime to D/voidfraction.dat. The average is over the cells the cloud occupies only.
impure subroutine m_data_output::s_write_lag_particle_evol (qtime)
 Append each local particle's position, velocity, force, radius and fluid state at the particle to the evolution file.
impure subroutine m_data_output::s_write_lag_bubble_evol (qtime)
 Write on each time step the changes of the lagrangian bubbles.
impure subroutine m_data_output::s_open_lag_bubble_stats ()
 Open this rank's bubble statistics file D/stats_lag_bubbles_<rank>.dat, appending if it exists.
impure subroutine m_data_output::s_write_lag_bubble_stats ()
 Write the maximum and minimum radius of each bubble.
impure subroutine m_data_output::s_write_restart_lag_particles (t_step)
 Write the particles in this rank's physical domain to restart_data/lustre_lag_particles_<t_step>.dat, in the bubble column layout so post_process reads both.
impure subroutine m_data_output::s_write_restart_lag_bubbles (t_step)
 Write the bubbles in this rank's physical domain to restart_data/lag_bubbles_<t_step>.dat (parallel I/O only).
impure subroutine m_data_output::s_write_lag_restart (lag_kind, t_step, io_data, n_loc)
 Write restart_data/lag_<lag_kind>_<t_step>.dat: a header (total count, time, dt, number of ranks, per-rank counts) followed by the lag_io_vars columns of every rank's entities, which the caller packs into io_data(1:n_loc, :).
logical function m_data_output::f_probe_owned (v, lo, hi, dir)
 Half-open ownership lo < v <= hi, so a probe on a rank face is sampled once, by the rank holding the cell the serial code samples (left of the face); the first rank in a direction also owns its lower face.

Variables

type(scalar_field), dimension(:), allocatable m_data_output::q_cons_temp_ds
integer, parameter m_data_output::ib_force_nf = 19
 Per-body history files, one fixed-width text record per body per recorded step (s_write_ib_record): reals per record, and the units held open for the run (-1 until the first write).
integer, parameter m_data_output::ib_heat_nf = 5
integer m_data_output::ib_hist_file = -1
 D/ib_forces.dat.
integer m_data_output::ib_heat_file = -1
 D/ib_heat.dat.
integer, parameter m_data_output::lag_evol_id = 11
 Per-rank Lagrangian evolution files.
integer, parameter m_data_output::lag_stats_id = 12
 Per-rank bubble statistics files.
integer, parameter m_data_output::lag_void_id = 13
 D/voidfraction.dat.
real(wp), parameter m_data_output::void_stat_min = 5.e-11_wp
 Volume fraction above which a cell counts in the void statistics.
real(wp) m_data_output::next_write_time
 Time of the next particle evolution write.
ICFL, VCFL, CCFL, TCFL, and Rc stability criteria extrema over all the time-steps
real(wp) m_data_output::icfl_max
 ICFL criterion maximum.
real(wp) m_data_output::vcfl_max
 VCFL criterion maximum.
real(wp) m_data_output::ccfl_max
 CCFL criterion maximum.
real(wp) m_data_output::tcfl_max
 TCFL criterion maximum.
real(wp) m_data_output::rc_min
 Rc criterion maximum.

Detailed Description

Contains module m_data_output.

Definition in file m_data_output.fpp.f90.

Function/Subroutine Documentation

◆ s_close_unit()

impure subroutine s_close_ib_history::s_close_unit ( integer, intent(inout) unit)
private

Definition at line 1918 of file m_data_output.fpp.f90.

Here is the caller graph for this function: