driftlet 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -76
- package/docs/device.md +61 -26
- package/docs/kit.md +71 -4
- package/docs/logo-dark.svg +3 -2
- package/docs/logo.svg +3 -2
- package/docs/reliability.md +60 -3
- package/docs/statistics.md +10 -0
- package/llms.txt +622 -391
- package/package.json +1 -1
- package/src/channels.js +27 -4
- package/src/checks.js +5 -1
- package/src/describe.js +1 -1
- package/src/device.js +112 -14
- package/src/index.js +6 -1
- package/src/kit.js +1 -0
- package/src/particles.js +331 -0
- package/src/solution.js +42 -4
- package/src/solver.js +181 -50
- package/src/stack.js +6 -4
- package/src/types.js +2 -1
- package/types/channels.d.ts +14 -3
- package/types/checks.d.ts +2 -1
- package/types/kit.d.ts +1 -0
- package/types/particles.d.ts +42 -0
- package/types/solution.d.ts +1 -0
- package/types/solver.d.ts +8 -2
- package/types/stack.d.ts +6 -5
- package/types/types.d.ts +5 -0
package/types/stack.d.ts
CHANGED
|
@@ -31,16 +31,17 @@ export function drive(d: any, path: any): any;
|
|
|
31
31
|
*/
|
|
32
32
|
export function ohmic(d?: number, carriers?: string[]): any;
|
|
33
33
|
/**
|
|
34
|
-
* A bath: a neutral composition `c` (mol/m³) held at the contact
|
|
35
|
-
*
|
|
36
|
-
*
|
|
34
|
+
* A bath: a neutral composition `c` (mol/m³) held at the contact. With a `reference`, the charged
|
|
35
|
+
* species a reference electrode would sense (Cl⁻ for Ag/AgCl), its levels are referred to that
|
|
36
|
+
* species, which is the terminal. Without one, `bath(c, drive)`, the terminal voltage is the
|
|
37
|
+
* bath's φ: an ideal salt bridge, the convention of membrane potentials.
|
|
37
38
|
* @param {Record<string, number>} c
|
|
38
|
-
* @param {string} reference
|
|
39
|
+
* @param {string | number | object} [reference] the reference species, or the drive
|
|
39
40
|
* @param {number | object} [drive]
|
|
40
41
|
* @param {{ offset?: number }} [opts] where the reference species sits relative to the terminal
|
|
41
42
|
* voltage, V_ref = V + offset (V)
|
|
42
43
|
*/
|
|
43
|
-
export function bath(c: Record<string, number>, reference
|
|
44
|
+
export function bath(c: Record<string, number>, reference?: string | number | object, d?: number, { offset }?: {
|
|
44
45
|
offset?: number;
|
|
45
46
|
}): any;
|
|
46
47
|
/**
|
package/types/types.d.ts
CHANGED
|
@@ -264,6 +264,11 @@ export type ContactSpeciesLink = "blocked" | "equilibrium" | {
|
|
|
264
264
|
type: "exchange";
|
|
265
265
|
k: number;
|
|
266
266
|
mu: number;
|
|
267
|
+
} | {
|
|
268
|
+
type: "velocity";
|
|
269
|
+
v: number;
|
|
270
|
+
offset?: number;
|
|
271
|
+
mu?: number;
|
|
267
272
|
};
|
|
268
273
|
/**
|
|
269
274
|
* 'bulk': the end node is plain bulk (locally neutral, no double layer); 'neutral': no charge at
|