65 #include <solution/system_of_eqn/SystemOfEqn.h> 68 class LinearSOESolver;
96 void free_memory(
void);
107 virtual int solve(
void);
128 virtual int addA(
const Matrix &M,
const ID &loc,
double fact = 1.0) =0;
136 virtual int addB(
const Vector &V,
const ID &loc,
const double &fact= 1.0) =0;
141 virtual int setB(
const Vector &V,
const double &fact= 1.0) =0;
145 virtual void zeroA(
void) =0;
148 virtual void zeroB(
void) =0;
155 virtual double getRCond(
const char &norm=
'1');
157 virtual double normRHS(
void)
const= 0;
162 virtual void setX(
int loc,
double value) =0;
virtual void zeroB(void)=0
To zero the vector , i.e.
Float vector abstraction.
Definition: Vector.h:94
virtual int solve(void)
Computes the solution of the system of equations.
Definition: LinearSOE.cpp:224
virtual int setB(const Vector &V, const double &fact=1.0)=0
The LinearSOE object sets the vector b to be fact times the vector V.
virtual bool setSolver(LinearSOESolver *)
Sets the solver for the system of equations.
Definition: LinearSOE.cpp:145
virtual ~LinearSOE(void)
Destructor.
Definition: LinearSOE.cpp:214
virtual void zeroA(void)=0
To zero the matrix , i.e.
Linear system of equations.
Definition: LinearSOE.h:92
LinearSOE(SolutionStrategy *, int classTag)
Constructor.
Definition: LinearSOE.cpp:109
virtual int addA(const Matrix &M, const ID &loc, double fact=1.0)=0
The LinearSOE object assembles fact times the Matrix M into the matrix $A$.
FEM_ObjectBroker is is an object broker class for the finite element method.
Definition: FEM_ObjectBroker.h:151
Vector of integers.
Definition: ID.h:95
virtual int addB(const Vector &V, const ID &loc, const double &fact=1.0)=0
The LinearSOE object assembles fact times the Vector V into the vector $b$.
virtual int getNumEqn(void) const =0
Returns the number of equations in the system.
System of equations base class.
Definition: SystemOfEqn.h:90
virtual const Vector & getB(void) const =0
Return a const reference to the vector .
The Graph class provides the abstraction of a graph.
Definition: Graph.h:94
virtual int setSize(Graph &theGraph)=0
Determines and sets the size of the system.
virtual double getDeterminant(void)
Returns the determinant of the system matrix.
Definition: LinearSOE.cpp:228
virtual double getRCond(const char &norm='1')
Returns the reciprocal of the condition number.
Definition: LinearSOE.cpp:238
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Base class of the solvers for linear system of equations.
Definition: LinearSOESolver.h:87
LinearSOESolver * getSolver(void)
Returns a pointer to the solver.
Definition: LinearSOE.cpp:243
Matrix of floats.
Definition: Matrix.h:111
int setSolverSize(void)
invoke setSize() on the Solver
Definition: LinearSOE.cpp:247
virtual void setX(int loc, double value)=0
The LinearSOE object is responsible for setting .
virtual const Vector & getX(void) const =0
Return a const reference to the vector .
virtual double normRHS(void) const =0
Return the 2-norm of the vector .