iws.direct_entries.DirectEntry— a flat dict of values you supply yourself.iws.direct_entries.*function-schema subclasses (e.g.LandesfeindElectrolyte) — pre-built parameterisations from the literature.
Custom DirectEntry
parameters accepts floats, arrays, and pybamm-serialisable symbols.
Callable parameters via pybamm.ParameterValues
For parameters that are callables — for example, concentration- or temperature-dependent interpolants — wrap them in a pybamm.ParameterValues and pass that. Its serialisation converts each callable into the symbolic form the server reconstructs on the other side. A raw dict containing callables is not auto-serialised; you must wrap it explicitly.
(c_e, T) (or the relevant pybamm input variables) — capture any extra inputs (lookup arrays, names) via closure rather than default kwargs, since defaults are inferred as function inputs during serialisation and break reconstruction.
Electrolyte direct entries
system must be one of "EC:DMC (1:1)", "EC:EMC (3:7)", or "EMC:FEC (19:1)".
Building electrolyte transport from a material dataset
If you have measured electrolyte transport properties (conductivity, diffusivity, transference number, thermodynamic factor) versus concentration stored as a material property dataset,client.electrolyte.transport_from_dataset() turns the dataset into a pybamm.ParameterValues of concentration-dependent functions that you can drop straight into a DirectEntry.
Each property is represented in one of two ways, chosen per-parameter:
"interpolant"(default) — a tabulatedpybamm.Interpolantof the measured points with linear extrapolation."landesfeind"— the isothermal Landesfeind & Gasteiger (2019) functional form for that property, fitted to the measured points. Unlike a tabulated interpolant, the fitted conductivity and diffusivity forms stay positive and finite below the lowest measured concentration, which keeps high-rate DFN solves stable when the electrolyte depletes near an electrode.
Arguments
The
"landesfeind" form is available for Electrolyte conductivity [S.m-1], Electrolyte diffusivity [m2.s-1], Cation transference number, and Thermodynamic factor. The dataset is treated as isothermal — each fitted form depends only on concentration.
Piecewise interpolant direct entries
For SOC- or temperature-dependent parameters, useiws.direct_entries.PiecewiseInterpolation1D or PiecewiseInterpolation2D. See Calculations → Piecewise.
Fitting coefficients from a direct entry
The transport-property coefficients insideLandesfeindElectrolyte are exposed as named parameters precisely so they can be overridden as fit unknowns. Put the entry into a pipeline and reference the same parameter names in a downstream DataFit — the published values act as the base and the optimizer searches over the overridden ones.
Electrolyte direct entries (theory)
Physics behind the four transport properties.
Pipelines overview
How direct entries fit into the wider pipeline.