Skip to content

v2.0.0

Choose a tag to compare

@da380 da380 released this 17 Nov 20:02
· 6 commits to main since this release
9888f08

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 an InterfaceSizing explicitly.
  • randomfield.RadialOperatorFamily is 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
    periodic Box or a Rectangle (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.MeshSpec takes a flat geometry and builds box and
    rectangle meshes, with embedded faults in a box (also under
    topography) and labelled faces; export_mfem writes a flat model's
    fields. Mesh manifest schema planetmodel.mesh.manifest/7.
  • Files: flat model and surface files, schemas planetmodel.model/3
    and planetmodel.surface/2.
  • C++: planetmodel::cartesian reads, 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, and GeometryBase / 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/01 to 11.

Changed

  • MeshSpec.optimise defaults to "auto", and MeshSpec.dimension to
    the geometry's own.
  • The frame of a field's evaluate defaults 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.