Skip to content

Releases

v2.1.1

Choose a tag to compare

@da380 da380 released this 20 Nov 06:50
e43027b

planetmodel 2.1.1

A patch release for the C++ headers. Nothing changes for Python users, and
every function returns the same values as in 2.1.0.

Fixed

  • planetmodel/fault.hpp under Clang 18 with OpenMP. ParameterRule
    captured a structured binding in a lambda, which Clang 18 refuses in any
    translation unit built with -fopenmp, so a code that includes the header
    and uses OpenMP did not compile with that compiler. The lambda now takes
    the quadrature's points and weights by init-capture.

v2.1.0

Choose a tag to compare

@da380 da380 released this 18 Nov 17:53
b359d30

planetmodel 2.1.0

A feature release for planetmodel.fourier. Nothing breaks: existing calls
give the same values as 2.0.0.

Added

  • Transforms at prepared points. Transform.at(points, *, route=, epsilon=, nthreads=)
    prepares a set of points once and returns a fourier.PointTransform, whose
    synthesise, synthesise_gradient and accumulate take no points and give
    the same results as the transform's methods of those names. The points'
    angles are computed once and, on the finufft route, each plan is made on
    first use and kept. At 20 000 points on a 64 × 64 grid an application takes
    about a third less time than passing the points on every call.
  • A PointTransform can be copied and pickled (its plans are rebuilt on first
    use) and is safe to apply from several threads.

Changed

  • Transform.from_rfft and Transform.to_rfft are about twice as fast for a
    single array or vector without batch axes; values are unchanged.
  • Transform.synthesise, synthesise_gradient and accumulate now run
    through a prepared-points transform internally; results and refusals are as
    before.

v2.0.0

Choose a tag to compare

@da380 da380 released this 17 Nov 20:02
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.

v1.6.0

Choose a tag to compare

@da380 da380 released this 14 Nov 19:22
90fbadc

planetmodel 1.6.0

This release adds faults, two viscoelastic deck formats, and interpolation
in the logarithm, in Python and C++.

Highlights

  • Faults (planetmodel.fault, planetmodel.faultfile): a fault is one
    or more patches of surface (planes and curved structured patches) with
    the slip of its hanging wall, static or on a time axis; evaluation,
    quadrature (per date, or the geometry once with every time slice's
    slip) and location of a point on the surface. The fault file,
    planetmodel.fault/1, has a format page, a strict reader, and readers
    and writers in both languages.
  • Faults in 3-D meshes: a mesh specification takes embedded faults,
    built into the layered mesh with oriented faces, hanging-wall collar
    attributes and labelled tip, free-edge and junction curves, for
    split-node methods. Meshes with faults have manifest schema 6; meshes
    without are unchanged.
  • Viscoelastic decks: prony (any number of relaxation branches) and
    burgers (a Maxwell element with a Kelvin element) beside the Maxwell
    deck, with their model types and conversions (with_burgers,
    prony_deck, burgers_deck), in Python and C++.
  • Interpolation in the logarithm: any deck interpolation kind can be
    prefixed log-; the model file gains the radial rules log-polynomial
    and log-linear, so such fields round-trip exactly. Files using them
    have schema planetmodel.model/2; all other files are unchanged, byte
    for byte.
  • C++: fault.hpp, faultfile.hpp, time.hpp and prony.hpp; integer
    version macros with PLANETMODEL_VERSION_AT_LEAST, and feature macros.

Changes to existing behaviour

  • A Maxwell deck's viscosity is joined in its logarithm by default
    (it was linear). A deck whose viscosity is constant in each layer reads
    exactly as before; one whose viscosity varies within a layer reads
    differently between knots. Pass kinds={"viscosity": "linear"} for the
    previous behaviour. A viscosity that is zero or negative in a layer
    holding one is now refused.
  • A date within a tolerance of a stored time is that time when a time
    axis is read (time_rtol, default 1e-12 of the larger of the axis's
    span and its times' magnitudes; zero matches exactly).
  • C++: time supports and rules are the enumerations TimeSupport and
    TimeRule; the BodyAttributes family of the mesh manifest returns
    element attributes, collars included.
  • planetmodel.mesh3d imports without gmsh.

Fixed

  • Model, surface and fault files written by the Python are no longer
    readable by their owner alone: they get the permissions a plainly
    opened file gets, and an existing file keeps its own.
  • A spherical mean by quadrature evaluates the field once per distinct
    radius, so a slice relative to the mean on a fine grid no longer asks
    for memory in the square of the grid's size.

v1.5.1

Choose a tag to compare

@da380 da380 released this 11 Nov 07:59
b0310a4

planetmodel 1.5.1

Fixed

  • A spherical mean taken by quadrature (quadrature_mean, and
    spherical_mean of a field with no mean of its own) now evaluates the
    field once per distinct radius, a bounded number of radii at a time.
    Previously a slice shown as a departure from the mean, for example
    slices.sphere(..., relative_to="mean") on a gridded field, asked for
    memory in the square of the grid's size (about 31 GiB on a 180 × 360
    grid).

There are no API changes and nothing else in the release.

v1.5.0

Choose a tag to compare

@da380 da380 released this 02 Nov 20:39
8cc20e9

v1.5.0

Maxwell decks (formerly GIA decks)

  • The GIA deck format is now MAXWELL (MAXWELL_COLUMNS; MAXWELL() in C++).
  • New model type MaxwellDeckModel.
  • Decks can name their layers and interfaces in optional # layers and # interfaces lines.
  • A Maxwell deck's viscosity is joined by straight lines (MAXWELL_KINDS). deck_layers and the C++ DeckLayers accept an interpolation kind per column.
  • New sample_deck(model, columns) writes any model as a deck. A velocity a layer lacks is computed from its moduli. Tabulated.to_deck now uses it.
  • An absent quality factor is written to a mineos deck as 0.
  • New format page: the Maxwell deck.

C++

  • Decks can now be written (WriteDeck), character for character as the Python writes them.
  • TauP's .nd and .tvel tables can be read and written, with their labels (NdNames).

Breaking

  • GIA → MAXWELL, and GIA_COLUMNS → MAXWELL_COLUMNS.
  • A Maxwell deck's title is kept under "name", not "title".
  • to_deck() writes the columns the deck was read with, not every field.

Fixes

  • The registry check installs the maps extra, and the tutorial-14 test skips without cartopy.
  • On GitHub Actions the registry check skips the three Earth2014 entries, because their host refuses GitHub's runners.

v1.4.1

Choose a tag to compare

@da380 da380 released this 01 Nov 09:16
5d8e206

planetmodel 1.4.1

ixes a failure with ducc0 0.42, which a fresh install now picks up. harmonics.real_harmonics, and everything that relies on it (ShellTransform, the random fields), raised RuntimeError: ... data type mismatch under ducc0 0.42. planetmodel now works with every ducc0 from 0.41 on. Nothing else changes.

v1.4.0

Choose a tag to compare

@da380 da380 released this 31 Oct 14:26
2a31bad

Additional model plotting functionality. Anisotropic Gaussian random fields in balls and disks. Tutorials doubled as notebooks.

v1.3.2

Choose a tag to compare

@da380 da380 released this 23 Oct 19:45
d0c55e2

Fixing some install issues within fetched c++ libraries.

v1.3.1

Choose a tag to compare

@da380 da380 released this 23 Oct 12:51
2d39b8e

Surface and time-dependent fields added to the IO capabilities.