![]() |
![]() |
![]() |
Here is a simple example to calculate eigenvalues and eigenvectors of an elliptic problem. We compute some eigenvalues of the Laplace operator using the Bathe subspace iteration method..
IPF data(argv[1]); int nb = data.getInteger("nb"); Mesh ms(data.getMeshFile()); ms.removeImposedDOF(); |
Laplace2DT3 eq(ms); eq.solveEigenProblem(nb); |
cout << "Nb. of iterations: " << eq.getEigenSolver().getNbIter() << endl; Vect |
<?xml version="1.0" encoding="ISO-8859-1" ?> <OFELI_File> <info> <title></title> <date></date> <author></author> </info> <Project name="eigen"> <mesh_file value="square-20.m" /> <parameter label="nb" value="2" /> <plot_file value="test.ev1" /> <plot_file value="test.ev2" /> </Project> </OFELI_File> |
In summary, this file looks mainly like the one in the previous example.
![]() |
![]() |
![]() |