Configuring the Mesh

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.

  1. In the Model Tree, expand Mesh and then click Configuration.
  2. 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:

  1. In the Model Tree, click Extents.
  2. In the Properties window, set Maximum > X to parameter water_xend.

    Tip: Remember, to use a parameter for a property, click use-parameter-for-property.png and select Use Parameter for Property.

  3. Set Maximum > Y to parameter water_yend.

What Next?

It's always good practice to add keypoints, so let's do that next.