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

How to remove gravity in openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2022, 17:03
Default How to remove gravity in openfoam
  #1
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
qingqingliu is on a distinguished road
I tried two methods to remove the gravity in a simulation in chtMultiRegionTwoFluidEulerFoam.

1. delete the 'g' file under constant file
2 set gravity as zero in the 'g' file under constant file.

But both methods cause errors.

Has anyone know how to remove the gravity in openFoam?
qingqingliu is offline   Reply With Quote

Old   March 8, 2022, 10:56
Default
  #2
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5
joshwilliams is on a distinguished road
Setting gravity = 0 should not cause an issue (at least in my experience, although I have never used this solver). Could you share how you done this?
joshwilliams is offline   Reply With Quote

Old   March 8, 2022, 14:55
Default
  #3
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
qingqingliu is on a distinguished road
Quote:
Originally Posted by joshwilliams View Post
Setting gravity = 0 should not cause an issue (at least in my experience, although I have never used this solver). Could you share how you done this?
When I set g to (0 0 0), the simulation will not run., but no error was shown.
When I set g to some none-zero value, the simulation will run well.
qingqingliu is offline   Reply With Quote

Old   March 8, 2022, 15:01
Default
  #4
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5
joshwilliams is on a distinguished road
Hmm, without an error message it is hard to comment. Why not try set to some very small non-zero value (for example, 1.e-10)?
joshwilliams is offline   Reply With Quote

Old   March 8, 2022, 16:08
Default
  #5
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
qingqingliu is on a distinguished road
Quote:
Originally Posted by joshwilliams View Post
Hmm, without an error message it is hard to comment. Why not try set to some very small non-zero value (for example, 1.e-10)?
Josh,

Thanks for your reply. Yes, what I am doing now is to set g as a very small value.
qingqingliu is offline   Reply With Quote

Reply

Tags
gravity, openfoam


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
Missing gravity in new Teqn in compressibleInterFoam, OpenFOAM v2.2.0 dduque OpenFOAM Running, Solving & CFD 5 June 21, 2015 00:37
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 08:18


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