Create Matrix for pressure correction
i try to create a Matrix UEqn for the correction Loop.
The Equatin is:
U and k are vectors and T and Ra are scalars.
Is there a way to create a Matrix like
but this doesnt work:mad:
Thanks for Help!
You need to use fvm::Sp(U) (or fvm::S for the linear source term, so something like:
fvm::Sp(U) - Ra*T*k
should work. Note that this is just a diagonal matrix.
|All times are GMT -4. The time now is 03:26.|