|
[Sponsors] |
Inner product of a tensor and a vector in fvScalarMatrix |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 6, 2014, 15:39 |
Inner product of a tensor and a vector in fvScalarMatrix
|
#1 |
New Member
Xiangyu Gao
Join Date: Sep 2013
Location: West Lafayette, IN, USA
Posts: 29
Rep Power: 13 |
Hi, everyone!
Now I want to express the equation below in fvScalarMatrix, where uj is a velocity vector, p is the pressure, and M is a constant Mach Number. I wrote LHS of this equation in fvScalarMatrix as Code:
fvm::ddt(p)+U & fvc::grad(p)+ fvc::div(U/M/M) I think something must be wrong with my expression in fvScalarMatrix. Can anyone help me correct it? I also want to know how to treat grad(p) implicitly. I have searched in the forum about implicit gradient for a long time, but I still cannot get the answer. Billions of thanks, Xiangyu |
|
October 13, 2014, 11:08 |
|
#2 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 17 |
Hi,
Try: fvm::ddt(p)+U & fvc::grad(p)+ pow(M,-2)*fvc::gGrad(U) Pay attention for the dimensions too. Good Luck ! Quote:
|
|
|
|