|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.fluids.dynamics.solver.GCCholeskyImpl
public class GCCholeskyImpl
Solver for systems of lineal ecuations through the conjugated gradient. The used preconditioner is a incomplete Cholesky. For more information about conjugated gradient and sparse matrices consult the program documentation.
The most important changes are the following:NavierStokes)
ConjugatedGradient| Field Summary | |
|---|---|
static java.lang.String |
VERSION
Version of the class. |
| Constructor Summary | |
|---|---|
GCCholeskyImpl(KernelADFC kadfc)
Default Constructor of the class. |
|
| Method Summary | |
|---|---|
double[] |
getB()
Returns the current column of independient terms. |
double |
getDeltaConvergence()
Returns the current delta of convergence of the solver. |
void |
resolve(double[] xk)
Solves the lineal system of ecuations by a preconditioning conjugated gradient. |
void |
setB(double[] v)
Assigns a new column of independient terms. |
void |
setCoeficientMatrix(Matrix m)
We use the current solver to resolve the defined system of ecuations by the indicated Matrix. |
void |
setDeltaConvergence(double delta)
Assigns the delta of convergence of the current solver. |
void |
setDirichlet(int[] nodes,
double[] values)
Split in two calls: a setNodesDirichlet() and
setValuesDirichlet(). |
void |
setNodesDirichlet(int[] nodes)
Indicates the indices of the new Dirichlet nodes. |
void |
setValuesDirichlet(double[] values)
Adjust the values of the Dirichlet nodes specified by setNodesDirichlet(). |
void |
setVerbose(boolean v)
Activates flag VERBOSE. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VERSION
| Constructor Detail |
|---|
public GCCholeskyImpl(KernelADFC kadfc)
kadfc - DOCUMENT ME!| Method Detail |
|---|
public void resolve(double[] xk)
resolve in interface ConjugatedGradientxk - DOCUMENT ME!public double[] getB()
getB in interface ConjugatedGradientpublic double getDeltaConvergence()
getDeltaConvergence in interface ConjugatedGradientpublic void setB(double[] v)
setB in interface ConjugatedGradientv - column of independient terms.public void setDeltaConvergence(double delta)
deltaConvergence, good for almost
all purposes.
Lower values of delta increase precision, but increase the calculation
time.
setDeltaConvergence in interface ConjugatedGradientdelta - nuevo delta of convergence.public void setCoeficientMatrix(Matrix m)
Matrix.
setCoeficientMatrix in interface ConjugatedGradientm - matrix of coeficientes of the system.public void setNodesDirichlet(int[] nodes)
setValuesDirichlet(). To change the
Dirichlet nodes implies generate a new Cholesky matrix associated with
the system.
nodes - vector of indexes.public void setValuesDirichlet(double[] values)
setNodesDirichlet().
values - values of the Dirichlet nodes.
public void setDirichlet(int[] nodes,
double[] values)
setNodesDirichlet() and
setValuesDirichlet().
setDirichlet in interface ConjugatedGradientnodes - indexes of Dirichlet nodes.values - values of Dirichlet nodes.public void setVerbose(boolean v)
VERBOSE.
v - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||