CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > FLOW-3D

Gravity modeled by customization does not conform with that is added in GUI

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

LinkBack Thread Tools Display Modes
Old   June 15, 2017, 21:28
Default Gravity modeled by customization does not conform with that is added in GUI
New Member
Join Date: Apr 2014
Posts: 17
Rep Power: 6
boesendorfer is on a distinguished road
Gravity model has been included in physics panel of GUI.
However, I disabled this model in GUI and tried to account for gravity force by customization shown below because of some other reasons.

In the forcal.f, I loop over all fluid cell and set fsigz(ijk)=-9.8*rho(ijk)*delx(i)*dely(j)*delz(k)*f(ijk)
Also I've added iffor=1 in prepin file.

Then I run a simulation of stationary liquid with density of 7800 and depth of 0.01m. The mesh size is 0.001m.

The result shows that it does have effort. But the pressure at the bottom is about 15MPa higher than that is simulated by individual gravity model in GUI.

boesendorfer is offline   Reply With Quote

Old   September 12, 2017, 03:00
New Member
Join Date: Sep 2014
Location: China
Posts: 4
Rep Power: 6
boy is on a distinguished road
Hi,boesendorfer, Can you post your whole forcal subroutine here or send it to
boy is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ANSYS Workbench on "Uncertified" Linux Distros hsr CFX 281 September 3, 2018 22:37
Customization using parqsr.f for mass momentum source boesendorfer FLOW-3D 0 May 28, 2017 09:30
Segmentation fault in layerAdditionRemoval Foam-extend 3.1 jbettencourt OpenFOAM Running, Solving & CFD 3 March 10, 2016 05:53

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