CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

rhoCentralFoam fvSchemes none

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By PicklER

LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2017, 07:14
Default rhoCentralFoam fvSchemes none
Join Date: Jul 2014
Posts: 39
Rep Power: 11
PicklER is on a distinguished road
In shockTube tutorial test case, the divSchemes looks like follows:
    default         none;
    div(tauMC)      Gauss linear;
And in solver rhoCentralFoam, solving for density:
solve(fvm::ddt(rho) + fvc::div(phi));
My question: what scheme is used to solve for phi? As I understand, if a scheme is not specified, OpenFOAM gives an error and suggests the possible schemes.


Last edited by PicklER; April 1, 2017 at 07:15. Reason: Too general Title
PicklER is offline   Reply With Quote

Old   April 1, 2017, 08:16
New Member
Join Date: Mar 2014
Location: Czech Republic
Posts: 29
Rep Power: 13
elones is on a distinguished road
look into rhoCentralFoam.C, the solver is based on Kurganov and Tadmor central schemes, ie, Riemann-solver-free approach.
elones is offline   Reply With Quote

Old   April 1, 2017, 09:47
Join Date: Jul 2014
Posts: 39
Rep Power: 11
PicklER is on a distinguished road
Thank you for the quick reply. I think I understand it now. phi is calculated by the interpolated variables of the cell faces and therefore solved. I noticed that for n number of cells in a straight line, like in the shocktube test case, phi has only n-1 values, which confirms that phi only exists on the faces. And the obvious definition of phi
surfaceScalarField phi("phi", mesh.Sf() & fvc::interpolate(rhoU));
The same is done for the momentum and energy equations. I found a good article on rhoCenralFoam and it explains how the convective terms in the conservation equations are handled:
I am busy writing up my understanding of it in a way I can better explain it.
Thanks again
Jiss likes this.
PicklER is offline   Reply With Quote


fvschemes, rhocentralfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to apply a turbulence model to the rhoCentralFoam solver? arussell92 OpenFOAM Pre-Processing 18 July 25, 2022 04:26
Modify rhoCentralFoam: other equations of state fivos OpenFOAM Programming & Development 5 July 29, 2020 13:17
rhoCentralFoam transport equation JoaoDMiranda OpenFOAM Programming & Development 28 January 15, 2020 08:12
dynamic mesh refinement and rhoCentralFoam ChrisA OpenFOAM Running, Solving & CFD 1 March 21, 2013 08:00
rhoCentralFoam solver with Slip BCs fails in Parallel Only JLight OpenFOAM Running, Solving & CFD 2 October 11, 2012 21:08

All times are GMT -4. The time now is 18:53.