write_energy_reconciliation_vtu_arrays Subroutine

private subroutine write_energy_reconciliation_vtu_arrays(unit_id, mesh, flow, energy, transport)

Append local rho*h density-reconciliation fields to VTU CellData.

These fields are spatial diagnostics for the global energy-density reconciliation. They are not global closure metrics; those remain in diagnostics/enthalpy_energy_budget.csv.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: unit_id
type(mesh_t), intent(in) :: mesh
type(flow_mpi_t), intent(in) :: flow
type(energy_fields_t), intent(in) :: energy
type(transport_properties_t), intent(in) :: transport

Source Code

   subroutine write_energy_reconciliation_vtu_arrays(unit_id, mesh, flow, energy, transport)
      integer, intent(in) :: unit_id
      type(mesh_t), intent(in) :: mesh
      type(flow_mpi_t), intent(in) :: flow
      type(energy_fields_t), intent(in) :: energy
      type(transport_properties_t), intent(in) :: transport

      call write_energy_reconciliation_scalar(unit_id, mesh, flow, energy, transport, &
                                              'rho_h_output_state')
      call write_energy_reconciliation_scalar(unit_id, mesh, flow, energy, transport, &
                                              'rho_h_operator_consistent')
      call write_energy_reconciliation_scalar(unit_id, mesh, flow, energy, transport, &
                                              'rho_h_density_reconciliation')
      call write_energy_reconciliation_scalar(unit_id, mesh, flow, energy, transport, &
                                              'relative_rho_h_density_reconciliation')

   end subroutine write_energy_reconciliation_vtu_arrays