|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
wangh
Join Date: Jul 2020
Posts: 10
Rep Power: 6 ![]() |
surfaceScalarField rho_pos =
fvc::interpolate(rho, pos, "reconstruct(rho)"); I'm confused with "reconstruct(rho)" Does 'reconstruct' convert the rho from surface value to cell center value ? if that's true ,why we use this convert?what is that purpose ? please help me ,thanks very much |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 ![]() |
From the code you can see a surfaceScalarField is created (from rho, which is a volScalarField), by interpolating in the "pos" direction. The "reconstruct(rho)" is just used to identify the interpolation scheme in fvSchemes.
Caelan |
|
![]() |
![]() |
![]() |
Tags |
solver,code |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 06:54 |
OpenFOAM webinar: A multidimensional parallel numerical solver of ADM1 model for anae | Gavin | OpenFOAM Announcements from Other Sources | 0 | July 12, 2018 10:30 |
Wave Action Equation Solver for OpenFOAM | chyczewski | OpenFOAM Programming & Development | 7 | September 4, 2013 11:06 |
OpenCL linear solver for OpenFoam 1.7 (alpha) will come out very soon | qinmaple | OpenFOAM Announcements from Other Sources | 4 | August 10, 2012 11:00 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 20:02 |