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

help!!!problem in openfoam solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2020, 08:47
Talking help!!!problem in openfoam solver
  #1
New Member
 
wangh
Join Date: Jul 2020
Posts: 10
Rep Power: 6
heheda is on a distinguished road
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
heheda is offline   Reply With Quote

Old   August 7, 2020, 11:09
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
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
clapointe is offline   Reply With Quote

Reply

Tags
solver,code


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
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


All times are GMT -4. The time now is 21:59.