handy-diffusion 1.0.3 → 1.0.5

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/ADI.js CHANGED
@@ -17,7 +17,6 @@ export const setADIProperties = (
17
17
  diffusionCoefficient,
18
18
  deltaX,
19
19
  deltaT,
20
- decayRates = 0
21
20
  ) => {
22
21
  WIDTH = width;
23
22
  HEIGHT = height;
package/index.d.ts CHANGED
@@ -115,4 +115,8 @@ export function thomasAlgorithm(
115
115
  b: Float64Array | number[],
116
116
  c: Float64Array | number[],
117
117
  d: Float64Array | number[]
118
- ): Float64Array;
118
+ ): Float64Array;
119
+
120
+ export function updateSinksAndSources(
121
+ sinks: Float64Array | number[],
122
+ sources: Float64Array | number[]): void;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Import and re-export ADI functions
2
- export { ADI, setADIProperties } from './ADI.js';
2
+ export { ADI, setADIProperties , updateSinksAndSources} from './ADI.js';
3
3
 
4
4
  // Import and re-export Crank-Nicolson functions
5
5
  export { CrankNicolson, setCNProperties } from './CrankNicolson.js';
@@ -8,4 +8,8 @@ export { CrankNicolson, setCNProperties } from './CrankNicolson.js';
8
8
  export { analyticSteadyState } from './analyticSolution.js';
9
9
 
10
10
  // Import and re-export effective influence
11
- export { efectiveInfluence } from './effective.js';
11
+ export { efectiveInfluence } from './effective.js';
12
+
13
+ // Import and re-export thomas algorithm
14
+ export { thomasAlgorithm } from './thomasAlgorithm.js';
15
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "handy-diffusion",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "algorithms to simulate diffusion",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",