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

Issue with simulating a river and its surrounding

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2025, 06:24
Question Issue with simulating a river and its surrounding
  #1
Member
 
Boris
Join Date: Jan 2017
Posts: 30
Rep Power: 10
Hawxliquid is on a distinguished road
Hi everyone!


I am trying to do a simulation of a river and its surrounding. I made an example mesh and you can find the files here : https://www.dropbox.com/scl/fi/nu1k4...=s52n6k84&dl=0


I am using interFoam, but can not get any results. I have several issue, but the main one for now is the weird behaviour of the air part, as seen in the image. There seems to be some kind of weird unstability arising.
Do you have any idea of the BCs I should be using in that case?
Here are the main current ones (to reference to the image, if you do not want to download the example case)


alpha.water (before the setField do define a bit of water at the inlet)


Code:
    inlet
    {
        type            variableHeightFlowRate;
        lowerBound      0;
        upperBound      1;
        value           uniform 0;
    }

    walls
    {
        type            zeroGradient;
    }

    outlet
    {
        type            zeroGradient;
        value           uniform 0;
    }

    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    side_atmosphere
    {
        type            zeroGradient;
        value           uniform 0;
    }
U
Code:
    inlet
    {
        type            variableHeightFlowRateInletVelocity;
        flowRate        1;
        alpha           alpha.water;
        value           uniform (0 0 0);
    }

    walls
    {
        type            noSlip;
    }

    atmosphere
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }
    side_atmosphere
    {
        type            zeroGradient;

    }
    outlet
    {
        type            zeroGradient;
    }
p_rgh
Code:
    atmosphere
    {
        type            totalPressure;
        p0              uniform 0;

    }


    inlet
    {
        type            zeroGradient;

    }

    walls
    {
        type            fixedFluxPressure;
    }


    side_atmosphere
    {
        type            zeroGradient;
    }
    outlet
    {
        type            zeroGradient;
    }
Thanks!


Screenshot 2025-11-19 110927.jpg
Screenshot 2025-11-19 111817.jpg
Screenshot 2025-11-19 111830.jpg
Hawxliquid is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



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