static float simulator.diffusionSolver.multigrid.MultigridUtils.computeNorm |
( |
double |
a[][][] | ) |
|
|
static |
compute the norm of matrix (exceptuating padding)
- Parameters
-
- Returns
- the norm of the matrix
static float simulator.diffusionSolver.multigrid.MultigridUtils.computeSum |
( |
float |
a[][][] | ) |
|
|
static |
- Parameters
-
- Returns
- the sum of all elements of a
static String simulator.diffusionSolver.multigrid.MultigridUtils.coreMatrixToString |
( |
float |
matrix[][][] | ) |
|
|
static |
Return values in a matrix (excluding boundaries) as a formatted string
- Parameters
-
matrix | to output as string |
- Returns
- string output
static String simulator.diffusionSolver.multigrid.MultigridUtils.coreMatrixToString |
( |
boolean |
matrix[][][] | ) |
|
|
static |
Return values in a matrix (excluding boundaries) as a formatted string. This method is used for boolean matrices. Values in output are 1 (for true) or 0 (for false)
- Parameters
-
matrix | to output as string |
- Returns
- string output
static String simulator.diffusionSolver.multigrid.MultigridUtils.matrixToString |
( |
float |
matrix[][][] | ) |
|
|
static |
Write the full matrix to a string
- Parameters
-
- Returns
- a string with the matrix (space separated values)
static float simulator.diffusionSolver.multigrid.MultigridUtils.max |
( |
float |
a[][][] | ) |
|
|
static |
Find maximum value in a 3D matrix
- Parameters
-
- Returns
- the maximum value in the matrix
static float simulator.diffusionSolver.multigrid.MultigridUtils.min |
( |
float |
a[][][] | ) |
|
|
static |
Find minimum value in a 3D matrix
- Parameters
-
- Returns
- the minimum value in the matrix
static int simulator.diffusionSolver.multigrid.MultigridUtils.order |
( |
int |
n | ) |
throws Exception |
|
static |
retuns log2(n - 1) * 0.5
- Parameters
-
- Returns
- order of multigrid
- Exceptions
-
static float [][] simulator.diffusionSolver.multigrid.MultigridUtils.readSquareMatrixFromFile |
( |
String |
fileName | ) |
|
|
static |
Create a 2D graphics
- Parameters
-
fileName | the file to parse |
- Returns
- 2D matrix
static void simulator.diffusionSolver.multigrid.MultigridUtils.restrict |
( |
SoluteGrid |
fineGrid, |
|
|
SoluteGrid |
coarseGrid |
|
) |
| |
|
static |
static void simulator.diffusionSolver.multigrid.MultigridUtils.restrict2 |
( |
SoluteGrid |
fineGrid, |
|
|
SoluteGrid |
coarsegrid |
|
) |
| |
|
static |
Restricts the data in matrix u to a grid one order coarser. Restriction excludes border points.
Restricts the data in matrix u to a grid one order coarser. Restriction excludes border points.
- Parameters
-
fineGrid | finer grid |
coarsegrid | coarser grid |
static void simulator.diffusionSolver.multigrid.MultigridUtils.restrictBoundaryLayer |
( |
SoluteGrid |
fineGrid, |
|
|
SoluteGrid |
coarseGrid, |
|
|
double |
bl[][][] |
|
) |
| |
|
static |
static void simulator.diffusionSolver.multigrid.MultigridUtils.restrictBoundaryLayer2 |
( |
SoluteGrid |
fineGrid, |
|
|
SoluteGrid |
coarseGrid, |
|
|
double |
bl[][][] |
|
) |
| |
|
static |
Restricts the data in matrix u to a grid one order coarser. Restriction excludes border points for points inside the boundary layer, defined by data in bl. Restriction excludes border points and points outside the boundary layer (where bl >= 0.5). Points outside boundary layer are skipped and, therefore, preserve their original value.
- Parameters
-
fineGrid | finer grid |
coarseGrid | coarser grid |
bl | boundary layer at coarser grid |
static void simulator.diffusionSolver.multigrid.MultigridUtils.setValues |
( |
double |
u[][][], |
|
|
double |
val |
|
) |
| |
|
static |
Set all entries of a matrix to value val
- Parameters
-
static void simulator.diffusionSolver.multigrid.MultigridUtils.setValues |
( |
boolean |
u[][][], |
|
|
boolean |
val |
|
) |
| |
|
static |
Set all entries of a boolean matrix to value val
- Parameters
-
static float [][][] simulator.diffusionSolver.multigrid.MultigridUtils.subtract |
( |
float |
a[][][], |
|
|
float |
b[][][] |
|
) |
| |
|
static |
Create matrix c = a - b
- Parameters
-
- Returns
- c = a-b
final String simulator.diffusionSolver.multigrid.MultigridUtils.SEPARATOR = " " |
|
static |
The documentation for this class was generated from the following file:
- /home/kieran/Dropbox/workspace/iDynoMiCS/src/simulator/diffusionSolver/multigrid/MultigridUtils.java