handy-diffusion 1.0.5 → 1.0.6

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.
Files changed (3) hide show
  1. package/ADI.js +0 -5
  2. package/index.d.ts +0 -2
  3. package/package.json +1 -1
package/ADI.js CHANGED
@@ -73,16 +73,11 @@ const updateMainDiagonalYstep = (xCoord) => {
73
73
 
74
74
  export const ADI = (
75
75
  concentrationData,
76
- sources,
77
76
  totalNumberOfIterations,
78
77
  allowNegativeValues = false
79
78
  ) => {
80
79
  let reachedNegativeValue = false;
81
80
 
82
- for (let idx = 0; idx < WIDTH * HEIGHT; idx++) {
83
- scaledSources[idx] = sources[idx] * halfDeltaT;
84
- }
85
-
86
81
  const currentConcentrationData = concentrationData;
87
82
 
88
83
  for (let iteration = 0; iteration < totalNumberOfIterations; iteration++) {
package/index.d.ts CHANGED
@@ -9,7 +9,6 @@
9
9
  * @param diffusionCoefficient - Diffusion coefficient
10
10
  * @param deltaX - Spatial step size
11
11
  * @param deltaT - Time step size
12
- * @param decayRate - Decay rate constant (default: 0)
13
12
  */
14
13
  export function setADIProperties(
15
14
  width: number,
@@ -17,7 +16,6 @@ export function setADIProperties(
17
16
  diffusionCoefficient: number,
18
17
  deltaX: number,
19
18
  deltaT: number,
20
- decayRate?: number
21
19
  ): void;
22
20
 
23
21
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "handy-diffusion",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "algorithms to simulate diffusion",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",