GRADIENT MESH ON A SLOPED/LOFTED VOLUME

I’m trying to create a 3-D structured gradient mesh for LES CFD simulations on a flat plate, where the top boundary of the volume has a slope and the bottom boundary is the plate wall.

I’ve successfully meshed a brick volume (12x30x40, see attached) with gradient mesh options. (Similar to the Thursday, March 14 2013 post instructions).

Using the same process, but on a sloped volume (see attached picture), I have not been successful in generating a 3-D gradient structured mesh.

Any suggestions?

Would an approach like this work?

reset
#create the volume
bri x 12 y 40 z 40
create vertex on curve 1 fraction 0.75
webcut vol 1 plane vertex 8 9 3
del vol 2

#set the volume to scheme sweep
curve 17 7 16 3 orient sense direction 0 1 0
curve 16 17 7 3 interval 40
curve 16 17 7 3 scheme bias factor 1.13
mesh Volume 1

Yes, your approach works.

Thank you.