Description
Class for using a Matlab linear solver from Chrono programs.
#include <ChSolverMatlab.h>


Public Member Functions | |
ChSolverMatlab (ChMatlabEngine &me) | |
void | SetEngine (ChMatlabEngine *me) |
Set the Matlab engine. | |
virtual bool | SolveRequiresMatrix () const override |
Indicate whether or not the Solve() phase requires an up-to-date problem matrix. | |
virtual double | Solve (ChSystemDescriptor &sysd) override |
Solve using the Matlab default direct solver (as in x=A\b) | |
virtual void | ArchiveOut (ChArchiveOut &archive_out) override |
Method to allow serialization of transient data to archives. | |
virtual void | ArchiveIn (ChArchiveIn &archive_in) override |
Method to allow de serialization of transient data from archives. | |
![]() | |
virtual Type | GetType () const |
Return type of the solver. | |
virtual ChIterativeSolver * | AsIterative () |
Downcast to ChIterativeSolver. | |
virtual ChDirectSolverLS * | AsDirect () |
Downcast to ChDirectSolver. | |
virtual bool | Setup (ChSystemDescriptor &sysd) |
This function does the setup operations for the solver. | |
void | SetVerbose (bool mv) |
Set verbose output from solver. | |
void | EnableWrite (bool val, const std::string &frame, const std::string &out_dir=".") |
Enable/disable debug output of matrix, RHS, and solution vector. | |
Protected Member Functions | |
virtual bool | IsIterative () const override |
Return true if iterative solver. | |
virtual bool | IsDirect () const override |
Return true if direct solver. | |
![]() |
Protected Attributes | |
ChMatlabEngine * | mengine |
![]() | |
bool | verbose |
bool | write_matrix |
std::string | output_dir |
std::string | frame_id |
Additional Inherited Members | |
![]() | |
enum class | Type { PSOR , PSSOR , PJACOBI , PMINRES , BARZILAIBORWEIN , APGD , ADMM , SPARSE_LU , SPARSE_QR , PARDISO_MKL , MUMPS , GMRES , MINRES , BICGSTAB , CUSTOM } |
Available types of solvers. More... | |
Member Function Documentation
◆ ArchiveIn()
|
overridevirtual |
Method to allow de serialization of transient data from archives.
Reimplemented from chrono::ChSolver.
◆ ArchiveOut()
|
overridevirtual |
Method to allow serialization of transient data to archives.
Reimplemented from chrono::ChSolver.
◆ IsDirect()
|
inlineoverrideprotectedvirtual |
Return true if direct solver.
Implements chrono::ChSolver.
◆ IsIterative()
|
inlineoverrideprotectedvirtual |
Return true if iterative solver.
Implements chrono::ChSolver.
◆ Solve()
|
overridevirtual |
Solve using the Matlab default direct solver (as in x=A\b)
Implements chrono::ChSolver.
◆ SolveRequiresMatrix()
|
inlineoverridevirtual |
Indicate whether or not the Solve() phase requires an up-to-date problem matrix.
As typical of direct solvers, the Pardiso solver only requires the matrix for its Setup() phase.
Implements chrono::ChSolver.
The documentation for this class was generated from the following files:
- C:/M/B/src/chrono-9.0.1/src/chrono_matlab/ChSolverMatlab.h
- C:/M/B/src/chrono-9.0.1/src/chrono_matlab/ChSolverMatlab.cpp