You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`acoustic(i)%%npulse`| Real | Number of pulse cycles |
550
550
|`acoustic(i)%%mag`| Real | Pulse magnitude |
551
551
|`acoustic(i)%%frequency`| Real | Sine/Square - Frequency of the acoustic wave (exclusive) |
@@ -576,7 +576,7 @@ Details of the transducer acoustic source model can be found in [Maeda and Colon
576
576
577
577
-`%%loc(j)` specifies the location of the acoustic source in the $j$-th coordinate direction. For planer support, the location defines midpoint of the source plane. For transducer arrays, the location defines the center of the transducer or transducer array (not the focal point; for 3D it's the tip of the spherical cap, for 2D it's the tip of the arc).
578
578
579
-
-`%%pulse` specifies the acoustic wave form. `%%pulse = 1`, `2`, and `3` correspond to sinusoidal wave, Gaussian wave, and square wave, respectively.
579
+
-`%%pulse` specifies the acoustic wave form. `%%pulse = 1`, `2`, `3`and `4` correspond to sinusoidal wave, Gaussian wave, square wave and broadband wave, respectively.
580
580
581
581
-`%%npulse` specifies the number of cycles of the acoustic wave generated. Only applies to `%%pulse = 1 and 3` (sine and square waves), and must be an integer for non-planar waves.
Copy file name to clipboardExpand all lines: src/common/m_constants.fpp
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,14 @@ module m_constants
23
23
integer, parameter:: pathlen_max =400
24
24
integer, parameter:: nnode =4 !< Number of QBMM nodes
25
25
real(kind(0d0)), parameter:: capillary_cutoff =1e-6 !< color function gradient magnitude at which to apply the surface tension fluxes
26
-
real(kind(0d0)), parameter:: acoustic_spatial_support_width =2.5d0 !< Spatial support width of acoustic source, used in s_source_spatial
26
+
real(kind(0d0)), parameter:: acoustic_spatial_support_width =20d0 !< Spatial support width of acoustic source, used in s_source_spatial
27
27
real(kind(0d0)), parameter:: dflt_vcfl_dt =100d0 !< value of vcfl_dt when viscosity is off for computing adaptive timestep size
28
28
29
+
!< Broadband acoustic source constant (reference: Tam et al. JSV 2004 )
30
+
integer, parameter:: num_broadband_freq =100 !< The number of sine wave frequencies in broadband acoustic source.
31
+
real(kind(0d0)), parameter:: broadband_freq_lowest =500d0 !< The lower sine wave frequency bound in broadband acoustic source.
32
+
real(kind(0d0)), parameter:: broadband_bandwidth =100d0 !< The bandwidth of the discretized sine wave frequencies.
33
+
real(kind(0d0)), parameter:: broadband_spectral_level_constant =20d0 !< The constant to scale the spectral level at the lower frequency bound
34
+
real(kind(0d0)), parameter:: broadband_spectral_level_growth_rate =10d0 !< The spectral level constant to correct the magnitude at each frqeuency to ensure the source is overall broadband
period_BB(k) =1d0/(broadband_freq_lowest + k*broadband_bandwidth) ! Acoustic period of the wave at each discrete frequency
183
+
sl_BB(k) = broadband_spectral_level_constant*mag(ai) + k*mag(ai)/broadband_spectral_level_growth_rate ! Spectral level at each frequency
184
+
ffre_BB(k) = dsqrt((2d0*sl_BB(k)*broadband_bandwidth))*cos((sim_time)*2.d0*pi/period_BB(k) +2d0*pi*phi_rn(k)) ! Source term corresponding to each frequencies
185
+
sum_BB = sum_BB + ffre_BB(k) ! Total source term for the broadband wave
188
186
end do
189
187
190
188
!$acc parallel loop gang vector default(present) private(myalpha, myalpha_rho)
0 commit comments