Changelog#
The format follows Keep a Changelog. Versions follow semantic versioning, the metapackage version is updated according to the largest bump of any of the dependent packages.
0.7.0 – 2025-11-03#
Added#
mammos-mumagTwo new notebooks Hysteresis loop simulation and Additional functionality available with mammos_mumag documenting additional functionality of
mammos-mumag. (PR42)Create cli command
unv2flyto convert unv mesh to fly format. (PR61)Added notebook Using Tesla for information on how to set up a workflow in Tesla. (PR68)
Added possibility to install GPU support (both CUDA and ROCm) with
pipvia the extra dependencies. (PR81)
Fixed#
mammos-analysisThe function
mammos_analysis.kuzmin_properties()will not assume the magnetization input is inA/m. If the input is in a unit not convertible toA/m(e.g., Tesla), an error is raised. (PR31)
mammos-mumagFixed default
outdirinput in two functions inmammos_mumag.simulation. (PR69)
Changed#
mammos-mumagNow
mammos_mumag.hysteresis.run()can be used to execute simulations with multigrain materials. (PR46)Implement automatic retries to download meshes if the requests fail. The requests will try three times in total, with a backoff factor of 0.1. (PR70)
Documentation is updated. Parameters have been formatted to snake case when possible. The names
h_start,h_final,h_step,n_h_steps,m_step,m_final, andtol_h_mag_factortake the place ofhstart,hfinal,hstep,nhsteps,mstep,mfinal, andtol_hmag_factor. Whenever possible, reasonable entities have been defined. The unused variablesiter_max,tol_u, andverbosehave been removed. Warning: this PR causes failure in previously defined workflows if the variables were defined by the user. (PR71)
Misc#
mammos-mumagAdded Hysteresis loop simulation to document full functionality of
mammos-mumagwhen running a hysteresis loop simulation. Additionally, show the functionality of the package irrelevant to an average user in Additional functionality available with mammos_mumag. (PR42)
0.6.0 – 2025-08-13#
Added#
mammos-entityCSV files written with
mammos_entity.iocan now optionally contain a description. (PR52)Support for YAML as additional file format in
mammos_entity.io. (PR59, PR69, PR70)Two new functions
mammos_entity.io.entities_to_file()andmammos_entity.io.entities_from_file()to write and read entity files. The file type is inferred from the file extension. (PR57)A function
mammos_entity.concat_flat()to concatenate compatible entities, quantities and array-likes into a single entity. (PR56)
mammos-mumagAdd function
mammos_mumag.hysteresis.read_result()to read the result of a hysteresis loop from a folder (without running the hysteresis calculation again). (PR48)Implement
mammos_mumag.mesh.Meshclass that can read and display information of local meshes, meshes on Zenodo and meshes given by the user. (PR53)
Changed#
mammos-analysisThe Kuz’min formula to evaluate micromagnetic properties can now accept Curie Temperature Tc and spontaneous magnetisation at zero temperature Ms_0 as optional inputs. If given, they are not optimised by fitting the magnetisation curve. (PR12)
The initial guess for the optimization of the Curie Temperature in Kuz’min formula is set to a much lower temperature (depending on the data). (PR18)
mammos-entityWhen reading files with
mammos_entity.ioIRIs are now checked in addition to ontology labels and file reading fails if there is a mismatch between IRI and ontology label. (PR68)
mammos-mumagChanged the output of the hysteresis loop in compliance with
mammos_entity.iov2. (PR54)
Deprecated#
mammos-entityThe functions
mammos.entity.io.entities_to_csvandmammos_entity.io.entities_from_csvhave been deprecated. Usemammos_entity.io.entities_to_file()andmammos_entity.io.entities_from_file()instead. (PR58)
Fixed#
mammos-entitymammos-dftUpdate attribute name of uniaxial anisotropy constant to Ku_0 from K1_0 for the returned MicromagneticProperties object during a database lookup. (PR19)
mammos-mumagFixed the default values of the
MaterialDomainclass. (PR41)
0.5.0 – 2025-07-11#
Added#
mammos-entityA new submodule
mammos_entity.iothat provides two functions to write and read CSV files with additional ontology metadata. For more details refer to the new io documentation. (PR29, PR46, PR47 )
Fixed#
0.4.0 – 2025-06-27#
Changed#
mammos-entityThe
Entityclass is no longer a subclass ofmammos_units.Quantity. As a consequence it does no longer support mathematical operations. Use the attribute.quantity(or the short-hand.q) to access the underlying quantity and to perform (mathematical) operations. (PR28)The package now comes with a bundled ontology consisting of EMMO (version 1.0.0-rc3) and Magnetic Material (version 0.0.3). Internet access is no longer required. (PR33)
mammosUse Fe16N2 instead of Nd2Fe14B in hard magnet workflow. (PR17)
0.3.0 – 2025-06-11#
Added#
mammos-entityNew predefined entity
mammos_entity.JNew predefined entity
mammos_entity.Js
mammos-mumagOptional argument
plotterinplot_configurationto add a vector plot of a magnetization configuration to apyvista.Plotterprovided by the caller.
Changed#
mammos-entityReturn a
mammos_units.UnitConversionError(inherited fromastropy.units) when trying initialize an entity with incompatible units.
0.2.0 – 2025-06-06#
Added#
mammosCommand-line script
mammos-fetch-examplesto download all example notebooks.
mammos-entityEntity objects have
ontology_label_with_iriattribute.
Changed#
mammos-entityWhen trying to initialize an entity with a wrong unit the error message does now show the required unit defined in the ontology.
Fixed#
mammos-entityEntity.todid not return a new entity in the requested units and instead used the default entity units.Entity.axis_label: unit inside parentheses instead of brackets.
0.1.0 – 2025-06-05#
Added#
mammos– 0.1.0Workflows for hard magnets and sensor shape optimization.
Ensures compatible software components are installed.
mammos-analysis– 0.1.0Calculation of macroscopic properties (Mr, Hc, BHmax) from a hysteresis loop.
Fitting of the linear segment of a hysteresis loop.
Calculation of temperature-dependent micromagnetic properties from atomistic spin dynamics simulations using Kuz’min equations.
mammos-dft– 0.3.0Database lookup functionality for a selection of pre-computed materials.
mammos-entity– 0.5.0Provides entities: quantities with links to the MaMMoS ontology (based on EMMO) by combining
mammos-unitsand EMMOntoPy.Helper functions to simplify creation of commonly required magnetic entities.
mammos-mumag– 0.6.0Finite-element hysteresis loop calculations.
Requires a separate installation of esys-escript.
mammos-spindynamics– 0.2.0Database lookup functionality for a selection of pre-computed materials.
mammos-units– 0.3.1Extension of astropy.units that allows working with quantities (units with values) containing additional units relevant for magnetism.