How about I write U by reconstruct(phi)?
2 Attachment(s)
Hi Foamers!
Wonderful day! lol, AFAWK, in the algorithm, we can get the U after solving possion equation via this equation: U = HbyA - rAU*fvc::grad(p); In OpenFOAM, We all know that phi is divergence free indtead of U, Well, how about writing U by myU = fvc::reconstruct(phi)? Shouldn't it be more precise? I made a test on cavity, there is a little difference but not much. |
Hello guys??
|
Any ideas?
|
Shouldn't reconstruct just (linear) interpolate the face centered values of (in this case) phi to the cell centers?
Do you get the same dimensions for myU and U? |
Quote:
|
How can they both have the same dimensions?
As an example: reconstruct(T) would give me the linear interpolated cell centered temperature values from face centered values. That will not affect the units or am I wrong with this? If not, why would you get the same dimensions for myU and U? |
Quote:
Actually, I have to make a new file in time file. I just copy U and rename it by myU. |
All times are GMT -4. The time now is 13:06. |