mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-28 03:51:17 +08:00
be3667b4ab
- Put all examples in same directory - Make a single test - use __init__.py to create the docs automatically
32 lines
818 B
ReStructuredText
32 lines
818 B
ReStructuredText
.. _examples_Mesh_QuadTree_Creation:
|
|
|
|
.. --------------------------------- ..
|
|
.. ..
|
|
.. THIS FILE IS AUTO GENEREATED ..
|
|
.. ..
|
|
.. SimPEG/Examples/__init__.py ..
|
|
.. ..
|
|
.. --------------------------------- ..
|
|
|
|
|
|
Mesh: QuadTree: Creation
|
|
========================
|
|
|
|
You can give the refine method a function, which is evaluated on every cell
|
|
of the TreeMesh.
|
|
|
|
Occasionally it is useful to initially refine to a constant level
|
|
(e.g. 3 in this 32x32 mesh). This means the function is first evaluated
|
|
on an 8x8 mesh (2^3).
|
|
|
|
|
|
|
|
.. plot::
|
|
|
|
from SimPEG import Examples
|
|
Examples.Mesh_QuadTree_Creation.run()
|
|
|
|
.. literalinclude:: ../../SimPEG/Examples/Mesh_QuadTree_Creation.py
|
|
:language: python
|
|
:linenos:
|