Skip to content

Commit e0c576c

Browse files
committed
add alpha_rho_e_wrt and fix junk code failure
1 parent f7dbb7d commit e0c576c

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

src/post_process/m_global_parameters.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ module m_global_parameters
240240
integer :: flux_lim
241241
logical, dimension(3) :: flux_wrt
242242
logical :: E_wrt
243+
logical, dimension(num_fluids_max) :: alpha_rho_e_wrt
243244
logical :: fft_wrt
244245
logical :: pres_wrt
245246
logical, dimension(num_fluids_max) :: alpha_wrt
@@ -432,6 +433,7 @@ contains
432433
down_sample = .false.
433434

434435
alpha_rho_wrt = .false.
436+
alpha_rho_e_wrt = .false.
435437
rho_wrt = .false.
436438
mom_wrt = .false.
437439
vel_wrt = .false.

src/post_process/m_mpi_proxy.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ contains
124124
call MPI_BCAST(mom_wrt(1), 3, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
125125
call MPI_BCAST(vel_wrt(1), 3, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
126126
call MPI_BCAST(alpha_rho_wrt(1), num_fluids_max, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
127+
call MPI_BCAST(alpha_rho_e_wrt(1), num_fluids_max, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
127128
call MPI_BCAST(alpha_wrt(1), num_fluids_max, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
128129
129130
do i = 1, num_fluids_max

src/post_process/m_start_up.fpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ contains
118118
lag_id_wrt, lag_pos_wrt, lag_pos_prev_wrt, lag_vel_wrt, &
119119
lag_rad_wrt, lag_rvel_wrt, lag_r0_wrt, lag_rmax_wrt, &
120120
lag_rmin_wrt, lag_dphidt_wrt, lag_pres_wrt, lag_mv_wrt, &
121-
lag_mg_wrt, lag_betaT_wrt, lag_betaC_wrt
121+
lag_mg_wrt, lag_betaT_wrt, lag_betaC_wrt, &
122+
alpha_rho_e_wrt
122123

123124
! Inquiring the status of the post_process.inp file
124125
file_loc = 'post_process.inp'
@@ -419,15 +420,16 @@ contains
419420

420421
end if
421422

422-
! Adding the individual energies to the formatted database file --------
423-
if (model_eqns == 3 .and. cons_vars_wrt) then
423+
! Adding the individual energies to the formatted database file
424+
if (model_eqns == 3) then
424425
do i = 1, num_fluids
426+
if (alpha_rho_e_wrt(i) .or. cons_vars_wrt) then
427+
q_sf = q_cons_vf(i + intxb - 1)%sf(x_beg:x_end, y_beg:y_end, z_beg:z_end)
428+
write (varname, '(A,I0)') 'alpha_rho_e', i
429+
call s_write_variable_to_formatted_database_file(varname, t_step)
425430

426-
q_sf = q_cons_vf(i + intxb - 1)%sf(x_beg:x_end, y_beg:y_end, z_beg:z_end)
427-
write (varname, '(A,I0)') 'alpha_rho_e', i
428-
call s_write_variable_to_formatted_database_file(varname, t_step)
429-
430-
varname(:) = ' '
431+
varname(:) = ' '
432+
end if
431433
end do
432434
end if
433435

toolchain/mfc/run/case_dicts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,9 @@ def analytic(self):
528528
POST_PROCESS['chem_wrt_T'] = ParamType.LOG
529529

530530
for fl_id in range(1,10+1):
531-
for append, ty in [("schlieren_alpha", ParamType.REAL),
532-
("alpha_rho_wrt", ParamType.LOG),
533-
("alpha_wrt", ParamType.LOG), ("kappa_wrt", ParamType.LOG)]:
531+
for append, ty in [("schlieren_alpha", ParamType.REAL), ("alpha_rho_wrt", ParamType.LOG),
532+
("alpha_wrt", ParamType.LOG), ("kappa_wrt", ParamType.LOG),
533+
("alpha_rho_e_wrt", ParamType.LOG)]:
534534
POST_PROCESS[f'{append}({fl_id})'] = ty
535535

536536
for real_attr in ["gamma", "pi_inf", "ss", "pv", "gamma_v", "M_v", "mu_v", "k_v", "cp_v",

0 commit comments

Comments
 (0)