CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

U is different from fvc::reconstruct(phi)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2021, 06:02
Default U is different from fvc::reconstruct(phi)
  #1
New Member
 
H. Xia
Join Date: Sep 2021
Posts: 2
Rep Power: 0
H.Xia is on a distinguished road
Hi all,

I am working on basic coding with interFoam solver, and I try to compare the difference between two velocity fields:
1. U is the one-field velocity solved from the governing equations
2. Un is reconstructed from phi, which is the flux.
Un = fvc::reconstruct(phi)

Normally, the two fields should be the same (right? if not, please correct me), however, in my simulations, I found that U is a little bit large than Un, and you can find the attached figures which can help you to understand my question.

I hope you can give me some suggestions on this problem.

Many thanks,
H. Xia
Attached Images
File Type: jpg U and Un.jpg (53.6 KB, 33 views)
File Type: png comparison.PNG (84.9 KB, 38 views)
H.Xia is offline   Reply With Quote

Old   September 8, 2021, 07:49
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
It's not the same. fvc:reconstruct is made to smooth out oscillations and therefore it smoothed out also steep gradients. Some detailes can be found in https://www.researchgate.net/publica...reconstruction and references therein.

Of course the source code helps and maybe some googling


Best

Michael
mAlletto is offline   Reply With Quote

Old   September 16, 2021, 05:37
Default
  #3
New Member
 
H. Xia
Join Date: Sep 2021
Posts: 2
Rep Power: 0
H.Xia is on a distinguished road
Hi Michael,

Thank you very much,

H.Xia
H.Xia is offline   Reply With Quote

Reply

Tags
fvc::reconstruct(), interfoam, vof


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
simpleFoam/potentialFoam crash during fvc::reconstruct(phi); bennn OpenFOAM Running, Solving & CFD 4 November 16, 2016 08:11


All times are GMT -4. The time now is 11:25.