In this tutorial we will learn how to simulate a full 3D model of a TRL (Transmit Receive Longitudinal) inspection of a steel pipe with water. We will use CAD importation for the model geometry.
We will learn:
- How to import CAD
- How to apply mechanical load to a surface
- How to solve the model to calculate the acoustic pressure received
Problem Definition
Characteristics of the model
Model: | TRL inspection with Block Angle = 15 degrees and Wedge Angle = 162 degrees |
Mesh Size: | 16 Elements / Wavelength |
Analysis Time: | 0.1 ms |
Output Results: |
- Time History of Acoustic Pressure at Receiver (0.025,0.02,0.035) m - Maximum Acoustic Pressure Field |
Material Data
Name |
Code Name |
Density |
Bulk Velocity |
Shear Velocity |
Rexolite |
rxlt |
1060 kg.m-3 |
2340 ms-1 |
1100 ms-1 |
Stainless Steel, Generic |
stst |
7890 kg.m-3 |
5790 ms-1 |
3100 ms-1 |
Vacuum |
vacm |
0 ms-1 |
0 ms-1 |
0 ms-1 |
Water | watr |
1000 ms-1 |
1496 ms-1 |
0 ms-1 |
Why This Simulation?
There are many issues associated with inspection, including accessibility and critical defect sizes, but the most important issue regards the accurate positioning, sizing and characterisation of flaws. TRL is a popular method for near-surface inspection and simulating the inspection design is necessary for optimization.
In this simulation we will transmit from one probe on the wedge into the pipe and receive on the other probe.
The Simulation Process
Step 1 - Creating a New Project
Before we begin we must create a new project.
- In the Home tab of the ribbon, click New Project. The New Project window shows.
- Type a name for the project.
- If desired, change the save location and/or project file name by clicking … beside Project File.
- For Analysis, select Mechanical Dynamic.
- Click OK.
Step 2 - Set the Frequency of Interest
First we will specify the frequency of interest.
- Select Project Settings in the Model Tree
- Expand the Frequency of Interest property
- Tick the box
- Enter a value of 150,000
Step 3 - Adding the Materials
First we will add the materials needed from the material database.
Stainless Steel
We need stainless steel for the pipe.
- Click Project Materials to open the Material Database
- Expand the Metal material tab
- Double click 'Stainless Steel, generic - stst' to add this to Project Materials
Rexolite & Vacuum
We require rexolite for the wedge and vacuum for the probes.
- Expand the Misc material tab
- Double click 'Rexolite - rxlt' to add this to Project Materials
- Double click 'Vacuum- vacm' to add this to Project Materials
Water
- Expand the Fluid material tab
- Double click 'Water at 25C- watr' to add this to Project Materials
- Select Done to close the Project Material Database
Step 4 - Import Geometry
Note: As of OnScale 1.30.3, this step can now be performed from the New Project window. As such, you could alternatively perform steps 1 and 4 as a single step.
We will make use of this BDF File containing a model of a 3D TRL Inspection.
- Select Import button
- Select ... and locate 'TRL.step'
- Select Import
Step 5 - Assign Materials to Parts
We must now assign each model part a material.
Wedge
- Expand Geometry in the Model Tree
- Right click part_1 > Assign Material > rxlt
Probes
- Right click part_2 > Assign Material > vacm
- Right click part_3 > Assign Material > vacm
Pipe
- Right click part_4 > Assign Material > stst
Water
- Right click part_5 > Assign Material > watr
Step 6 - Setting up the Mesh
We will now change the mesh settings to use 16 elements per wavelength
- Expand Model in Model Tree
- Expand Mesh
- Select Configuration
- Set Definitions to Advanced
- Set Elements Per Wavelength to 16
- Expand Mesh Velocity and set to Defined
- Set Mesh Velocity Value to 1100
Step 7 - Creating a New Load
Adding a Time Function
We need to assign a pressure load to the transmit probe so we require a drive function. For this model we will use with a Sinusoidal drive function.
- Expand Forcing Functions in the Model Tree
- Click '+' to open the Time Function window
- Change Drive Frequency to 150,000
- Click Insert
Creating a Load
- In the Model Tree, expand Boundary Conditions and then, beside Loads, click +.
- In the Model Tree, under Geometry clear the part_1 checkbox to hide this part.
- Change Creation Mode to Geometry Interface
- Click part_2.
- For Interfacing Item select part_1 from the drop down menu.
- Set timefunc_1 as the forcuing function.
- Change Amplitude Scale Factor to 1
- Click Create Load
Step 8 - Setting up Boundary Conditions
We will need to change all boundaries except Ymin to Absorbing conditions because we are only simulating part of the pipe and the waves would continue on and not reflect off of the boundaries. Ymin is free as this is the boundary at our probes.
- Click Domain Boundaries
- Expand X Minimum and set Boundary Type to Absorbing
- Expand X Maximum and set Boundary Type to Absorbing
- Expand Y Minimum and set Boundary Type to Absorbing
- Expand Z Minimum and set Boundary Type to Absorbing
- Expand X Maximum and set Boundary Type to Absorbing
Step 9 - Setting Analysis Time
We will now set the model simulation time to be 0.0001 seconds
- Click Analysis
- Set Simulation Run Time to 0.0001
Step 10 - Choosing Output Results
We will now define 2 outputs, a time history of the acoustic pressure at the receiver and the maximum pressure array.
1 - Time History of Acoustic Pressure at Receiver [0.025,0.02,0.035 ]m
- Click '+' this will create a new output
- Change Output Type to Time History
- Set Location > X to 0.025
- Set Location > Y to 0.02
- Set Location > Z to 0.035
2- Maximum Acoustic Pressure Field
- Click '+' this will create a new output
- Change Output Type to Field Data
- Change Field Type to Maximum
Step 11 - Launch the simulation on the Cloud
At this point the model is completely set up and it can now be run on the cloud.
- Click Run on Cloud
- Click Estimate
- Click Run
Step 12 - Post Processing Simulation Results
Download the results from the cloud
The simulation results will need to be downloaded from the cloud storage in order to analyse the results in the post processor.
- Select Storage icon
- Locate the job from the dropdown menu
- CTRL + select the .flxdato and .flxhst file, right click and select Download Selection
Choose an appropriate save location when the file explorer pops up and click Select Folder to close the window.
Switch to the Post Processor
Important: Once you downloaded the results from the cloud, those results will be available on your computer locally. You will then need to open them into the post-processor to visualize them.
- Click this icon to access the Post Processor
Open Results
- Click File Explorer
- Expand the job simulation folder
- Double click .flxdato file and .flxhst file to open them in Results Manager
Plot Time History
- Double click 'aprs' in Results Manager to plot acoustic pressure curve
Plot Data Array (Maximum Pressure)
- Double click 'apmx' in Results Manager to plot maximum pressure data array
- Select Continue
- Set Scale Factor to 0.5
- Rotate model to view maximum pressure at different parts of the model
Try for yourself
Now that we have introduced you to the tutorial try have a play around with some of the settings, add some other outputs, or use this model as a starting point for your own.