Cubit horizontal refine mesh

I am working on a block where I need to change the generated mesh size in the x-direction. This means increasing continuously in the x-direction (the same as the figure but in the horizontal—x direction). Could you please assist me with this?

Thank you

Cubit provides a variety of ways to specify the discretization size. You can specify a fixed size along geometric entities or a size at a point and a variation along curves, or a fixed number of cells along geometric entities.

Sandia Cubit documentation (select the link for your version): Documentation – CUBIT
If you are using Coreform Cubit, then see the corresponding documentation on the Coreform website.

The section related to specifying the mesh size is Mesh Generation → Interval assignment.
You can examine the PyLith examples for demonstrations of how we specify the discretization size.