CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Accelerating Reference Frame

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2014, 12:11
Default Accelerating Reference Frame
  #1
New Member
 
Jakob
Join Date: May 2014
Posts: 2
Rep Power: 0
j_breininger is on a distinguished road
Hello everyone!

my name is Jakob and this is my first thread in the forum. I have been working with OpenFOAM for a couple of months now and so far found the forum to be extremely help full! However I spend multiple days now searching through the forum and the internet to find a solution to my problem and was not able to find an answer to it:

I would like to simulate the free fall of an object in a axisymmetric mesh (it is a wedge mesh). To minimize the mesh motion my idea was to use the 6-dof solver on the object with pimpleDymFoam and have an accelerating reference frame that moves with the object (for now the simulations didn't include the object yet but just show the moving reference frame), at an acceleration of g. My first thought to solve this issue was to just ramp the velocity at the inlet at a constant acceleration of g over my simulation time of 1.6 seconds.
The velocity looks great: Here showing the velocity at time 0 and 1.5 seconds.
Velocity_0_seconds.png Velocity_1.5_seconds.png

However I ran into some issues with the pressure distribution. Namely the pressure should be constant in my whole domain (since the atmospheric pressure is constant), but in my simulations it decreases from the inlet to the outlet, as it can be seen in the picture. This pressure drop is constant over the 1.5 seconds:
Pressure_0_seconds.png

So here is my question: Could this be solved with different boundary conditions or is my approach just completely wrong? If it is wrong what would the solution be?

Velocity BC:
Code:
#include        "include/initialConditions"

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    //- Set patchGroups for constraint patches
    #include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"

    inlet
    {
    type                uniformFixedValue;
    uniformValue    table
    (
        (0    (0 0 0))
        (1    (0 0 9.81))
        (2    (0 0 19.62))
    );

    }

    outlet
    {
       
    type                inletOutlet;
    inletValue         uniform (0 0 0);
 
    }

    OuterWall
    {
        type            slip;
    }

    front
    {
    type                wedge;
    }

    back
    {
    type                wedge;
    }
}
Pressure BC:
Code:
#include        "include/initialConditions"

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform $pressure;

boundaryField
{
    //- Set patchGroups for constraint patches
    #include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"

    inlet
    {
    type                zeroGradient;
    value              $internalField;
    }

    outlet
    {      
    type            fixedValue;
    value          $internalField;
    }

    OuterWall
    {
        type            slip;
    }

    capsule
    {
        type            zeroGradient;
    }

  
    front
    {
    type         wedge;
    }

    back
    {
    type         wedge;
    }

}
I hope I gave you all the information you need and was able to explain my problem in a somewhat understandable manner....

Thank you for your help!

Jakob
j_breininger is offline   Reply With Quote

Old   July 2, 2014, 18:25
Default
  #2
New Member
 
Jakob
Join Date: May 2014
Posts: 2
Rep Power: 0
j_breininger is on a distinguished road
Does nobody have an idea? Is there any additional information I should supply?
j_breininger is offline   Reply With Quote

Old   March 1, 2019, 15:43
Default Accelerating Reference Frames Are... Tricky
  #3
New Member
 
Bryson Sullivan
Join Date: Sep 2015
Posts: 1
Rep Power: 0
btsulliv is on a distinguished road
As far as I can tell, there is nothing wrong with your attempt to solve this problem, it's just that FLUENT does't understand what you are actually trying to do. Fundamentally, the reason why your simulation does not demonstrate the expected behavior is because the solver does not properly understand the mechanism which causes the flow to accelerate in the a non-inertial frame, which is fictitious forces. It thinks it's working in an inertial frame, in which case the only way to achieve the flow acceleration you have (kinematically) imposed is by applying a pressure gradient. It generates increasingly high pressure at the inlet so that the surface forces acting on the fluid produce the specified acceleration. However, the reality of the situation is that it's the domain that is actually accelerating, not the flow. In reality, there is no pressure gradient needed (or allowed) in the actual case because the object is falling into undisturbed air. If you want your simulation to behave as expected, there needs to be an additional body force applied to the RHS of the Navier-Stokes equations which accounts for the acceleration of the reference frame. There will be terms for linear acceleration, angular acceleration, Coriolis force, centrifugal force, etc. The paper "Theoretical Treatment of Fluid Flow For Accelerating Bodies" by Gledhill, Roohani, Forsberg, Eliasson, Nordström and Skews is probably one of the best resources on the topic. It really gets to the heart of the problem and why complicated modifications to inertial solvers are required to compute an accurate answer.

https://en.wikipedia.org/wiki/Non-in...eference_frame
https://www.youtube.com/watch?v=z0xyQKalezI
btsulliv is offline   Reply With Quote

Old   March 2, 2021, 11:28
Default
  #4
New Member
 
tomas lopez olocco
Join Date: Dec 2020
Posts: 4
Rep Power: 5
tomi_foamer is on a distinguished road
Does anyone have an idea of how to add this volumetric force to the navier-stokes equations and how to solve it?

Thanks.
tomi_foamer is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 04:28
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 13:59.