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

Using a plane averaged field in the momentum equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2017, 15:37
Default Using a plane averaged field in the momentum equation
  #1
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16
Santiago is on a distinguished road
Hi foamers,

so im currently getting my head around stratification in channel flows and I wanted to modify a solver I'm currently working on. The problem is that at some point in the iteration I would like to determine the fluctuation of density equal to the difference between the density field and its average over the horizontal plane. I guess I could do a forAll cycle for each horizontal plane, create a volScalarField and save that same value for all cells with that specific height, but I find the method a bit rudimentary; Is there a cleaner way it could be done?
Santiago 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
viscosity term in discetrization momentum equation hans-186 Main CFD Forum 4 April 1, 2013 14:34
Coefficients discretized momentum equation michujo Main CFD Forum 4 June 20, 2012 02:33
Momentum equation of Darcy's law sambatra OpenFOAM Running, Solving & CFD 2 April 17, 2009 04:27
Coupling between momentum and energy equation Mattia FLUENT 0 October 26, 2007 09:02


All times are GMT -4. The time now is 07:37.