addCmptAvBoundaryDiag method
Hi FOAMers, I would like to do a question about the A() method in fvMatrix class. From the theory we know it represents the values of matrix diagonal coefficients, which, I suppose, have the contribution of BC's. Usually, before linear systems are solved BC contributions are added to diagonal coeffs. via addBoundaryDiag method so you can recover the same matrix as you can assemble by hand. Nevertheless is you take this coeffs. they will be different of those you can obtain by the A() method. Checking the code in fvMatrix.C we have, for A()
Code:
00638 template<class Type> Code:
00605 template<class Type> Code:
00134 template<class Type> My questions are: 1. Why "true" BC influenced diagonal coeffs aren't used? 2. Why the contributions are calculated this way instead? All help will be appreciated. Regards. |
Any clues??
|
maybe because the internalCoeff are (1,1,1) or (0,0,0),and the Ap is the same for U,V,W equation,
so using cmptAv is reasonable. |
Hi!
Facing the same problem (same in the H() operator). Anyone knows it? Thanks! Regő |
All times are GMT -4. The time now is 06:03. |