Tonpilz Transducer 3D

Follow

In this tutorial we will learn how to simulate a simple 3D tonpilz transducer propagating waves into a water load.  We will use basic shapes to build up the design and analyze the pressure of the model in the post processing tool.

final.PNG

Final Model

New Project 

Open up OnScale in Designer Mode. The first step is to create a new project.

nprjct.png

  1. Click New Project to open the New Project dialogue
  2. Enter Model Name
  3. Change working units to mm 
  4. Click ... to choose a directory to save the project to
  5. Click OK to create the project.

Project Settings

First we will specify the frequency of interest.

prjctset.png

  1. Select Project Settings in the Model Tree
  2. Expand the Frequency of Interest property
  3. Tick the box
  4. Enter a value of 200000

Materials

The second step is to add the required materials for the tonpilz transducer to the Project Materials database.

Fpz26

Add positively polled piezoelectric material.

prjctmats.png

  1. Click Project Materials icon to open the Material Database
  2. Expand the 'Piezoelectric' materials dropdown 
  3. Double click 'Ferroperm PZ26 - fpz26' to add this to Project Materials 
  4. Expand the 'fpz26' dropdown 
  5. Expand the 'Piezoelectric' properties dropdown
  6. Double click on the Poling value and change it to Y+

Fpz26n

Add negatively polled piezoelectric material.

prjctmats2.png

  1. Right click on 'fpz26'
  2. Select Copy
  3. Give duplicate material the name 'fpz26n'
  4. Select OK
  5. Expand 'fpz26n' dropdown
  6. Expand 'Piezoelectric' properties dropdown
  7. Double click on the Poling value and change it to Y-

Magn/Stst/Watr

Now add the screw and head mass materials.

prjctmats3.png

  1. Expand 'Metal' materials dropdown 
  2. Double click on 'Magnesium - magn' to add it to Project Materials
  3. Double click on 'Stainless Steel- stst' to add it to Project Materials
  4. Expand 'Fluid' materials dropwdown
  5. Double click on 'Water - watr' to add it to Project Materials
  6. Select Done to save Project Materials

Primitives

We will make use of the geometric primitives to build the tonpilz transducer. 

Primitive 1

We will start by creating the screw. The first step for this is to add a cylinder primitive to represent the screw head.

prim1.png

  1. Right click on primitive_1 
  2. Navigate to Assign Material and select 'stst' 
  3. Set the Axis property of primitive_1 to Y 
  4. Set the End property of primitive_1 to 3.7
  5. Set the Radius Begin property to 5.5
  6. Set the Radius End property to 5.5
  7. Right click in the workspace and select Reset View to snap the view to the geometry

Primitive 2

Next we will add another cylinder to represent the screw thread

prim2.png

  1. Right click primitive_1 and select Duplicate Selection
  2. Right click primitive_2
  3. Navigate to Assign Material and select 'stst'
  4. Set Begin property of primitive_2 to 3.7
  5. Set End property of primitive_2 to 15.7
  6. Set Radius Begin property of primitive_2 to 1.25
  7. Set Radius End property of primitive_2 to 1.25
  8. Right click in the workspace and select Reset View

Primitive 3

Next we will add another cylinder to represent the screw tip.

prim3.png

  1. Right click primitive_2 and select Duplicate Selection
  2. Right click primitive_3
  3. Navigate to Assign Material and select 'stst'
  4. Set Begin property of primitive_3 to 15.7
  5. Set End property of primitive_3 to 16.9
  6. Set Radius Begin property of primitive_3 to 1.25
  7. Set Radius End property of primitive_3 to 0

Primitive 4

Having completed the screw, we will move on to the stack of 6 piezoelectric discs. 

prim4.png

  1. Right click primitive_3 and select Duplicate Selection
  2. Right click primitive_4
  3. Navigate to Assign Material and select 'fpz26'
  4. Set Begin property of primitive_4 to 3.7
  5. Set End property of primitive_4 to 5.7
  6. Set Radius Begin property of primitive_4 to 4
  7. Set Radius End property of primitive_4 to 4
  8. Set Hollow Begin property of primitive_4 to 2
  9. Set Hollow End property of primitive_4 to 2

Primitive 5

The second piezoelectric disc is polled in the opposite direction from the first.

prim5.png

  1. Right click primitive_4 and select Duplicate Selection
  2. Right click primitive_5
  3. Navigate to Assign Material and select 'fpz26n'
  4. Set Begin property of primitive_5 to 5.7
  5. Set End property of primitive_5 to 7.7

Primitive 6

The third piezoelectric disc is polled in the same direction as the first.

prim6.png

  1. Right click primitive_4 and select Duplicate Selection
  2. Right click primitive_6
  3. Navigate to Assign Material and select 'fpz26'
  4. Set Begin property of primitive_6 to 7.7
  5. Set End property of primitive_6 to 9.7

Primitive 7

The fourth piezoelectric disc is polled in the same direction as the second.

prim7.png

  1. Right click primitive_5 and select Duplicate Selection
  2. Set Begin property of primitive_7 to 9.7
  3. Set End property of primitive_7 to 11.7

Primitive 8

The fifth piezoelectric disc is polled in the same direction as the first and third.

prim8.png

  1. Right click primitive_6 and select Duplicate Selection
  2. Set Begin property of primitive_8 to 11.7
  3. Set End property of primitive_8 to 13.7

Primitive 9

The last piezoelectric disc is polled in the same direction as the second and fourth.

prim9.png

  1. Right click primitive_7 and select Duplicate Selection
  2. Set Begin property of primitive_9 to 13.7
  3. Set End property of primitive_9 to 15.7

Primitive 10

The last part of the transducer to add is the head mass. 

primitive_10.png

  1. Right click primitive_9 and select Duplicate Selection
  2. Right click primitive_10
  3. Navigate to Assign Material and select 'magn'
  4. Set Begin property of primitive_10 to 15.7
  5. Set End property of primitive_10 to 21.7
  6. Set Radius Begin property of primitive_10 to 4
  7. Set Radius End property of primitive_10 to 7
  8. Set Hollow Begin property of primitive_10 to 0
  9. Set Hollow End property of primitive_10 to 0

Primitive 11

The final part of the model is the water load which can be added using the cuboid primitive. 

primitive_11.png

  1. Click on Cuboid icon 
  2. Set Material property to 'watr'
  3. Set X Begin property of primitive_11 to -15
  4. Set Y Begin property of primitive_11 to 21.7
  5. Set Z Begin property of primitive_11 to -15
  6. Set X End property of primitive_11 to 15
  7. Set Y End property of primitive_11 to 36.7
  8. Set Z End property of primitive_11 to 15
  9. Right click in the workspace and select Reset View

Time Function

The next step is to add a drive function. We will use a Sinusoidal time function with a frequency of 2e5 Hz.

drive.png

  1. Click '+' to open the Drive Function dialogue
  2. Set Drive Frequency to 200000
  3. Click Insert to close the window. A record called timefunc_1 will be added to the Model Tree

Circuit

It is now time to define a circuit.

circ.png

  1. Click '+' to open the Circuit dialogue
  2. Select the line between points 2 and 3
  3. Double click on Resistor
  4. Select the resistor in the circuit diagram
  5. Set resistance to 50 ohms
  6. Select Insert to close window. A record called circuit_1 will be added to the Model Tree

Mesh

It is time to set up the meshing of the model. 

mesh.png

  1. Expand Model in the Model Tree
  2. Select 
  3. Set Definitions to Advanced
  4. Set Elements per Wavelength to 20

 

Create a New Load 

We will now create loads on each side of the piezoelectric discs.

create_load.png

  1. Expand Model in the Model Tree
  2. Expand Boundary Conditions
  3. Click '+' to open the Load dialogue
  4. Set Creation Mode to be Geometry Interface
  5. Set Geometry to primitive_1
  6. Set Interfacing Item to primitive_4
  7. Select Create Load
  8. Repeat steps 5-7 for the following

Geometry

Interfacing Item

primitive_4

primitive_5

primitive_5

primitive_6

primitive_6

primitive_7

primitive_7

primitive_8

primitive_8

primitive_9

primitive_9

primitive_10


Edit Load Properties 

Now that each load has been defined, we can set each load's properties.

edit_load.png

  1. Select load_1
  2. Set Load Type to Voltage
  3. Set Termination to Ground
  4. Repeat steps 1-5 for load_3, load_5 & load_7
  5. Select load_2
  6. Set Load Type to Voltage
  7. Set Circuit to circuit_1
  8. Set Termination to timefunc_1
  9. Set Amplitude Scale Factor to 1
  10. Repeat steps 7-9 for load_4 & load_6

Boundary Conditions 

We need to change the boundary conditions so that the tail of the transducer is fixed and the water load has absorbing boundaries.

  1. Click Domain Boundaries in the Model Tree
  2. Set X Minimum to Absorbing
  3. Set X Maximum to Absorbing
  4. Set Y Minimum to Fixed
  5. Set Y Maximum to Absorbing
  6. Set Z Minimum to Absorbing
  7. Set Z Maximum to Absorbing

Analysis

We will now set the model simulation time to be 5e-6 seconds

analysis.png 

  1. Click Analysis 
  2. Change Simulation Run Time to 5e-6

Outputs

We will now define 3 outputs, a time history of the acoustic pressure in the middle of the water load will be recorded as well as the maximum and minimum pressure arrays.

Output 1

out1.png

  1. Click '+' to create a new output
  2. Set Output Type to Field Data
  3. Set Field Type to Minimum

Output 2

out2.png

  1. Click '+' to create a new output
  2. Set Output Type to Field Data
  3. Set Field Type to Maximum

Output 3

  1. Click '+' to create a new output
  2. Expand Location dropdown
  3. Set Y Location to 29.2 

Run Model on Cloud

At this point the model is completely set up and it can now be run on the cloud.

run.png

  1. Click Run on Cloud 
  2. Select Estimate 
  3. Select Run

Downloading Simulation Results 

Once the simulation has finished, the results are available in your storage to download.

download.png

  1. Click the Storage icon to open the cloud storage
  2. Select your job from the dropdown menu
  3. Expand the simulation folder
  4. CTRL + select the flxdato & flxhst file, right click and select Download Selection

Choose an appropriate save location and close the cloud storage.

Switch to the Post Processor  

  1. Click this icon to access the Post Processor to analyse simulation results

Open Results 

  openres.png

  1. Click File Explorer
  2. Expand the job simulation folder. Double click the data out file to open the field data results
  3. Double click the history file to open the time history results

Plot Time History 

timehist.png

  1. Double click 'aprs' to plot acoustic pressure time history
  2. Set Plot Title to Acoustic Pressure at Cnter of Water Load
  3. Change maximum value of xAxis to 0.0001

Plot Data Array 

plotfield.png

  1. Double click 'apmx' in the Data Out section of the Results Manager to plot maximum pressure data field
  2. Select Continue to plot 'apmx' to workspace

 

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.