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

InterFoam UEqn understanding

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By gaza
  • 1 Post By cbcoutinho

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2017, 10:36
Default InterFoam UEqn understanding
  #1
Member
 
behzad Ghasemi
Join Date: Sep 2013
Location: Iran
Posts: 56
Rep Power: 13
behzad-cfd is on a distinguished road
Hi Dear Foamers,

I've some questions about UEqn.H interFoam.
Code:
    if (pimple.momentumPredictor())
    {
        solve
        (
            UEqn
         ==
            fvc::reconstruct
            (
                (
                    fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
                  - ghf*fvc::snGrad(rho)
                  - fvc::snGrad(p_rgh)
                ) * mesh.magSf()
            )
        );
    }
1- Why right hand side is multiplied by area (mesh.magSf())?
2- Why every thing is in surface form (surface normal gradient, fvc::interpolate) and then reconstructed to cell values? couldn't every thing be in cell centered values from first place?

I'll be appreciated if someone make clear these to me.

Thanks in advance,

Behzad
behzad-cfd is offline   Reply With Quote

Old   November 23, 2017, 12:21
Default
  #2
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16
gaza is on a distinguished road
Hi Bezhad,
You can read this post

interpolation for pressure
behzad-cfd likes this.
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   November 23, 2017, 15:50
Thumbs up
  #3
Member
 
behzad Ghasemi
Join Date: Sep 2013
Location: Iran
Posts: 56
Rep Power: 13
behzad-cfd is on a distinguished road
Quote:
Originally Posted by gaza View Post
Hi Bezhad,
You can read this post

interpolation for pressure
Thanks Przemek. It was exactly what i wanted.
behzad-cfd is offline   Reply With Quote

Old   November 23, 2017, 17:53
Default
  #4
New Member
 
Chris Coutinho
Join Date: Jan 2015
Location: Netherlands
Posts: 28
Rep Power: 11
cbcoutinho is on a distinguished road
One resource I found helpful when looking into interFoam was the following:

Title: Description and utilization of interFoam multiphase solver

https://www.google.nl/url?sa=t&sourc...SuBIwv7yJMAI2P
behzad-cfd likes this.
cbcoutinho is offline   Reply With Quote

Reply

Tags
interfoam, ueqn


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
Understanding interFoam sega OpenFOAM Running, Solving & CFD 26 February 10, 2022 04:21
k-e & GAMG interFoam Schemitisation Stability Issue JFM OpenFOAM Running, Solving & CFD 3 December 1, 2015 06:58
talk about the most suitable way to discretize diffusion term in UEqn bieshuxuhe OpenFOAM Programming & Development 1 April 16, 2014 11:10
interFoam Ueqn alvin11 OpenFOAM 2 December 2, 2010 02:28
GammaEqn and UEqn in interFoam adekian OpenFOAM Running, Solving & CFD 1 April 11, 2007 03:03


All times are GMT -4. The time now is 16:04.