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

No 'g' file in pimpleFoam tutorials (except RAS/waveSubSurface)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By okrochak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2023, 09:22
Default No 'g' file in pimpleFoam tutorials (except RAS/waveSubSurface)
  #1
New Member
 
Pratik Chakraborty
Join Date: Nov 2022
Location: Liege, Belgium
Posts: 3
Rep Power: 3
PratikChakraborty is on a distinguished road
Hi all,

I wanted to understand what the situation is with regards to gravity for the pimpleFoam solver.

There doesn't seem to be a file for gravity, g in the constant folder. I am guessing that this means gravity is not considered (?).

However, the waveSubSurface tutorial under pimpleFoam/RAS/ does have a g file.

What does that mean? Is it that - in case there does exist that file, gravity will be considered?
PratikChakraborty is offline   Reply With Quote

Old   November 6, 2023, 04:21
Default
  #2
New Member
 
hui cheng
Join Date: Jul 2017
Posts: 4
Rep Power: 9
chenghui62000 is on a distinguished road
The g file also shows in tutorials\incompressible\pimpleFoam\RAS\rotatingFa nInRoom, However, I think the pimplefoam solver does not read the g file at all!

Last edited by chenghui62000; November 6, 2023 at 06:22.
chenghui62000 is offline   Reply With Quote

Old   November 6, 2023, 09:25
Default
  #3
New Member
 
Alex Krochak
Join Date: May 2022
Posts: 9
Rep Power: 4
okrochak is on a distinguished road
Quote:
Originally Posted by PratikChakraborty View Post
Hi all,

I wanted to understand what the situation is with regards to gravity for the pimpleFoam solver.

There doesn't seem to be a file for gravity, g in the constant folder. I am guessing that this means gravity is not considered (?).

However, the waveSubSurface tutorial under pimpleFoam/RAS/ does have a g file.

What does that mean? Is it that - in case there does exist that file, gravity will be considered?
Quote:
Originally Posted by chenghui62000 View Post
The g file also shows in tutorials\incompressible\pimpleFoam\RAS\rotatingFa nInRoom, However, I think the pimplefoam solver does not read the g file at all!
You are correct, pimpleFoam does not consider gravity force. You can look in the source code
HTML Code:
https://www.openfoam.com/documentation/guides/latest/api/pimpleFoam_8C_source.html
:

\ddt{\vec{U}} + \div \left( \vec{U} \vec{U} \right) - \div \gvec{R} = - \grad p + \vec{S}_U

It may be possible to include gravity by using a source term with fvOptions file, but you're probably better off using a solver for heat-transfer, such as buoyantPimpleFoam or buoyantBoussinesqPimpleFoam.

You can read more here:

HTML Code:
https://www.openfoam.com/documentation/guides/latest/doc/guide-applications-solvers-variable-transform-p-rgh.html
Regards, Alex
PratikChakraborty likes this.
okrochak is offline   Reply With Quote

Reply

Tags
gravity force, gravity openfoam, pimple. openfoam, pimplefoam


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
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


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