CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Transient table input for gravity (https://www.cfd-online.com/Forums/openfoam-solving/162095-transient-table-input-gravity.html)

Akshay November 3, 2015 08:39

Transient table input for gravity
 
Hello foamers!!

I'm trying to work on a slosh simulation and I need to define the motion of the tank as an "acceleration vs time" table. Is there a way to input a table for gravity or is there any other option?

Thanks!
Akshay

phandy November 3, 2015 15:19

Are you trying to plot the acceleration of the tank itself, or the fluid inside it?

dybuk November 4, 2015 04:08

1 Attachment(s)
Hi Akshay

Some time ago I edit the interFoam solver to use variable gravity. Accelaeration is defined as a table and it depends on simulation time. Solvers was based on interFoam form OF2.3.0 and works fine for me. In attatchment you can find solver code and g dictionary :)

Akshay November 6, 2015 21:17

hey Paul : i dont want to move the tank. ..just want to apply the g forces acting on the fluid.

@W.T : the solver seems to be exactly what I need! thanks much! I also noticed that it interpolates values based on the timestep...where is this handled in the code?

dybuk November 7, 2015 03:57

Loaded g table is an "Date Entry" object - it is part of OF library.
Other standard BC also use it to time dependent behavior eg. http://www.openfoam.org/version2.1.0...conditions.php

Akshay December 15, 2015 05:17

interDyMFOam
 
hey W.T

I tried to implement the same(table input for gravity) for interDyMFoam and everything looks fine when I run it in serial. But in parallel, my pressure monitors shows wrong values (constant values - all probes). Any clue why this is happening?

Akshay


All times are GMT -4. The time now is 20:50.