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 Parameters 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.

0 out of 0 found this helpful


  • What's the difference between "setting" and "not setting" the extents here?

    Comment actions Permalink
  • Hi James,

    If you do not set the extents of your model and you set the water width to a parameter in the parameter table, changing this width will not automatically update the extents so these need to be parameterised too.

    Best Regards,

    Comment actions Permalink

Please sign in to leave a comment.