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)
 Accumulate the finite-difference divergence of a vector field onto a scalar field.
subroutine s_compute_finite_difference_coefficients (q, s_cc, fd_coeff_s, local_buff_size, fd_number_in, fd_order_in, offset_s)
 Compute the centered finite-difference coefficients for first-order spatial derivatives in the s-coordinate direction (x, y, or z). Supports up to 4th order accuracy.

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 )

Accumulate the finite-difference divergence of a vector field onto a scalar field.

Definition at line 326 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 )

Compute the centered finite-difference coefficients for first-order spatial derivatives in the s-coordinate direction (x, y, or z). Supports up to 4th order accuracy.

Parameters
fd_coeff_sFinite-diff. coefficients in the s-coordinate direction
fd_number_inFinite-difference number
fd_order_inFinite-difference order of accuracy
offset_sOptional offset bounds in the s-coordinate direction

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