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

fvc::flux and fvc::reconstruct

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2018, 09:59
Default fvc::flux and fvc::reconstruct
  #1
Member
 
Join Date: Jun 2017
Posts: 58
Rep Power: 8
sturgeon is on a distinguished road
I was hoping someone could clear something up for me. I tried searching the forums but not finding out much.

As I understood it, fvc::flux converts a volume field to a surface scalar field. In the case of things like fvc::flux(HbyA), I understand its use in the algorithm. I also thought fvc:reconstruct essentially reverses the process.

However, I'm looking for errors in a solver I'm making and checking out the numbers produced and notice something strange. I have phiHbyA = fvc::flux(HbyA), and then I added some lines to output both HbyA and fvc::reconstruct(phiHbyA), and the values do not match up.

I'd understand small differences due to numerical error, but the difference between the two is fairly significant.

Am I misunderstanding the function of flux and reconstruct? Or are these errors indicative of some error in my code?
sturgeon is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 15:05.