OnScale uses a Cartesian grid for meshing. All you need to do is set the grid size.
For our model, we'll create a grid with 15 elements per wavelength.
- In the Model Tree, expand Mesh and then click Configuration.
- In the Properties window, for Definitions, select Wavelength Based. (Elements Per Wavelength should then be set to 15 by default.)
You can view the meshing, if you wish. In the Model Graphics tab of the ribbon, click Show Approx. Meshing.
To hide the meshing again, just click this option again.
Setting the Extents
Since we've defined the geometry of our primitives using parameters, we should really define the grid extents using parameters too. The grid needs to extend as far as the water in the X and Y directions. We've already defined parameters for the end points of the water, so we'll use these.
Follow these steps:
- In the Model Tree, click Extents.
In the Parameters window, set Maximum > X to parameter water_xend.
Tip: Remember, to use a parameter for a property, click and select Use Parameter for Property.
- Set Maximum > Y to parameter water_yend.
It's always good practice to add keypoints, so let's do that next.