MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_finite_differences Module Reference

Finite difference operators for computing divergence of velocity fields. More...

Functions/Subroutines

subroutine s_compute_fd_divergence (div, fields, ix_s, iy_s, iz_s)
subroutine s_compute_finite_difference_coefficients (q, s_cc, fd_coeff_s, local_buff_size, fd_number_in, fd_order_in, offset_s)
 The purpose of this subroutine is to compute the finite- difference coefficients for the centered schemes utilized in computations of first order spatial derivatives in the s-coordinate direction. The s-coordinate direction refers to the x-, y- or z-coordinate direction, depending on the subroutine's inputs. Note that coefficients of up to 4th order accuracy are available.

Detailed Description

Finite difference operators for computing divergence of velocity fields.

Function/Subroutine Documentation

◆ s_compute_fd_divergence()

subroutine m_finite_differences::s_compute_fd_divergence ( type(scalar_field), intent(inout) div,
type(scalar_field), dimension(1:3), intent(in) fields,
type(int_bounds_info), intent(in) ix_s,
type(int_bounds_info), intent(in) iy_s,
type(int_bounds_info), intent(in) iz_s )

Definition at line 302 of file m_finite_differences.fpp.f90.

◆ s_compute_finite_difference_coefficients()

subroutine m_finite_differences::s_compute_finite_difference_coefficients ( integer, intent(in) q,
real(wp), dimension(-local_buff_size:q + local_buff_size), intent(in) s_cc,
real(wp), dimension(:, :), intent(inout), allocatable fd_coeff_s,
integer, intent(in) local_buff_size,
integer, intent(in) fd_number_in,
integer, intent(in) fd_order_in,
type(int_bounds_info), intent(in), optional offset_s )

The purpose of this subroutine is to compute the finite- difference coefficients for the centered schemes utilized in computations of first order spatial derivatives in the s-coordinate direction. The s-coordinate direction refers to the x-, y- or z-coordinate direction, depending on the subroutine's inputs. Note that coefficients of up to 4th order accuracy are available.

Parameters
qNumber of cells in the s-coordinate direction
s_ccLocations of the cell-centers in the s-coordinate direction
fd_coeff_sFinite-diff. coefficients in the s-coordinate direction
local_buff_sizeSize of the local buffer
fd_number_inFinite-difference number
fd_order_inFinite-difference order of accuracy
offset_sOptional offset bounds in the s-coordinate direction

Definition at line 406 of file m_finite_differences.fpp.f90.