write_output Module

Open/close and call other modules for writing solution based on the input: type of file, either vtk or tecplot modules are called


Uses

  • module~~write_output~~UsesGraph module~write_output write_output module~utils utils module~write_output->module~utils module~write_output_tec_node write_output_tec_node module~write_output->module~write_output_tec_node module~write_output_tec write_output_tec module~write_output->module~write_output_tec module~write_output_vtk write_output_vtk module~write_output->module~write_output_vtk module~vartypes vartypes module~write_output->module~vartypes module~write_output_tec_node->module~utils module~write_output_tec_node->module~vartypes module~global_sst global_sst module~write_output_tec_node->module~global_sst module~viscosity viscosity module~write_output_tec_node->module~viscosity module~wall_dist wall_dist module~write_output_tec_node->module~wall_dist module~gradients gradients module~write_output_tec_node->module~gradients module~write_output_tec->module~utils module~write_output_tec->module~vartypes module~write_output_tec->module~global_sst module~write_output_tec->module~viscosity module~write_output_tec->module~wall_dist module~write_output_tec->module~gradients module~write_output_vtk->module~utils module~write_output_vtk->module~vartypes module~write_output_vtk->module~global_sst module~write_output_vtk->module~viscosity module~write_output_vtk->module~wall_dist module~write_output_vtk->module~gradients iso_fortran_env iso_fortran_env module~vartypes->iso_fortran_env module~global_sst->iso_fortran_env module~viscosity->module~utils module~viscosity->module~vartypes module~viscosity->module~global_sst module~viscosity->module~wall_dist module~viscosity->module~gradients module~global_kkl global_kkl module~viscosity->module~global_kkl module~copy_bc copy_bc module~viscosity->module~copy_bc module~global_sa global_sa module~viscosity->module~global_sa module~wall_dist->module~utils module~wall_dist->module~vartypes module~gradients->module~utils module~gradients->module~vartypes module~global_kkl->iso_fortran_env module~copy_bc->module~vartypes module~global_sa->iso_fortran_env

Used by

  • module~~write_output~~UsedByGraph module~write_output write_output module~dump_solution dump_solution module~dump_solution->module~write_output module~solver solver module~solver->module~dump_solution program~main main program~main->module~solver

Contents


Variables

TypeVisibility AttributesNameInitial
character(len=16), private :: data_format
character(len=16), private :: file_format

Subroutines

private subroutine setup_file(control)

Setup the file type based on the input

Arguments

Type IntentOptional AttributesName
type(controltype), intent(in) :: control

private subroutine open_file(file_handler, filename)

Open the file to write the solution

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: file_handler
character(len=*), intent(in) :: filename

private subroutine close_file(file_handler, filename)

Close the file after writing solution.

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: file_handler
character(len=*), intent(in) :: filename

public subroutine write_file(files, qp, nodes, control, scheme, dims)

Writing output in the file according to the input file type

Arguments

Type IntentOptional AttributesName
type(filetype), intent(in) :: files
real(kind=wp), intent(in), dimension(-2:dims%imx+2, -2:dims%jmx+2,-2:dims%kmx+2, 1:dims%n_var):: qp
type(nodetype), intent(in), dimension(-2:dims%imx+3, -2:dims%jmx+3,-2:dims%kmx+3):: nodes
type(controltype), intent(in) :: control
type(schemetype), intent(in) :: scheme
type(extent), intent(in) :: dims