CSSP Diffraction Simulation

CSSP Diffraction Simulator

Version 3.3

Shareware software tool for generating diffraction patterns for ultrasonic probes.

By: Philippe Rubbers

June 2004

TABLE OF CONTENTS

1Introduction:

2Software capabilities:

3Quick INSTRUCTIONS ON using the software

4APPLICATION layout

4.1Dimension Settings

4.2Setup tab

4.3Diffraction pattern

4.4Main control

4.5Display settings

5File format

6Mathematical techniques and assumptions.

6.1Geometric equations

6.2diffraction Equations: solid – solid (thin liquid layer).

6.3diffraction Equations: Liquid – solid.

6.4diffraction Equations: solid - Liquid.

6.5Diffraction and attenuation.

6.6Basic flow chart of algorithm:

7Software limitations:

8Changes and Bugs fixed (since version 3)

9References

10Acknowledgements:

1 Introduction:

A number of excellent ultrasonic simulation tools currently exist, in the form of commercial applications or development toolkits. This application is very specific in nature, and only calculates diffraction patterns for various simple configurations. In addition to the features available in other packages, this application can display both the amplitude and the phase of a diffraction pattern.

Once diffraction patterns have been calculated using CSSP_Diff_Sim, it is possible to display the propagation of a wave front into the material under test by using CSSP_Pulse_Sim. These shareware products are a means of demonstrating the capabilities of CSSP (Complex plane Split Spectrum Processing) for improving signal to noise ratios.

2 Software capabilities:

The software generates the diffraction pattern for selected probe, material and viewing cross section settings. Diffraction patters are calculated for a range of frequencies, and the user can select the currently displayed diffraction pattern frequency. Calculated diffraction patterns can be exported and imported using the File menu. For ease of use, default settings are included, and by pressing the ‘Re-Process’ button, default diffraction patterns are calculated. The user can view either diffraction amplitude or diffraction phase.

3 Quick INSTRUCTIONS ON using the software

1) Select the material (or material properties) properties of the block being tested. Three properties are required: Long wave velocity (cl), Transverse wave velocity (ct), and relative density

2) Select the material of the shoe being used. If no shoe is used, set the material to be the same as the block being tested.

3) Select the probe parameters, such as crystal size, and the number of elements used to simulate the crystal. Note that as the number of elements is increased, the accuracy of the simulation will increase, but at a high cost to both speed and memory requirements.

4) Select the cross section viewing area, including depth and width of the required pattern.

5) Select the viewing parameters, such as selection of Longitudinal or Transverse wave.

6) Set the maximum probe frequency (20dB drop off preferred).

7) Press the Re-Process button and wait while the diffraction patterns are calculated.

8) Once calculated, the diffraction patterns for the various frequencies can be viewed by selecting the display frequency.

If required, the data can now be exported to disk using the file menu (top left of screen).

4 APPLICATION layout

The application display has five main components:

  • Dimension settings
  • Main control
  • Diffraction pattern
  • Setup tab
  • Display settings

Figure 1: Display layout

4.1 Dimension Settings

The user can set the following basic dimensions in the ‘Dimension Layout’ section:

Depth:Maximum depth of the calculated diffraction pattern

Width1:The width of the diffraction pattern before the probe exit point.

Width2:The width of the diffraction pattern after the probe exit point.
Note that for Phased array probes, the nominal exit point determines the exit point

Angle: This is the probe angle as specified by the manufacturer (or nominal probe angle for Phased Array probes)

Probe length: This is displayed here for convenience, however it must be changed in the ‘Settings tab’

Height: Height of centre of probe. Depending on the angles etc, this value may be automatically corrected if it results in a portion of the probe being inside the block.

4.2 Setup tab

The setup tab controls all the finer parameters and is divided into four tabs:

4.2.1 Material parameters:


Sets the material properties of the block, as well as the probe shoe.

Figure 2: Setup tab: Material parameters

Default materials can be selected from the drop down lists. User defined materials can also be created by selecting the ‘user defined shoe’ and/or ‘user defined block’.

The available settings include:

cl:Velocity of longitudinal waves in the material in m/s

ct:Velocity of transverse waves in the material in m/s (zero for most liquids)

g:Material density in kg/m3

attn:Attenuation of the material in dB/m

The attenuation is not required for calculating the diffraction patterns. No attenuation is used unless the check boxes are crossed. The attenuation is assumed to be proportional to frequency squared where it is defined for 1MHz. Note that the attenuation is approximate, and is based on the distance from the centre of the probe and beam entry point. Errors will be evident at very high values of attenuation, and for very large probes.

These settings are required to determine the coefficients for mode conversions. Mode conversion equations from Krautkramer & Krautkramer (German 5th Ed.) were used for this software.

The material velocity for which the diffraction pattern will be generated is also displayed in this tab.

4.2.2 Probe parameters:

The diffraction patterns are generated using Huygens principal, and are therefore simulated by an array of point sources.


Figure 3: Setup tab: Probe parameters, with Display settings.

The location of these point sources can be selected to model one of three types of probes:

  • Single crystal rectangular
  • Single crystal circular
  • Rectangular Phased Array probe.

In this tab, the user must also specify the probe’s designed wave mode. For example, if you are using a 60degree Transverse wave probe, specify transverse in this tab. Note that it is assumed that the probe is made of a crystal which creates L waves (standard crystal).

The use must also select the highest frequency that needs to be evaluated. This should be approximately the –20dB point of the probe. This frequency defines the display resolution.

For each of these probe types, a number of settings are available as listed below:

Rectangular:

Sources: The number of point sources. The more sources, the better the simulation.

Length: Crystal length in the major axis as shown in the ‘Dimension layout’

Width: Crystal width in the minor axis, or into the screen in the ‘Dimension layout’

Circular:

Sources:The number of point sources. The more sources, the better the simulation.

Diameter: Crystal diameter, which will be displayed as length in the ‘Dimension layout’.

Phase Array:

Only rectangular Phased Array probes can be simulated at this stage, with all elements active, and the point sources distributed randomly in the element area.

Sources: The number of point sources. The more sources, the better the simulation. Note that the actual number of sources may be changed automatically to ensure that each element in the Phased Array probe has an equal number of elements.

Length: Crystal length in the major axis as shown in the ‘Dimension layout’

Width: Crystal width in the minor axis, or into the screen in the ‘Dimension layout’

Elements: The number of elements in the Phased Array probe.

Pitch ratio: The ratio between the width of the elements and the distance between adjacent elements. Since elements cannot overlap, this value ranges between 0.01 and 1.

Focus depth: The depth for which the Phased Array delay laws are set.

Focus angle: The angle for with the Phased Array delay laws is set. Note that this is the final angle, with the shoe included. This may range from –89 degrees to 89 degrees. For a sector scan, an array of diffraction patterns will be required, one for each angle.

When any of the settings are changed, the source locations will be changed in the ‘Sources’ display.


Figure 4: Setup tab: Probe parameters for Phased array probes, with Display settings.

4.2.3 Display parameters

The display parameters refer to the diffraction display as well as additional settings for the calculations:


Figure 5:Setup tab: Display parameters

Diffraction type: This is not the same as the probe wave mode (see ‘Probe parameter settings’), but refer to the display mode. For example, a 60-degree Long wave probe also generated transverse wave components. If the transverse wave diffraction patterns are required, the diffraction type must be set to Transverse.

PRF: This defines the maximum propagation distance. For most users, the default settings will be ideal. For advanced users, using CSSP_Pulse_Sim and combining transverse and longitudinal waves on a single display, the PRF can be set manually (usually such that the propagation distance for transverse waves is larger than the display size).

4.2.4 Advanced

Level: Basic or Advanced.

Do not select the advanced tab unless you have already used the software extensively, since most settings are counter intuitive.

An ‘available memory’ indicator has been included in this tab. This is the available RAM as when the program was launched. If a simulation requires more than the available RAM, disk swapping will be required, reducing performance by a factor of 100.

In Advanced mode, additional options become available:

Modification of PRF (Display parameters tab)

Modification of probe apodisation.

Change of Z axis (slice of material at different locations in the Z plane)

Change of display units (Pressure, Displacement and Intensity, with absolute values as well).


Figure 6: Setup tab: Advanced

Apodisation

The apodisation options of a probe depend on the probe type.

For a rectangular probe, apodisation of the length and width is possible.

For a circular probe, apodisation refers to the diameter of the probe.

For Phased array probes, only width apodisation is possible.

Apodisation can be changed by dragging the yellow or red cursors on the apodisation display. Note that the display will be normalized before it is implemented. A rough color guide is used in the sources display to show the effect of the apodisation.

Display units.

All diffraction patterns usually refer to pressure ratios (Amplitude). However it is sometimes desirable to view the displacement or Intensity of the diffraction pattern. These can be displayed as ratios, or in absolute values.

Ratio displays refer the amplitude to the amplitude at 1mm from a point source. Note that strictly speaking this point source doesn’t (a fact made obvious by the use of multiple point sources when representing the probe).

Absolute displays refer to the pressure, displacement or intensity when a crystal is capable of generating 1Watt of power. i.e. 1Watt of power at the current display frequency, assuming continuous excitation. This is equivalent to a flux of 1/4pi Watts/mm^2 at a distance of 1mm from a point source. Note once again that the probe is composed of multiple point sources.

When displaying the absolute value, the amplitude at 1mm from each point source is also displayed. The total amplitude would therefore be (number of sources*amplitude) for a singular point source.

Due to the required distribution of elements, the selected number of elements may not always be possible. The actual number of source units used (as per the distribution image) is therefore also displayed in the advanced settings.

4.3 Diffraction pattern

The results of the simulation are displayed in this surface plot. Depending on the main control settings, either the amplitude or the phase can be displayed. When displaying amplitude, the color scale (amplitude) can be changed to show Pressure, Displacement or Intensity: see Advanced settings in section 4.2.4.


Figure 7: Diffraction pattern: Amplitude and phase

When displaying amplitude, the color scale can be changed from linear to logarithmic scale as required by clicking on the ‘Log’ check box. Right clicking on the color scale and selecting the required options can add markers and change display colors. Instead of using a color scale, it is possible to use isobars: This is done by right clicking on the surface plot and toggling the ‘Interpolate color’ menu. Note that when displaying phase, the color scale is in radians, and can only be displayed with a linear scale.

Surface plot

Amplitude scale

Linear/logarithmic amplitude mode

Zoom out button

Cursor mode selection

Zoom

Cross hair

Pan

Cursor cross hairs

Cross hair position and amplitude reading

Figure 8: Surface plot options

A cross hair cursor is available on the surface plot which gives the value for the selected point. This cursor (yellow cross hairs in Figure 8) can be dragging with a mouse. The current X and Y co-ordinates are displayed below the surface plot, as well as the Amplitude value.

By changing the cursor mode (click on cursor mode selection button) a zoom cursor can be selected. The zoom cursor can then be used to create a zoom window with a mouse. To return to the full image, simply click on the ‘Zoom out’ button. Note that you need to change back to the cross hair cursor to move the cross hair.

4.4 Main control

Once all the settings have been entered, the user may press the ’Re-Process’ button. The computer will then calculate the diffraction patterns as required.

The diffraction pattern can be displayed in either an amplitude mode or phase mode as selected by pressing the ‘Amplitude/Phase’ button (see section 4.3).

You can stop a simulation by pressing the Quit button, however the current array calculation must be completed first, possibly resulting in a long delay. When not performing calculations, the Quit button will close the program.

The required processing time in minutes is estimated, as well as the required RAM for processing to be performed without disk swapping. If disk swapping is required, processing speed decreases dramatically, possibly 100 times slower than estimated.

4.5 Display settings

The simulation software calculates diffraction patterns for a number of frequencies simultaneously. Using the ‘Image Frequency’ horizontal slide the user can select the currently displayed frequency.

Parameters for the current image frequency are also displayed, including the near field depth and the current propagation velocity. Note that the ‘Near field*’ value is a theoretical value for circular probes, with no delay line, no apodisation and no diffraction. Clearly this value can only be used as a reference point.


Figure 9: Display settings

To obtain images without the effects of diffraction (i.e. no thin coupling layer) for L waves, use ct=0 for the 1st material and ct=1 for the 2nd material.

5 File format

The file format will be made available shortly. Note that the file format is incompatible to version 3 due to all the additions that have been made.

6 Mathematical techniques and assumptions.

Formulas for reflection and transmission coefficients were obtained from Krautkramer & Krautkramer[1]. The selection of the three possible formulas depends on the material properties.

If transverse waves are supported, it is assumed that the probe and block are solid media, and the sound is coupled between the media by a thin liquid layer.

If either of the media have zero transverse wave velocity, it is assumed that the media is a liquid, and liquid to solid and solid to liquid equations are used.

If both media cannot support transverse waves, a warning message is displayed, and the processing is stopped (Liquid-Liquid interface not supported).

The equations above are only valid for plane waves on plane boundaries, and do not take energy loss in the form of surface waves into account. A number of assumptions are therefore made:

1) Only L waves exist in the shoe.

2) Edge effects (mostly T waves) do not contribute to the diffraction patterns.

3) The materials are isotropic.

4) Surface waves are not taken into account.

5) The probe shoe has infinite size (no echoes in the shoe or water bath)

6) No interaction (resulting from radial vibration of an element or from second diffraction phenomena caused by significant curvature of the radiating surface) takes place between two source points.

7) All source points vibrate with the same time dependence.

If a probe shoe is well designed, reflections within the shoe can be minimised, and therefore assumption 5 becomes valid.

Note that the calculations are performed using an array of point sources, as specified by the user. If the number of point sources is too low, diffraction grating patterns will result. To reduce this effect, the pseudo random location of point sources can be used, however the user should confirm that changes in the number of sources (step size for numerical integration over the surface area of the probe) is sufficiently small for their requirements.

6.1 Geometric equations

 : material density

 : angle

c : material velocity

Subscript ‘1’ refers to the first material (the probe shoe).

Subscript ‘2’ refers to the second material (the block).

Subscript ‘t’ refers to the transverse wave.

Subscript ‘l’ refers to the longitudinal wave.

Angles are calculated using Snells law: