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 |
Are you trying to plot the acceleration of the tank itself, or the fluid inside it?
|
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 :) |
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? |
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 |
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. |