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

What is the application of fvc::absolute(phi/fvc::interpolate(rho), U)

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

Like Tree4Likes
  • 4 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2015, 22:10
Default What is the application of fvc::absolute(phi/fvc::interpolate(rho), U)
  #1
Member
 
james wilson
Join Date: Aug 2014
Location: Orlando, Fl
Posts: 39
Rep Power: 11
jameswilson620 is on a distinguished road
All,

In buoyantPimpleFoamSolver a few lines in EEqn.H read:

Code:
            fvc::div
            (
                fvc::absolute(phi/fvc::interpolate(rho), U),
                p,
                "div(phiv,p)"
            )
I understand dividing by the interpolated surfaceScalarField rhof to get the volume flux for the divergence operator but why didn't we stop there?

For example:

fvc::div(phi/fvc::interpolate(rho),p) .... (1)

In other words, what is the provided code doing that cannot be accomplished by (1)? Or, what is the purpose of fvc::absolute() (what are it's arguments and it's output)?

Also, I suppose providing "div(phiv,p)" in the argument of fvc::div() in the solver gives a name to reference in fvSchemes? I have a question in another post related to this issue: http://www.cfd-online.com/Forums/mai...ansitions.html

Thanks, James
jameswilson620 is offline   Reply With Quote

Old   April 2, 2015, 08:29
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

1. fvc::absolute does nothing for static mesh, see http://foam.sourceforge.net/docs/cpp...9881bf6671d8bf.

2. as surfaceScalarField fvc::absolute(phi/fvc::interpolate(rho), U) has rather fancy name it is necessary explicitly set the name of operation, so fvc::div can decide what scheme to use for discretization.
fumiya, MALISYD, lpz456 and 1 others like this.
alexeym is offline   Reply With Quote

Reply

Tags
buoyantpimplefoam, energy equation, fvc::absolute

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
CFD Post Application Error: 'wbload' action requires parameter: 'id'. gusymtz ANSYS 5 October 10, 2022 16:29
The FLUENT Application is currently busy. Please try this operation again after some ashish.shah FLUENT 1 November 2, 2016 09:05
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
Why not install cluster by connecting workstations together for CFD application? Anna Tian Hardware 5 July 18, 2014 14:32
Installation of OpenFOAM15dev antonio_ing OpenFOAM Installation 34 December 18, 2009 10:06


All times are GMT -4. The time now is 22:23.