0.6.0
Loading...
Searching...
No Matches
ut_solution_tools Module Reference

Tools to play with solutions. More...

Data Types

interface  solution_function
 
interface  solution_function_2d
 

Functions/Subroutines

subroutine init_positions (positions, non_uniform)
 
subroutine init_dx_u (dx, pos)
 Init the spacing 'dx' between positions.
 
subroutine init_cv (cv, dx_u, pos)
 Init the control volume 'cv' around nodes The first and last ones are set to dx_u.
 
subroutine init_faces_positions (faces_positions, positions, cv)
 Compute the positions of the faces surrounding nodes.
 
subroutine fill_solution (field, pos, sol)
 
subroutine fill_integ_solution (field, pos, dx, integ_sol)
 
subroutine fill_mean_solution (field, pos, dx, integ_sol)
 
subroutine fill_solution_2d (field, pos_x, pos_y, sol)
 
subroutine print_solution (it, t, pos, field, ref)
 
subroutine print_solution_verbose (it, name, t, pos, field, ref)
 
subroutine print_solution_verbose_2d (it, name, t, pos, field, ref)
 
double precision function compute_l2_error (solution, approx)
 

Detailed Description

Tools to play with solutions.

Function/Subroutine Documentation

◆ compute_l2_error()

double precision function ut_solution_tools::compute_l2_error ( double precision, dimension(:), intent(in) solution,
double precision, dimension(:), intent(in) approx )

◆ fill_integ_solution()

subroutine ut_solution_tools::fill_integ_solution ( double precision, dimension(:), intent(out) field,
double precision, dimension(:), intent(in) pos,
double precision, dimension(:), intent(in) dx,
procedure(solution_function) integ_sol )

◆ fill_mean_solution()

subroutine ut_solution_tools::fill_mean_solution ( double precision, dimension(:), intent(out) field,
double precision, dimension(:), intent(in) pos,
double precision, dimension(:), intent(in) dx,
procedure(solution_function) integ_sol )

◆ fill_solution()

subroutine ut_solution_tools::fill_solution ( double precision, dimension(:), intent(out) field,
double precision, dimension(:), intent(in) pos,
procedure(solution_function) sol )

◆ fill_solution_2d()

subroutine ut_solution_tools::fill_solution_2d ( double precision, dimension(:,:), intent(out) field,
double precision, dimension(:), intent(in) pos_x,
double precision, dimension(:), intent(in) pos_y,
procedure(solution_function_2d) sol )

◆ init_cv()

subroutine ut_solution_tools::init_cv ( double precision, dimension(:), intent(out) cv,
double precision, dimension(:), intent(in) dx_u,
double precision, dimension(:), intent(in) pos )

Init the control volume 'cv' around nodes The first and last ones are set to dx_u.

◆ init_dx_u()

subroutine ut_solution_tools::init_dx_u ( double precision, dimension(:), intent(out) dx,
double precision, dimension(:), intent(in) pos )

Init the spacing 'dx' between positions.

◆ init_faces_positions()

subroutine ut_solution_tools::init_faces_positions ( double precision, dimension(:), intent(out) faces_positions,
double precision, dimension(:), intent(in) positions,
double precision, dimension(:), intent(in) cv )

Compute the positions of the faces surrounding nodes.

Parameters
[out]faces_positionsthe resulting faces positions of size NX+1
[in]positionsthe nodes' positions of size NX
[in]cvthe nodes' control volume width of size NX

◆ init_positions()

subroutine ut_solution_tools::init_positions ( double precision, dimension(:), intent(out) positions,
logical, intent(in), optional non_uniform )

◆ print_solution()

subroutine ut_solution_tools::print_solution ( integer, intent(in) it,
double precision, intent(in) t,
double precision, dimension(:), intent(in) pos,
double precision, dimension(:), intent(in) field,
double precision, dimension(:), intent(in), optional ref )

◆ print_solution_verbose()

subroutine ut_solution_tools::print_solution_verbose ( integer, intent(in) it,
character(len=*), intent(in) name,
double precision, intent(in) t,
double precision, dimension(:), intent(in) pos,
double precision, dimension(:), intent(in) field,
double precision, dimension(:), intent(in), optional ref )

◆ print_solution_verbose_2d()

subroutine ut_solution_tools::print_solution_verbose_2d ( integer, intent(in) it,
character(len=*), intent(in) name,
double precision, intent(in) t,
double precision, dimension(:,:), intent(in) pos,
double precision, dimension(:), intent(in) field,
double precision, dimension(:), intent(in), optional ref )