64 #include <solution/system_of_eqn/SystemOfEqn.h> 67 class LinearSOESolver;
95 void free_memory(
void);
106 virtual int solve(
void);
127 virtual int addA(
const Matrix &M,
const ID &loc,
double fact = 1.0) =0;
135 virtual int addB(
const Vector &V,
const ID &loc,
const double &fact= 1.0) =0;
140 virtual int setB(
const Vector &V,
const double &fact= 1.0) =0;
143 virtual void zeroA(
void) =0;
145 virtual void zeroB(
void) =0;
153 virtual double normRHS(
void)
const= 0;
158 virtual void setX(
int loc,
double value) =0;
virtual void zeroB(void)=0
To zero the vector $b$, i.e. set all the components of $b$ to $0$.
Float vector abstraction.
Definition: Vector.h:93
virtual int solve(void)
Computes the solution of the system of equations.
Definition: LinearSOE.cpp:217
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:143
virtual ~LinearSOE(void)
Destructor.
Definition: LinearSOE.cpp:207
LinearSOE(AnalysisAggregation *, int classTag)
Constructor.
Definition: LinearSOE.cpp:107
Solution procedure for the finite element problem.
Definition: AnalysisAggregation.h:89
virtual void zeroA(void)=0
To zero the matrix $A$, i.e. set all the components of $A$ to $0$.
Linear system of equations.
Definition: LinearSOE.h:91
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:145
Vector of integers.
Definition: ID.h:93
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:89
virtual const Vector & getB(void) const =0
Return a const reference to the vector $b$.
The Graph class provides the abstraction of a graph.
Definition: Graph.h:93
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:221
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Base class of the solvers for linear system of equations.
Definition: LinearSOESolver.h:86
LinearSOESolver * getSolver(void)
Returns a pointer to the solver.
Definition: LinearSOE.cpp:226
Matrix of floats.
Definition: Matrix.h:108
int setSolverSize(void)
invoke setSize() on the Solver
Definition: LinearSOE.cpp:230
virtual void setX(int loc, double value)=0
The LinearSOE object is responsible for setting $x(loc) = value$.
virtual const Vector & getX(void) const =0
Return a const reference to the vector $x$.
virtual double normRHS(void) const =0
Return the 2-norm of the vector $x$.