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

interFoam - steady current: air in water

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 5, 2020, 14:09
Default interFoam - steady current: air in water
  #1
New Member
 
Jente Vercammen
Join Date: Mar 2020
Posts: 9
Rep Power: 6
Jekke123456789 is on a distinguished road
interFoam - steady current: air in water


I am a searching for a solution of my problem, I am trying to check the velocities at a rock berm at the sea bottom for a steady current. Later one waves will be added but that are problems for later. I am using OpenFOAM v1812.

Specifics:

- current 0.49 m/s

- beach at the end


Main problems:
- air inside the water at the inlet.
- increase of water height in time (need to be constant)


The mesh is easy, with the use of stl file . It consist out of a berm and a beach at the end. See attachment.




These are some files that could be useful, if anything else is needed, let me know:
BlockMesh:


x-axis: 0 – 35

y-axis: 0.01 – 0.06

z-axis: 0 – 3

hex (0 1 2 3 4 5 6 7) (700 1 60) simpleGrading (1 1 1) //5cm fo each cell in x and z direction

Everything type: Patch, later on sides are set to empty

Set fields:



defaultFieldValues
(
    volScalarFieldValue alpha.water 0
    volVectorFieldValue U           (0. 0. 0.)
);

regions
(
    boxToCell
    {
        box (0 0.01 0) (35 0.06 0.750);
        fieldValues
        (
            volScalarFieldValue alpha.water 1
            volVectorFieldValue U           (0.49 0. 0.)
        );
    }
);



Boundary conditions:

alpha.water:
    inlet
    {
        type            zeroGradient;
    }

/*
    inlet // I tried this too, but then the whol inlet was water instead of only a height o 0.75
    {
        type            fixedValue; 
        value           uniform 1;
    }
*/

    outlet
    {
        type            zeroGradient;
    }

    ground
    {
        type            zeroGradient;
    }

    sides
    {
        type            empty;
    }

    top
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;

    }



U:



  inlet
    {
        type            fixedValue;
        value           uniform (0.49 0 0);
    }

    outlet
    {
        type            fixedValue;
        value           uniform (0. 0 0);
    }



    ground
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    sides
    {
        type            empty;
    }


    top
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }

p_rgh:
inlet
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    outlet
    {
        type            zeroGradient; 
       // value           uniform 0;
    }
    ground
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    sides
    {
        type            empty;
    }


    top
    {
        type            totalPressure;
        p0              uniform 0;
    }



Results:

air at inlet See attachment

Rise of waterheight starting at the beach See attachment



So now the problems can be seen in the figures, I just want a steady state flow a the inlet, without air that is commin in to the water.

I tried it without the beach and have a uniform value of 0.49 at the outlet but still air is at the inlet.



Is there a way to set a boundary condtion only to the water part?



Any other suggestion is welcome for a steady state current with interFoam!?
Attached Images
File Type: png test.png (1.2 KB, 16 views)
File Type: png riseWaterheight.png (7.5 KB, 18 views)
File Type: png airInlet.png (43.6 KB, 20 views)
Jekke123456789 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
Current density visualisation (PEM fuel cell add-on module) pchoopanya FLUENT 10 August 21, 2023 14:33
No liquid water exist in my Fuel Cell simulation fatchang FLUENT 19 October 15, 2018 14:27
I am NOT getting right pressure at the air inlet in water column kcfd FLUENT 0 November 24, 2012 23:14
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 21:14
VOF-compression of air with rising water yavuz FLUENT 0 November 26, 2005 09:00


All times are GMT -4. The time now is 17:58.