xc
|
A ProfileSPDLinSubstrSolver object will perform the numerical substructuring operations on a ProfileSPDLinSOE object. More...
#include <ProfileSPDLinSubstrSolver.h>
Public Member Functions | |
int | solve (void) |
Computes the solution. More... | |
int | condenseA (int numInt) |
Causes the condenser to form \(A_{ee}^*= A_{ee} -A_{ei} A_{ii}^{-1} A_{ie}\), where \(A_{ii}\) is the first numInt rows of the \(A\) matrix. More... | |
int | condenseRHS (int numInt, Vector *v=0) |
Causes the condenser to form \(B_e^*= B_e - A_{ei} A_{ii}^{-1} B_i\), where \(A_{ii}\) is the first numInt rows of \(A\). More... | |
int | computeCondensedMatVect (int numInt, const Vector &u) |
Causes the condenser to form \(A_{ee} u\). | |
const Matrix & | getCondensedA (void) |
Returns the contents of \(A_{ee}\) as a matrix. | |
const Vector & | getCondensedRHS (void) |
Return the contents of \(B_e\) as a Vector. | |
const Vector & | getCondensedMatVect (void) |
Return the contents of the last call to {computeCondensedMatVect()}. More... | |
int | setComputedXext (const Vector &) |
Sets the computed value of the unknowns in \(X_e\) corresponding to the external equations to u . More... | |
int | solveXint (void) |
To compute the internal equation numbers \(X_i\) given the value set for the external equations in the last call to setComputedXext(). More... | |
int | setSize (void) |
Sets the number of equations. More... | |
int | getClassTag () const |
int | sendSelf (Communicator &) |
Send the object. More... | |
int | recvSelf (const Communicator &) |
Receive the object. More... | |
![]() | |
double | getDeterminant (void) |
Returns the determinant. | |
virtual int | factor (int n) |
virtual int | setProfileSOE (ProfileSPDLinSOE &theSOE) |
Sets the system of equations to solve. | |
![]() | |
ProfileSPDLinDirectBase (int classTag, double tol) | |
Constructor. More... | |
![]() | |
virtual bool | setLinearSOE (ProfileSPDLinSOE &theSOE) |
Sets the system of equations to solve. | |
![]() | |
virtual | ~LinearSOESolver (void) |
Destructor. | |
![]() | |
virtual double | getRCond (const char &) |
Estimates the reciprocal of the condition number of the matrix A, in either the 1-norm or the infinity-norm, using the LU factorization computed by DGBTRF. More... | |
![]() | |
MovableObject (int classTag, int dbTag) | |
Constructor. More... | |
MovableObject (int classTag) | |
Constructor. More... | |
MovableObject (const MovableObject &) | |
Copy constructor. Doesn't copy the dbTag. | |
MovableObject & | operator= (const MovableObject &) |
Assignment operator. Doesn't copy the dbTag. | |
int | getClassTag (void) const |
Return the class identifier. | |
int | getDbTag (void) const |
Return the object identifier in the database. | |
int | getDbTag (Communicator &) |
Return the object identifier in the database. | |
void | setDbTag (int dbTag) |
Sets the object identifier in the database. | |
void | setDbTag (Communicator &) |
Sets the object identifier in the database if not already set. More... | |
virtual int | setParameter (const std::vector< std::string > &argv, Parameter ¶m) |
Sets the value param to the parameter argv . | |
virtual int | updateParameter (int parameterID, Information &info) |
Updates the parameter identified by parameterID with info . | |
virtual int | activateParameter (int parameterID) |
Activates the parameter identified by parameterID . | |
virtual int | setVariable (const std::string &variable, Information &) |
Set the value of the variable idenfified by var . | |
virtual int | getVariable (const std::string &variable, Information &) |
Return the value of the variable idenfified by var . | |
![]() | |
DistributedBase (void) | |
Constructor. | |
virtual | ~DistributedBase (void) |
Destructor. | |
virtual DbTagData & | getDbTagData (void) const |
Returns a vector to store class dbTags. | |
const int & | getDbTagDataPos (const int &i) const |
Returns the data at the i-th position. | |
void | setDbTagDataPos (const int &i, const int &v) |
Sets the data at the i-th position. | |
void | inicComm (const int &dataSize) const |
Initializes communication. | |
![]() | |
CommandEntity (CommandEntity *owr=nullptr) | |
Default constructor. | |
CommandEntity * | Owner (void) |
Return a pointer to the object owner. | |
const CommandEntity * | Owner (void) const |
Return un puntero al objeto propietario de ESTE. | |
const StandardOutputWrapper & | getStandardOutputWrapper (void) const |
Return the regular output stream wrapper. | |
StandardOutputWrapper & | getStandardOutputWrapper (void) |
Return the regular output stream wrapper. | |
const std::string & | getLogFileName (void) const |
Returns log file name. | |
void | setLogFileName (const std::string &) |
Sets log file name. | |
const std::string & | getErrFileName (void) const |
Returns err file name. | |
void | setErrFileName (const std::string &) |
Sets error file name. | |
const std::string & | getOutputFileName (void) const |
Returns regular output file name. | |
void | setOutputFileName (const std::string &) |
Sets regular output file name. | |
boost::python::object | evalPy (boost::python::object dict, const std::string &) |
Return the Python object that results from evaluating the argument. | |
boost::python::object | execPy (boost::python::object dict, const std::string &) |
Return the Python objects that results from executing the code in the string argument. | |
boost::python::object | execFilePy (boost::python::object dict, const std::string &) |
Return the Python object that results from executing the code in the file. | |
![]() | |
EntityWithProperties (EntityWithProperties *owr=nullptr) | |
Default constructor. | |
void | clearPyProps (void) |
Clear python properties map. | |
bool | hasPyProp (const std::string &) |
Returns true if property exists. | |
boost::python::object | getPyProp (const std::string &str) |
Return the Python object with the name being passed as parameter. | |
void | setPyProp (std::string str, boost::python::object val) |
Sets/appends a value tho the Python object's dictionary. | |
void | copyPropsFrom (const EntityWithProperties &) |
Copy the properties from the argument. | |
boost::python::list | getPropNames (void) const |
Return the names of the object properties weightings. | |
const PythonDict & | getPropertiesDict (void) const |
Return a std::map container with the properties of the object. | |
boost::python::dict | getPyDict (void) const |
Return a Python dictionary containing the object members values. | |
void | setPyDict (const boost::python::dict &) |
Set the values of the object members from a Python dictionary. | |
![]() | |
EntityWithOwner (EntityWithOwner *owr=nullptr) | |
Default constructor. | |
EntityWithOwner (const EntityWithOwner &) | |
Copy constructor. | |
EntityWithOwner & | operator= (const EntityWithOwner &) |
Assignment operator. | |
virtual bool | operator== (const EntityWithOwner &) const |
Comparison operator. | |
virtual | ~EntityWithOwner (void) |
Virtual destructor. | |
virtual std::string | getClassName (void) const |
Returns demangled class name. | |
void | set_owner (EntityWithOwner *owr) |
Assigns the owner of the object. | |
EntityWithOwner * | Owner (void) |
const EntityWithOwner * | Owner (void) const |
Protected Member Functions | |
ProfileSPDLinSubstrSolver (double tol=1.0e-12) | |
virtual LinearSOESolver * | getCopy (void) const |
Virtual constructor. | |
![]() | |
ProfileSPDLinDirectSolver (double tol=1.0e-12) | |
Constructor. More... | |
![]() | |
ProfileSPDLinSolver (int classTag) | |
Constructor. More... | |
virtual bool | setLinearSOE (LinearSOE *theSOE) |
Sets the system of equations to solve. | |
![]() | |
LinearSOESolver (int classTag=0) | |
Constructor. More... | |
![]() | |
Solver (int classTag) | |
Constructor. More... | |
![]() | |
template<class T > | |
void | string_to (T &, const std::string &) const |
![]() | |
bool | isEqual (const EntityWithProperties &) const |
Return true if both objects are equal. | |
![]() | |
virtual bool | isEqual (const EntityWithOwner &) const |
Return true if both objects are equal. | |
![]() | |
DomainSolver (int classTag) | |
Constructor. More... | |
Friends | |
class | FEM_ObjectBroker |
Additional Inherited Members | |
![]() | |
typedef std::map< std::string, boost::python::object > | PythonDict |
![]() | |
static void | resetStandardOutput (void) |
Reset the standard output streams to its defaults buffers. | |
![]() | |
static int | getVerbosityLevel (void) |
Get the value of the verbosity level. | |
static void | setVerbosityLevel (const int &) |
Set the value of the verbosity level. | |
![]() | |
static CommandEntity * | entcmd_cast (boost::any &data) |
![]() | |
double | minDiagTol |
int | size |
ID | RowTop |
std::vector< double * > | topRowPtr |
Vector | invD |
![]() | |
ProfileSPDLinSOE * | theSOE |
![]() | |
static int | verbosity = 1 |
Object that owns THIS ONE. More... | |
A ProfileSPDLinSubstrSolver object will perform the numerical substructuring operations on a ProfileSPDLinSOE object.
|
virtual |
Causes the condenser to form \(A_{ee}^*= A_{ee} -A_{ei} A_{ii}^{-1} A_{ie}\), where \(A_{ii}\) is the first numInt
rows of the \(A\) matrix.
The original \(A\) is changed as a result. \(A_{ee}^*\) is to be stored in \(A_{ee}\).
purpose: A procedure which takes the stifness matrix A= | A11 A12 | | A21 A22 | and does the following:
1) replaces A11 with D1 & U11, where A11= U11'*D1*U11
2) replaces A12 with M, where M= inv(U11')*A12
3) replaces A22 with Kdash, where Kdash= A22 - A21*inv(A11)*A12 = A22 - M'*inv(D1)*M
inputs: K[] - the nxn matrix symmetric matrix Profile[] - a vector outlining the profile of K n - the size of the system in - the no of internal dof (<n)
outputs: int 0 if no error -1 if diag term < MINDIAG -2 if diag tem becomes <= 0
Implements XC::DomainSolver.
|
virtual |
Causes the condenser to form \(B_e^*= B_e - A_{ei} A_{ii}^{-1} B_i\), where \(A_{ii}\) is the first numInt
rows of \(A\).
The original \(B\) is changed as a result. \(B_e^*\) is to be stored in \(B_e\).
purpose: A procedure which takes the stifness matrix A= | D1 M | | A21 A22* |
and load vector B= | B1 | | B2 | does the following:
1) replaces R1 with R1*, where R1*= inv(D11)inv(U11')R1
2) replaces R2 with R2*, where R2*= R2 - A21*inv(A11)*R1 = R2 - M'R1
inputs: A[nxn] - the nxn matrix symmetric matrix STORED AS ROW VECTOR IN COL MAJOR ORDER R[n] - the nX1 load vector n - the size of the system in - the no of internal dof (<n)
outputs: int 0 if no error -1 if diag term < MINDIAG -2 if diag tem becomes <= 0
Implements XC::DomainSolver.
|
virtual |
Return the contents of the last call to {computeCondensedMatVect()}.
Implements XC::DomainSolver.
|
virtual |
Receive the object.
Each object has to receive the data needed to be able to recreate itself in the new process after it has been sent through cp
. If the object is an aggregation containing other objects, new objects of the correct type can be constructed using #theBroker. To return 0 if successful or a -1 if not.
Reimplemented from XC::ProfileSPDLinDirectSolver.
|
virtual |
Send the object.
Each object has to send the data needed to be able to reproduce that object in a remote process. The object uses the methods provided by cp
object to send the data to another channel at the remote actor, the address of the channel is set before this method is called. An object of similar type at the remote actor is invoked with a receiveSelf() to receive the data. Returns 0 if successful (successful in that the data got to the channel), or a - if no data was sent.
Reimplemented from XC::ProfileSPDLinDirectSolver.
|
virtual |
Sets the computed value of the unknowns in \(X_e\) corresponding to the external equations to u
.
The number of external equations is given by the size of vector \(u\).
Implements XC::DomainSolver.
|
virtual |
Sets the number of equations.
This is invoked by the LinearSOE
object when setSize() has been invoked on it. Solvers may sometimes need to store additional data that needs to be updated if the size of the system of equation changes.
Reimplemented from XC::ProfileSPDLinDirectSolver.
|
virtual |
Computes the solution.
The solver first copies the B vector into X. The solve process changes $A$ and $X$.
Reimplemented from XC::ProfileSPDLinDirectSolver.
|
virtual |
To compute the internal equation numbers \(X_i\) given the value set for the external equations in the last call to setComputedXext().
purpose: A procedure which takes the stifness matrix K= | D1 M | | K21 K22* |
and load/displ vector R= | R1* | | r2 | does the following:
1) replaces R1* with r1, where r1= inv(K11){R1 - K12*r2} = inv(D11)inv(U11'){(D1)R1* - Mr2}
inputs: K[nxn] - the nxn matrix symmetric matrix STORED AS ROW VECTOR IN COL MAJ ORD R[n] - the nX1 load vector n - the size of the system in - the no of internal dof (<n)
Implements XC::DomainSolver.