viscosity Module

Setup, destroy, calculate molecular and turbulence viscosity


Uses

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

Used by

  • module~~viscosity~~UsedByGraph module~viscosity viscosity module~source source module~source->module~viscosity module~plusgs plusgs module~plusgs->module~viscosity module~write_output_vtk write_output_vtk module~write_output_vtk->module~viscosity module~write_output_tec write_output_tec module~write_output_tec->module~viscosity module~lusgs lusgs module~lusgs->module~viscosity module~solver solver module~solver->module~viscosity module~update update module~solver->module~update module~time time module~solver->module~time module~viscous viscous module~solver->module~viscous module~dump_solution dump_solution module~solver->module~dump_solution module~write_output_tec_node write_output_tec_node module~write_output_tec_node->module~viscosity module~update->module~viscosity module~update->module~source module~update->module~plusgs module~update->module~lusgs module~update->module~time module~update->module~viscous module~time->module~viscosity module~viscous->module~viscosity program~main main program~main->module~solver module~write_output write_output module~write_output->module~write_output_vtk module~write_output->module~write_output_tec module~write_output->module~write_output_tec_node module~dump_solution->module~write_output

Contents


Variables

TypeVisibility AttributesNameInitial
real(kind=wp), public, dimension(:, :, :), allocatable, target:: mu

Cell-center molecular viscosity

real(kind=wp), public, dimension(:, :, :), allocatable, target:: mu_t

Cell-center turbulent viscosity


Subroutines

public subroutine calculate_viscosity(qp, scheme, flow, bc, dims)

Calculate molecular and turbulent viscosity

Arguments

Type IntentOptional AttributesName
real(kind=wp), intent(in), dimension(-2:dims%imx+2, -2:dims%jmx+2, -2:dims%kmx+2, 1:dims%n_var):: qp

Store primitive variable at cell center

type(schemetype), intent(in) :: scheme

finite-volume Schemes

type(flowtype), intent(in) :: flow

Information about fluid flow: freestream-speed, ref-viscosity,etc.

type(boundarytype), intent(in) :: bc

boundary conditions and fixed values

type(extent), intent(in) :: dims

Extent of the domain:imx,jmx,kmx

public subroutine setup_viscosity(scheme, flow, dims)

Allocate and pointer for molecular and turbulent viscosity

Arguments

Type IntentOptional AttributesName
type(schemetype), intent(in) :: scheme

finite-volume Schemes

type(flowtype), intent(in) :: flow

Information about fluid flow: freestream-speed, ref-viscosity,etc.

type(extent), intent(in) :: dims

Extent of the domain:imx,jmx,kmx