Repository navigation
v2.0.0
planetmodel 2.0.0
Flat-layered ("Cartesian") models arrive beside the spherical ones, in
Python and in the C++ library, with their meshes, faults, files, slices
and random fields. Two changes can affect existing code, which is why
this is a major version.
What may break
- Every mesh with a fault changes. A fault sized by a number is now
graded out to the interfaces' sizing (the size grows by about 30 % per
element away from the fault), and a faulted mesh is relocated by
gmsh's pass instead of skipping optimisation. Meshes without faults
are unchanged, byte for byte. The steep ramp remains available by
giving anInterfaceSizingexplicitly. randomfield.RadialOperatorFamilyis removed. The class is
randomfield.SeparableOperatorFamily, whose defaults are a ball's or
an annulus's: change the name and nothing else. Spherical and interval
results are the same. pygeoinf users need pygeoinf 2.3.1 or later,
which pins planetmodel below 2 until it moves to the new class.
Everything else that worked under 1.6 works unchanged. Existing model,
surface, fault and manifest files read as before; the new capabilities
use new schemas.
New: flat-layered models
planetmodel.cartesian: models layered in depth over a doubly
periodicBoxor aRectangle(its cross-section), with their own
geometry, catalogue, decks of depths, lateral structure as real
Fourier series (planetmodel.fourier), topography as a mapping,
slices and plots.- Meshes:
mesh3d.MeshSpectakes a flat geometry and builds box and
rectangle meshes, with embedded faults in a box (also under
topography) and labelled faces;export_mfemwrites a flat model's
fields. Mesh manifest schemaplanetmodel.mesh.manifest/7. - Files: flat model and surface files, schemas
planetmodel.model/3
andplanetmodel.surface/2. - C++:
planetmodel::cartesianreads, evaluates and writes flat
model and surface files, the flat manifest and decks by depth.
New: random fields
randomfield.SeparableOperatorFamily: one operator family for the
ball and annulus, the disk, and the flat layer, with a bounded cache.planetmodel.cartesian.randomfield: Matérn fields of flat layers
(LayerBasis,DepthGRF,BoxGRF,LayeredGRF), with the
coefficient vector as the coordinate.
Also new
planetmodel.coordinates, andGeometryBase/ModelBase, what the
spherical and flat sides share.Model.extended(..., fields="hold").fault.Region,mesh3d.cell_quality,plotting.mesh_block,
plotting.plane_cut(..., kind="crinkle").- finufft (
>=2.3,<3) is a dependency, imported where a non-uniform
transform is made. - Examples
cartesian/01to11.
Changed
MeshSpec.optimisedefaults to"auto", andMeshSpec.dimensionto
the geometry's own.- The
frameof a field'sevaluatedefaults to the field's local
frame, which is "spherical" for every shipped field. - Messages and reprs name the coordinates of the system concerned.
- A flat model is refused by name where a computation is the sphere's.
Fixed
- A fault crossing an interface where the mapping's derivative jumps is
built within the default tolerance. - The part of a fault carried across the free surface or a face of a
box. MeshArrays.layers_by_position.- A section or profile of a spherical model at physical points.