eigSolvers Code
Compute eigenvalues and eigenvectors for PDEs in complex geometry
Brought to you by:
wdhenshaw
| File | Date | Author | Commit |
|---|---|---|---|
| bin | 2024-09-15 |
|
[58ead7] wdh |
| cmd | 2024-09-15 |
|
[58ead7] wdh |
| doc | 2024-09-15 |
|
[58ead7] wdh |
| matlab | 2024-09-15 |
|
[58ead7] wdh |
| obj | 2024-09-15 |
|
[58ead7] wdh |
| results | 2024-09-15 |
|
[58ead7] wdh |
| src | 2024-09-15 |
|
[58ead7] wdh |
| tests | 2024-08-26 |
|
[0e191e] wdh |
| Makefile | 2024-09-15 |
|
[ff104c] wdh |
| README | 2024-09-15 |
|
[45d6e0] wdh |
Compute Eigenvalues and EigenVectors of PDE problems
----------------------------------------------------
Getting started:
To clone a new version of eigSolvers from sourceforge (replace wdhenshaw by your sourceforge account name)
git clone https://git.code.sf.net/p/eigsolvers/code eigSolvers (*CHECK ME*)
OR if you have an account on sourceForge you can use
git clone ssh://USERNAME@git.code.sf.net/p/eigsolvers/code eigSolvers
where USERNAME is your sourceForge account name. for example:
git clone ssh://wdhenshaw@git.code.sf.net/p/eigsolvers/code eigSolvers
>> enter sourceforge password
Set the following in your .cshrc (change the locations of the libraries as appropriate)
setenv Overture /home/henshw/Overture.g
setenv APlusPlus /home/henshw/software/AppPpp-0.8.3/A++/install
setenv PPlusPlus /home/henshw/software/AppPpp-0.8.3/A++/install
setenv PETSC_DIR /home/henshw/software/petsc-3.18.2-serial
setenv PETSC_ARCH PETSC_ARCH=linux-gnu-opt
setenv PETSC_LIB /home/henshw/software/petsc-3.18.2-serial/linux-gnu-opt/lib
setenv SLEPC_DIR /home/henshw/software/slepc-3.18.2-serial
setenv LAPACK /usr/lib/x86_64-linux-gnu
setenv OvertureGridDirectories /home/henshw/Overture.g/sampleGrids:/home/henshw/grids
alias plotStuff /home/henshw/Overture.g/bin/plotStuff
alias ogen /home/henshw/Overture.g/bin/ogen
Type 'make' to compile and build bin/genEigs (you will need Overture to be installed and PETSc)
Example:
Compute 64 eigenvalues and eigenvectors of the Laplacian on a square (grid square32.odrer2.hdf created with ogen)
bin/genEigs -noplot eigs.cmd -problem=laplace -eigCase=square -g=square32.order2.hdf -eigOption=1 -discreteEigenvalues=1 -eps_s=largest_magnitude -tol=1.0e-12 -bc1=d -show=square32O2Ev64.show -numEigenValues=64 -go=go
Then use
plotStuff square32O2Ev64.show to view eigenvectors
See cmd/memo for more sample commands
NOTE:
To push changes used:
git push origin HEAD:master