Generator : generate and adapt a set of structured Cartesian grids
This tutorial demonstrates how to generate a set of structured Cartesian grids derived from an octree and adapt it with respect to a sensor field.
Cartesian mesh adaptation by S. Péron.
The generation is in two steps: we first generate a unstructured
octree using G.octree, then it is filled with structured Cartesian grids using
In the example, we define a model sensor field on the set of Cartesian grids. To adapt the set of Cartesian grids with respect to the sensor,
we first project it on the corresponding unstructured octree
and convert it to an indicator field with P.computeIndicatorValue.
Then the unstructured octree is adapted using G.adaptOctree. The adapted set of grids
is the generated using again G.octree2Struct.