Here is a cross section of our PZT disk in water:
Remember, our model will be axisymmetric around the Y axis. As such, what we'll create in Designer will actually be half of the above and will look as so:
We've included the dimensions here. We could just go ahead and add the primitives we'll need, entering these dimensions directly. Instead, however, let's add some parameters! Using parameters makes it easy to apply changes to your model. Also, by using a "varying" parameter, you can sweep different values when running simulations, to see how changes in a parameter's value impact the results.
Here's the model again, but with parameter names in place of dimensions:
We'll also need a few extra parameters to define the start and end points of the PZT on the Y-axis, and the end points of the water:
The Parameter Table
You manage parameters using the Parameter Table, and you can add new parameters at the bottom of this window.
To add a new parameter, follow these steps:
- Type a name for the parameter. This cannot include spaces (but you can use underscores).
- Type a value for the parameter. You can type a calculation: just start with =. For more about calculations, see Parameter Table.
- If you want to be able to sweep different values for this parameter when running a simulation, select the Varying checkbox.
- Click .
Now that you know how to add parameters, add the following parameters.
|pzt_thk_end||=pzt_thk_start + pzt_thick||-|
|water_xend||=pzt_rad + water_size||-|
|water_yend||=water_size*2 + pzt_thick||-|
Note: You may remember that, when we created our project, we set the working units to millimeters. If so, you're probably wondering why we're setting the value of these variables to 4e-3 and so on. It's because parameter values are always measured in meters, regardless of the project working units.
Now that you've added your parameters, let's go ahead and add the two primitives we'll need, which will represent water and PZT.