CFD Online Discussion Forums

CFD Online Discussion Forums (
-   STAR-CCM+ (
-   -   how to model varying gravity in Star CCM+ (

mohan makana November 15, 2009 11:07

modeling of slosh analysis with time varying accel/decell
I am trying to model some sloshing analysis in a fuel tank of an marine engine. I want to give accel/decel which is varying with time.
In reference values i was able to give constant accel/decel but not varying. I will be thankful if some one can provide me solution.

ping November 25, 2009 02:06

Two suggestions:

1. very easy method - simply type an equation into the gravity setting for X (ie replace 0 with say sin($Time * 3.2) or whatever.

2. easy method - create a field function called say GravX, and set its value to the required equation -
eg sin($Time * 3.2). Then simply type this field function name into the gravity setting for X (ie replace 0 with $GravX).

Even thought lots of menus dont have a field function dropdown and only constant settings, you can still type in a field function name or equation - very handy and not well documented!

3. harder method - do a java macro and solve via the macro changing the gravity constants every timestep.

All times are GMT -4. The time now is 03:32.