# Density and Gravity Force

**URL:** <https://discourse.opengeosys.org/t/density-and-gravity-force/185>\
**Category:** ogs-users\
**Tags:** mailing-list\
**Created:** [June 6, 2017, 5:46pm UTC](https://discourse.opengeosys.org/t/density-and-gravity-force/185 "2017-06-06T17:46:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Islam](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/5e9695/32.png) [@Mohammad\_Islam](https://discourse.opengeosys.org/u/Mohammad_Islam)\
**Post date:** [June 6, 2017, 5:46pm UTC](https://discourse.opengeosys.org/t/density-and-gravity-force/185/1 "2017-06-06T17:46:34Z")

</div>

Hi All,

To neglect gravity effect, materials and liquid densities are considered as zero. I found some cases, where density is considered as -ve/ +ve value. What does negative sign represent? There are total three files where GRAVITY key word is available

For \*. mfp GRAVITY

\*.msp GRAVITY\_CONSTANT

\*.num GRAVITY\_PROFILE

I am wondering what is the appropriate way to consider Gravity force effect. I followed following steps, but failed. Any idea how can I achieve gravity force effect?

GeoSys-MAT-FP: Fluid Properties ------------------------------------

#FLUID\_PROPERTIES

$FLUID\_TYPE

LIQUID

$PCS\_TYPE

PRESSURE1

$DENSITY

1 1.0e3

$GRAVITY

9.81

$VISCOSITY

1 1.000000e-003

#STOP

GeoSys-MAT-SP: Solid Properties ------------------------------------  
#SOLID\_PROPERTIES  
$DENSITY  
1 2.000000e+003  
$GRAVITY\_CONSTANT  
9.81  
$ELASTICITY  
POISSION 0.4  
YOUNGS\_MODULUS  
1 1.300000e+006  
#STOP

GeoSys-NUM: Numerical Parameter ----------------------------------------

#NUMERICS

$PCS\_TYPE

RICHARDS\_FLOW

$ELE\_UPWINDING

0.5

$ELE\_MASS\_LUMPING

1

$GRAVITY\_PROFILE

1

$LINEAR\_SOLVER

; method error\_tolerance max\_iterations theta precond storage

2 2 1.e-010 2000 1.0 100 4

$NON\_LINEAR\_SOLVER

; method error\_tolerance max\_iterations relaxation

PICARD 1e-3 25 0.0

; $COUPLING\_ITERATIONS

; HM 5 1.0e-6 // The first string is arbitrary

#NUMERICS

$PCS\_TYPE

DEFORMATION

$LINEAR\_SOLVER

; method error\_tolerance max\_iterations theta precond storage

2 5 1.e-10 1000 1.0 100 4

$ELE\_GAUSS\_POINTS

3

#STOP

Regards,

Mohammad

---

<div class="post-metadata">

**Author:** ![Norihiro\_Watanabe1](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/norihiro_watanabe1/32/437_2.png) [@Norihiro\_Watanabe1](https://discourse.opengeosys.org/u/Norihiro_Watanabe1)\
**Post date:** [June 6, 2017, 11:31pm UTC](https://discourse.opengeosys.org/t/density-and-gravity-force/185/2 "2017-06-06T23:31:46Z")

</div>

hi, usually you don’t need to use any of the GRAVITY keywords. To neglect gravity effects, you can use negative sign for the densities. The densitiy values (absolute one) will still be used in some calculation, e.g. in heat transport. but don’t ask me why it’s like that…

> **···**
>
> * * *
> 
> From: Mohammad Islam [nislamce@gmail.com](mailto:nislamce@gmail.com)
> 
> Sent: 水曜日, 6月 7, 2017 2:46 午前
> 
> Subject: [ogs-users] Density and Gravity Force
> 
> To: ogs-users [ogs-users@googlegroups.com](mailto:ogs-users@googlegroups.com)
> 
> Hi All,
> 
> To neglect gravity effect, materials and liquid densities are considered as zero. I found some cases, where density is considered as -ve/ +ve value. What does negative sign represent? There are total three files where GRAVITY key word is available
> 
> For \*. mfp GRAVITY
> 
> \*.msp GRAVITY\_CONSTANT
> 
> \*.num GRAVITY\_PROFILE
> 
> I am wondering what is the appropriate way to consider Gravity force effect. I followed following steps, but failed. Any idea how can I achieve gravity force effect?
> 
> GeoSys-MAT-FP: Fluid Properties ------------------------------------
> 
> #FLUID\_PROPERTIES
> 
> $FLUID\_TYPE
> 
> LIQUID
> 
> $PCS\_TYPE
> 
> PRESSURE1
> 
> $DENSITY
> 
> 1 1.0e3
> 
> $GRAVITY
> 
> 9.81
> 
> $VISCOSITY
> 
> 1 1.000000e-003
> 
> #STOP
> 
> GeoSys-MAT-SP: Solid Properties ------------------------------------
> 
> #SOLID\_PROPERTIES
> 
> $DENSITY
> 
> ```
> 1 2.000000e+003
> 
> ```
> 
> $GRAVITY\_CONSTANT
> 
> 9.81
> 
> $ELASTICITY
> 
> ```
> POISSION 0.4       
> 
> YOUNGS_MODULUS
> 
> 1 1.300000e+006  
> 
> ```
> 
> #STOP
> 
> GeoSys-NUM: Numerical Parameter ----------------------------------------
> 
> #NUMERICS
> 
> $PCS\_TYPE
> 
> RICHARDS\_FLOW
> 
> $ELE\_UPWINDING
> 
> 0.5
> 
> $ELE\_MASS\_LUMPING
> 
> 1
> 
> $GRAVITY\_PROFILE
> 
> 1
> 
> $LINEAR\_SOLVER
> 
> ; method error\_tolerance max\_iterations theta precond storage
> 
> 2 2 1.e-010 2000 1.0 100 4
> 
> $NON\_LINEAR\_SOLVER
> 
> ; method error\_tolerance max\_iterations relaxation
> 
> PICARD 1e-3 25 0.0
> 
> ; $COUPLING\_ITERATIONS
> 
> ; HM 5 1.0e-6 // The first string is arbitrary
> 
> #NUMERICS
> 
> $PCS\_TYPE
> 
> DEFORMATION
> 
> $LINEAR\_SOLVER
> 
> ; method error\_tolerance max\_iterations theta precond storage
> 
> 2 5 1.e-10 1000 1.0 100 4
> 
> $ELE\_GAUSS\_POINTS
> 
> 3
> 
> #STOP
> 
> Regards,
> 
> Mohammad
> 
> –
> 
> You received this message because you are subscribed to the Google Groups “ogs-users” group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an email [toogs-users+unsubscribe@googlegroups.com](mailto:toogs-users+unsubscribe@googlegroups.com).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![wenqing.wang](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/wenqing.wang/32/417_2.png) [@wenqing.wang](https://discourse.opengeosys.org/u/wenqing.wang)\
**Post date:** [June 8, 2017, 7:46am UTC](https://discourse.opengeosys.org/t/density-and-gravity-force/185/3 "2017-06-08T07:46:22Z")

</div>

If negative density value is given in msp file, the gravity force effect in deformation analysis is neglected, while absolute value of the solid density data is still used in calculation of the heat capacity related term when heat transport process being coupled. For fluid density values in mfp, they have to be always positive.

> **···**
>
> On 06/07/2017 01:31 AM, 渡邉教弘 wrote:
> 
> > hi, usually you don't need to use any of the GRAVITY keywords. To neglect gravity effects, you can use negative sign for the densities. The densitiy values (absolute one) will still be used in some calculation, e.g. in heat transport. but don't ask me why it's like that...  
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > From: Mohammad Islam \<nislamce@gmail.com\>  
> > Sent: 水曜日, 6月 7, 2017 2:46 午前  
> > Subject: [ogs-users] Density and Gravity Force  
> > To: ogs-users \<ogs-users@googlegroups.com\>
> > 
> > Hi All,  
> > To neglect gravity effect, materials and liquid densities are considered as zero. I found some cases, where density is considered as -ve/ +ve value. What does negative sign represent? There are total three files where GRAVITY key word is available
> > 
> > For \*. mfp GRAVITY  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\*.msp GRAVITY\_CONSTANT  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\*.num GRAVITY\_PROFILE
> > 
> > I am wondering what is the appropriate way to consider Gravity force effect. I followed following steps, but failed. Any idea how can I achieve gravity force effect?
> > 
> > GeoSys-MAT-FP: Fluid Properties ------------------------------------
> > 
> > #FLUID\_PROPERTIES
> > 
> > $FLUID\_TYPE
> > 
> > LIQUID
> > 
> > $PCS\_TYPE
> > 
> > PRESSURE1
> > 
> > $DENSITY
> > 
> > 1 1.0e3
> > 
> > $GRAVITY
> > 
> > 9.81
> > 
> > $VISCOSITY
> > 
> > 1 1.000000e-003
> > 
> > #STOP
> > 
> > GeoSys-MAT-SP: Solid Properties ------------------------------------  
> > #SOLID\_PROPERTIES  
> > &nbsp;&nbsp;$DENSITY  
> > &nbsp;&nbsp;&nbsp;&nbsp;1 2.000000e+003  
> > &nbsp;&nbsp;$GRAVITY\_CONSTANT  
> > &nbsp;&nbsp;9.81  
> > &nbsp;&nbsp;$ELASTICITY  
> > &nbsp;&nbsp;&nbsp;&nbsp;POISSION 0.4  
> > &nbsp;&nbsp;&nbsp;&nbsp;YOUNGS\_MODULUS  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 1.300000e+006  
> > #STOP
> > 
> > \*
> > 
> > GeoSys-NUM: Numerical Parameter ----------------------------------------
> > 
> > #NUMERICS
> > 
> > $PCS\_TYPE
> > 
> > RICHARDS\_FLOW
> > 
> > $ELE\_UPWINDING
> > 
> > 0.5
> > 
> > $ELE\_MASS\_LUMPING
> > 
> > 1
> > 
> > $GRAVITY\_PROFILE
> > 
> > 1
> > 
> > $LINEAR\_SOLVER
> > 
> > ; method error\_tolerance max\_iterations theta precond storage
> > 
> > 2 2 1.e-010 2000 1.0 100 4
> > 
> > $NON\_LINEAR\_SOLVER
> > 
> > ; method error\_tolerance max\_iterations relaxation
> > 
> > PICARD 1e-3 25 0.0
> > 
> > ; $COUPLING\_ITERATIONS
> > 
> > ; HM 5 1.0e-6 // The first string is arbitrary
> > 
> > #NUMERICS
> > 
> > $PCS\_TYPE
> > 
> > DEFORMATION
> > 
> > $LINEAR\_SOLVER
> > 
> > ; method error\_tolerance max\_iterations theta precond storage
> > 
> > 2 5 1.e-10 1000 1.0 100 4
> > 
> > $ELE\_GAUSS\_POINTS
> > 
> > 3
> > 
> > #STOP
> > 
> > Regards,
> > 
> > Mohammad
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "ogs-users" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email toogs-users+unsubscribe@googlegroups.com \<mailto:ogs-users+unsubscribe@googlegroups.com\>.  
> > For more options, visit [https://groups.google.com/d/optout\](https://groups.google.com/d/optout%5C).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "ogs-users" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to ogs-users+unsubscribe@googlegroups.com \<mailto:ogs-users+unsubscribe@googlegroups.com\>.  
> > For more options, visit [https://groups.google.com/d/optout\](https://groups.google.com/d/optout%5C).

---

<div class="post-metadata">

**Author:** ![Mohammad\_Islam](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/5e9695/32.png) [@Mohammad\_Islam](https://discourse.opengeosys.org/u/Mohammad_Islam)\
**Post date:** [June 9, 2017, 5:55pm UTC](https://discourse.opengeosys.org/t/density-and-gravity-force/185/4 "2017-06-09T17:55:12Z")

</div>

Hi,

Thank you for your kind reply.

Regards,

Mohammad

> **···**
>
> On Tuesday, 6 June 2017 19:31:49 UTC-4, 渡邉教弘 wrote:
> 
> > hi, usually you don’t need to use any of the GRAVITY keywords. To neglect gravity effects, you can use negative sign for the densities. The densitiy values (absolute one) will still be used in some calculation, e.g. in heat transport. but don’t ask me why it’s like that…
> 
> > * * *
> > 
> > From: Mohammad Islam [nisl...@gmail.com](mailto:nisl...@gmail.com)
> > 
> > Sent: 水曜日, 6月 7, 2017 2:46 午前
> > 
> > Subject: [ogs-users] Density and Gravity Force
> > 
> > To: ogs-users [ogs-...@googlegroups.com](mailto:ogs-...@googlegroups.com)
> > 
> > Hi All,
> 
> > To neglect gravity effect, materials and liquid densities are considered as zero. I found some cases, where density is considered as -ve/ +ve value. What does negative sign represent? There are total three files where GRAVITY key word is available
> 
> > 
> 
> > For \*. mfp GRAVITY
> 
> > \*.msp GRAVITY\_CONSTANT
> 
> > \*.num GRAVITY\_PROFILE
> 
> > 
> 
> > I am wondering what is the appropriate way to consider Gravity force effect. I followed following steps, but failed. Any idea how can I achieve gravity force effect?
> 
> > 
> 
> > 
> 
> > GeoSys-MAT-FP: Fluid Properties ------------------------------------
> 
> > #FLUID\_PROPERTIES
> 
> > $FLUID\_TYPE
> 
> > LIQUID
> 
> > $PCS\_TYPE
> 
> > PRESSURE1
> 
> > $DENSITY
> 
> > 1 1.0e3
> 
> > $GRAVITY
> 
> > 9.81
> 
> > $VISCOSITY
> 
> > 1 1.000000e-003
> 
> > #STOP
> 
> > 
> 
> > GeoSys-MAT-SP: Solid Properties ------------------------------------
> > 
> > #SOLID\_PROPERTIES
> > 
> > $DENSITY
> > 
> > ```
> > 1 2.000000e+003
> > 
> > ```
> > 
> > $GRAVITY\_CONSTANT
> > 
> > 9.81
> > 
> > $ELASTICITY
> > 
> > ```
> > POISSION 0.4       
> > 
> > YOUNGS_MODULUS
> > 
> > 1 1.300000e+006  
> > 
> > ```
> > 
> > #STOP
> 
> > 
> 
> > 
> 
> > 
> 
> > GeoSys-NUM: Numerical Parameter ----------------------------------------
> 
> > 
> 
> > #NUMERICS
> 
> > 
> 
> > $PCS\_TYPE
> 
> > 
> 
> > RICHARDS\_FLOW
> 
> > 
> 
> > $ELE\_UPWINDING
> 
> > 
> 
> > 0.5
> 
> > 
> 
> > $ELE\_MASS\_LUMPING
> 
> > 
> 
> > 1
> 
> > 
> 
> > $GRAVITY\_PROFILE
> 
> > 
> 
> > 1
> 
> > 
> 
> > $LINEAR\_SOLVER
> 
> > 
> 
> > ; method error\_tolerance max\_iterations theta precond storage
> 
> > 
> 
> > 2 2 1.e-010 2000 1.0 100 4
> 
> > 
> 
> > $NON\_LINEAR\_SOLVER
> 
> > 
> 
> > ; method error\_tolerance max\_iterations relaxation
> 
> > 
> 
> > PICARD 1e-3 25 0.0
> 
> > 
> 
> > ; $COUPLING\_ITERATIONS
> 
> > 
> 
> > ; HM 5 1.0e-6 // The first string is arbitrary
> 
> > 
> 
> > #NUMERICS
> 
> > 
> 
> > $PCS\_TYPE
> 
> > 
> 
> > DEFORMATION
> 
> > 
> 
> > $LINEAR\_SOLVER
> 
> > 
> 
> > ; method error\_tolerance max\_iterations theta precond storage
> 
> > 
> 
> > 2 5 1.e-10 1000 1.0 100 4
> 
> > 
> 
> > $ELE\_GAUSS\_POINTS
> 
> > 
> 
> > 3
> 
> > 
> 
> > #STOP
> 
> > 
> 
> > Regards,
> 
> > Mohammad
> 
> > 
> 
> > –
> > 
> > You received this message because you are subscribed to the Google Groups “ogs-users” group.
> > 
> > To unsubscribe from this group and stop receiving emails from it, send an email [toogs-users+...@googlegroups.com](mailto:toogs-users+...@googlegroups.com).
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Mohammad\_Islam](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/5e9695/32.png) [@Mohammad\_Islam](https://discourse.opengeosys.org/u/Mohammad_Islam)\
**Post date:** [June 9, 2017, 5:57pm UTC](https://discourse.opengeosys.org/t/density-and-gravity-force/185/5 "2017-06-09T17:57:17Z")

</div>

Dear Wang,

Thanks again for your help.

Regards,

Mohammad

> **···**
>
> On Thursday, 8 June 2017 03:46:25 UTC-4, Wenqing Wang wrote:
> 
> > ```
> > If negative density value is given in msp file, the gravity force effect in deformation analysis is neglected, while absolute value of the solid density data is still used in calculation of the heat capacity related term when heat transport process being coupled. For fluid density values in mfp, they have to be always positive.
> > 
> > On 06/07/2017 01:31 AM, 渡邉教弘 wrote:
> > 
> > ```
> 
> > > ```
> > > hi, usually you don't need to use any of the GRAVITY keywords. To neglect gravity effects, you can use negative sign for the densities. The densitiy values (absolute one) will still be used in some calculation, e.g. in heat transport. but don't ask me why it's like that...
> > > 
> > > ```
> 
> > >

---

<div class="post-metadata">

**Author:** ![nbeyond](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/nbeyond/32/1088_2.png) [@nbeyond](https://discourse.opengeosys.org/u/nbeyond)\
**Post date:** [June 27, 2017, 7:30am UTC](https://discourse.opengeosys.org/t/density-and-gravity-force/185/6 "2017-06-27T07:30:21Z")

</div>

This conversation is a bit hilarious but very useful in a random way. Thanks, guys. It helps eventually.

Chan-Hee

> **···**
>
> On Saturday, June 10, 2017 at 2:57:17 AM UTC+9, Mohammad Islam wrote:
> 
> > Dear Wang,
> 
> > Thanks again for your help.
> 
> > 
> 
> > Regards,
> 
> > Mohammad
> > 
> > On Thursday, 8 June 2017 03:46:25 UTC-4, Wenqing Wang wrote:
> 
> > > ```
> > > If negative density value is given in msp file, the gravity force effect in deformation analysis is neglected, while absolute value of the solid density data is still used in calculation of the heat capacity related term when heat transport process being coupled. For fluid density values in mfp, they have to be always positive.
> > > 
> > > On 06/07/2017 01:31 AM, 渡邉教弘 wrote:
> > > 
> > > ```
> 
> > > > ```
> > > > hi, usually you don't need to use any of the GRAVITY keywords. To neglect gravity effects, you can use negative sign for the densities. The densitiy values (absolute one) will still be used in some calculation, e.g. in heat transport. but don't ask me why it's like that...
> > > > 
> > > > ```
> 
> > > >
