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

One-way acoustic source injection, Maeda and Colonius JCP (2017). More...

Functions/Subroutines

impure subroutine, public s_initialize_acoustic_src
 Initialize the acoustic source module.
impure subroutine, public s_acoustic_src_calculations (q_cons_vf, q_prim_vf, rhs_vf)
 Compute mass, momentum, and energy acoustic source terms and add to the RHS.
elemental subroutine s_source_temporal (sim_time, c, ai, term_index, frequency_local, gauss_sigma_time_local, source, sum_bb)
 Compute the temporally varying amplitude of the pulse.
impure subroutine, public s_precalculate_acoustic_spatial_sources
 Pre-compute non-zero spatial source weights before time-stepping.
subroutine s_source_spatial (j, k, l, loc, ai, source, angle, xyz_to_r_ratios)
 Compute the spatial support of the acoustic source.
subroutine s_source_spatial_planar (ai, sig, r, source)
 Compute the spatial support for planar acoustic sources in 1D, 2D, and 3D.
subroutine s_source_spatial_transducer (ai, sig, r, source, angle, xyz_to_r_ratios)
 Compute the spatial support for a single transducer in 2D, 2D axisymmetric, and 3D.
subroutine s_source_spatial_transducer_array (ai, sig, r, source, angle, xyz_to_r_ratios)
 Compute the spatial support for multiple transducers in 2D, 2D axisymmetric, and 3D.
elemental real(wp) function f_frequency_local (freq_conv_flag, ai, c)
 Convert wavelength to frequency.
real(wp) function f_gauss_sigma_time_local (gauss_conv_flag, ai, c)
 Convert Gaussian sigma from distance to time.

Variables

integer, dimension(:,:), allocatable, public acoustic_supp_lo
 Global (level-0 index space) bounding box of each source's spatial support, reduced over ranks. The AMR dynamic regrid keeps fine blocks clear of these (the source acts on the coarse grid only). Allocated/filled only when amr with acoustic_source.
integer, dimension(:,:), allocatable, public acoustic_supp_hi
 (1:3, 1:num_source)
integer, dimension(:), allocatable pulse
integer, dimension(:), allocatable support
logical, dimension(:), allocatable dipole
real(wp), dimension(:,:), allocatable, target loc_acoustic
real(wp), dimension(:), allocatable mag
real(wp), dimension(:), allocatable length
real(wp), dimension(:), allocatable height
real(wp), dimension(:), allocatable wavelength
real(wp), dimension(:), allocatable frequency
real(wp), dimension(:), allocatable gauss_sigma_dist
real(wp), dimension(:), allocatable gauss_sigma_time
real(wp), dimension(:), allocatable npulse
real(wp), dimension(:), allocatable dir
real(wp), dimension(:), allocatable delay
real(wp), dimension(:), allocatable foc_length
real(wp), dimension(:), allocatable aperture
real(wp), dimension(:), allocatable element_spacing_angle
real(wp), dimension(:), allocatable element_polygon_ratio
real(wp), dimension(:), allocatable rotate_angle
real(wp), dimension(:), allocatable bb_bandwidth
real(wp), dimension(:), allocatable bb_lowest_freq
integer, dimension(:), allocatable num_elements
integer, dimension(:), allocatable element_on
integer, dimension(:), allocatable bb_num_freq
integer, dimension(:), allocatable source_spatials_num_points
 Number of non-zero source grid points for each source.
type(source_spatial_type), dimension(:), allocatable source_spatials
 Data of non-zero source grid points for each source.
Acoustic source terms
real(wp), dimension(:,:,:), allocatable mass_src
real(wp), dimension(:,:,:), allocatable e_src
real(wp), dimension(:,:,:,:), allocatable mom_src

Detailed Description

One-way acoustic source injection, Maeda and Colonius JCP (2017).

Function/Subroutine Documentation

◆ f_frequency_local()

elemental real(wp) function m_acoustic_src::f_frequency_local ( logical, intent(in) freq_conv_flag,
integer, intent(in) ai,
real(wp), intent(in) c )

Convert wavelength to frequency.

Definition at line 1882 of file m_acoustic_src.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_gauss_sigma_time_local()

real(wp) function m_acoustic_src::f_gauss_sigma_time_local ( logical, intent(in) gauss_conv_flag,
integer, intent(in) ai,
real(wp), intent(in) c )

Convert Gaussian sigma from distance to time.

Definition at line 1914 of file m_acoustic_src.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_acoustic_src_calculations()

impure subroutine, public m_acoustic_src::s_acoustic_src_calculations ( type(scalar_field), dimension(sys_size), intent(inout) q_cons_vf,
type(scalar_field), dimension(sys_size), intent(inout) q_prim_vf,
type(scalar_field), dimension(sys_size), intent(inout) rhs_vf )

Compute mass, momentum, and energy acoustic source terms and add to the RHS.

Parameters
[in,out]q_cons_vfConservative variables
[in,out]q_prim_vfPrimitive variables

Definition at line 811 of file m_acoustic_src.fpp.f90.

Here is the call graph for this function:

◆ s_initialize_acoustic_src()

impure subroutine, public m_acoustic_src::s_initialize_acoustic_src

Initialize the acoustic source module.

Definition at line 563 of file m_acoustic_src.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_precalculate_acoustic_spatial_sources()

impure subroutine, public m_acoustic_src::s_precalculate_acoustic_spatial_sources

Pre-compute non-zero spatial source weights before time-stepping.

Definition at line 1228 of file m_acoustic_src.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_source_spatial()

subroutine m_acoustic_src::s_source_spatial ( integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l,
real(wp), dimension(3), intent(in) loc,
integer, intent(in) ai,
real(wp), intent(out) source,
real(wp), intent(out) angle,
real(wp), dimension(3), intent(out) xyz_to_r_ratios )

Compute the spatial support of the acoustic source.

Definition at line 1708 of file m_acoustic_src.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_source_spatial_planar()

subroutine m_acoustic_src::s_source_spatial_planar ( integer, intent(in) ai,
real(wp), intent(in) sig,
real(wp), dimension(3), intent(in) r,
real(wp), intent(out) source )

Compute the spatial support for planar acoustic sources in 1D, 2D, and 3D.

Definition at line 1742 of file m_acoustic_src.fpp.f90.

Here is the caller graph for this function:

◆ s_source_spatial_transducer()

subroutine m_acoustic_src::s_source_spatial_transducer ( integer, intent(in) ai,
real(wp), intent(in) sig,
real(wp), dimension(3), intent(in) r,
real(wp), intent(out) source,
real(wp), intent(out) angle,
real(wp), dimension(3), intent(out) xyz_to_r_ratios )

Compute the spatial support for a single transducer in 2D, 2D axisymmetric, and 3D.

Definition at line 1768 of file m_acoustic_src.fpp.f90.

Here is the caller graph for this function:

◆ s_source_spatial_transducer_array()

subroutine m_acoustic_src::s_source_spatial_transducer_array ( integer, intent(in) ai,
real(wp), intent(in) sig,
real(wp), dimension(3), intent(in) r,
real(wp), intent(out) source,
real(wp), intent(out) angle,
real(wp), dimension(3), intent(out) xyz_to_r_ratios )

Compute the spatial support for multiple transducers in 2D, 2D axisymmetric, and 3D.

Definition at line 1806 of file m_acoustic_src.fpp.f90.

Here is the caller graph for this function:

◆ s_source_temporal()

elemental subroutine m_acoustic_src::s_source_temporal ( real(wp), intent(in) sim_time,
real(wp), intent(in) c,
integer, intent(in) ai,
integer, intent(in) term_index,
real(wp), intent(in) frequency_local,
real(wp), intent(in) gauss_sigma_time_local,
real(wp), intent(out) source,
real(wp), intent(in) sum_bb )

Compute the temporally varying amplitude of the pulse.

Definition at line 1151 of file m_acoustic_src.fpp.f90.

Here is the caller graph for this function:

Variable Documentation

◆ acoustic_supp_hi

integer, dimension(:,:), allocatable, public m_acoustic_src::acoustic_supp_hi

(1:3, 1:num_source)

Definition at line 388 of file m_acoustic_src.fpp.f90.

◆ acoustic_supp_lo

integer, dimension(:,:), allocatable, public m_acoustic_src::acoustic_supp_lo

Global (level-0 index space) bounding box of each source's spatial support, reduced over ranks. The AMR dynamic regrid keeps fine blocks clear of these (the source acts on the coarse grid only). Allocated/filled only when amr with acoustic_source.

Definition at line 388 of file m_acoustic_src.fpp.f90.

◆ aperture

real(wp), dimension(:), allocatable m_acoustic_src::aperture

Definition at line 458 of file m_acoustic_src.fpp.f90.

◆ bb_bandwidth

real(wp), dimension(:), allocatable m_acoustic_src::bb_bandwidth

Definition at line 486 of file m_acoustic_src.fpp.f90.

◆ bb_lowest_freq

real(wp), dimension(:), allocatable m_acoustic_src::bb_lowest_freq

Definition at line 486 of file m_acoustic_src.fpp.f90.

◆ bb_num_freq

integer, dimension(:), allocatable m_acoustic_src::bb_num_freq

Definition at line 500 of file m_acoustic_src.fpp.f90.

◆ delay

real(wp), dimension(:), allocatable m_acoustic_src::delay

Definition at line 432 of file m_acoustic_src.fpp.f90.

◆ dipole

logical, dimension(:), allocatable m_acoustic_src::dipole

Definition at line 403 of file m_acoustic_src.fpp.f90.

◆ dir

real(wp), dimension(:), allocatable m_acoustic_src::dir

Definition at line 432 of file m_acoustic_src.fpp.f90.

◆ e_src

real(wp), dimension(:,:,:), allocatable m_acoustic_src::e_src

Definition at line 516 of file m_acoustic_src.fpp.f90.

◆ element_on

integer, dimension(:), allocatable m_acoustic_src::element_on

Definition at line 500 of file m_acoustic_src.fpp.f90.

◆ element_polygon_ratio

real(wp), dimension(:), allocatable m_acoustic_src::element_polygon_ratio

Definition at line 472 of file m_acoustic_src.fpp.f90.

◆ element_spacing_angle

real(wp), dimension(:), allocatable m_acoustic_src::element_spacing_angle

Definition at line 472 of file m_acoustic_src.fpp.f90.

◆ foc_length

real(wp), dimension(:), allocatable m_acoustic_src::foc_length

Definition at line 458 of file m_acoustic_src.fpp.f90.

◆ frequency

real(wp), dimension(:), allocatable m_acoustic_src::frequency

Definition at line 431 of file m_acoustic_src.fpp.f90.

◆ gauss_sigma_dist

real(wp), dimension(:), allocatable m_acoustic_src::gauss_sigma_dist

Definition at line 432 of file m_acoustic_src.fpp.f90.

◆ gauss_sigma_time

real(wp), dimension(:), allocatable m_acoustic_src::gauss_sigma_time

Definition at line 432 of file m_acoustic_src.fpp.f90.

◆ height

real(wp), dimension(:), allocatable m_acoustic_src::height

Definition at line 431 of file m_acoustic_src.fpp.f90.

◆ length

real(wp), dimension(:), allocatable m_acoustic_src::length

Definition at line 431 of file m_acoustic_src.fpp.f90.

◆ loc_acoustic

real(wp), dimension(:,:), allocatable, target m_acoustic_src::loc_acoustic

Definition at line 417 of file m_acoustic_src.fpp.f90.

◆ mag

real(wp), dimension(:), allocatable m_acoustic_src::mag

Definition at line 431 of file m_acoustic_src.fpp.f90.

◆ mass_src

real(wp), dimension(:,:,:), allocatable m_acoustic_src::mass_src

Definition at line 516 of file m_acoustic_src.fpp.f90.

◆ mom_src

real(wp), dimension(:,:,:,:), allocatable m_acoustic_src::mom_src

Definition at line 517 of file m_acoustic_src.fpp.f90.

◆ npulse

real(wp), dimension(:), allocatable m_acoustic_src::npulse

Definition at line 432 of file m_acoustic_src.fpp.f90.

◆ num_elements

integer, dimension(:), allocatable m_acoustic_src::num_elements

Definition at line 500 of file m_acoustic_src.fpp.f90.

◆ pulse

integer, dimension(:), allocatable m_acoustic_src::pulse

Definition at line 389 of file m_acoustic_src.fpp.f90.

◆ rotate_angle

real(wp), dimension(:), allocatable m_acoustic_src::rotate_angle

Definition at line 472 of file m_acoustic_src.fpp.f90.

◆ source_spatials

type(source_spatial_type), dimension(:), allocatable m_acoustic_src::source_spatials

Data of non-zero source grid points for each source.

Definition at line 546 of file m_acoustic_src.fpp.f90.

◆ source_spatials_num_points

integer, dimension(:), allocatable m_acoustic_src::source_spatials_num_points

Number of non-zero source grid points for each source.

Definition at line 532 of file m_acoustic_src.fpp.f90.

◆ support

integer, dimension(:), allocatable m_acoustic_src::support

Definition at line 389 of file m_acoustic_src.fpp.f90.

◆ wavelength

real(wp), dimension(:), allocatable m_acoustic_src::wavelength

Definition at line 431 of file m_acoustic_src.fpp.f90.