Repository navigation
v1.6.0
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
prefixedlog-; the model file gains the radial ruleslog-polynomial
andlog-linear, so such fields round-trip exactly. Files using them
have schemaplanetmodel.model/2; all other files are unchanged, byte
for byte. - C++:
fault.hpp,faultfile.hpp,time.hppandprony.hpp; integer
version macros withPLANETMODEL_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. Passkinds={"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
TimeSupportand
TimeRule; theBodyAttributesfamily of the mesh manifest returns
element attributes, collars included. planetmodel.mesh3dimports 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.