On 5/30/24 09:55, Najwa Alshehri wrote:
The problem arises when comparing the inf-sup constants obtained using Matlab
and dealii (solving on the same mesh ):
1. Matlab: Using the "eig" solver, the inf-sup constant decays to zero as the
mesh is refined.
2. deal.II: Using the "ArpackSolver", the inf-sup constant is bounded away
from zero.
The discrepancy is puzzling, as both methods should give consistent results.
To illustrate this issue, I have attached a figure comparing the two results
and included in this post the two data files obtained from Matlab and deal.II.
I would greatly appreciate any insights or suggestions on what might be
causing the discrepancy.
Najwa:
my first question would be if your matrices are the same. If they are not,
then you should not expect eigenvalues to be the same. So what happens if you
output the relevant matrices from both codes on, say, a 2x2 mesh? On a coarse
enough mesh, you can often even compute the matrix by hand on a piece of paper
within half an hour, so that if the matrices you output are different, you can
figure out which one is right and which one is not.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/f62828d7-5cff-4ae4-b912-ad7b3b780730%40colostate.edu.