saving . . . saved Setting up curved pipe case for velocity driven flow (Salome to OpenFOAM) has been deleted. Setting up curved pipe case for velocity driven flow (Salome to OpenFOAM) has been hidden .
Setting up curved pipe case for velocity driven flow (Salome to OpenFOAM)
Title
Question
Hello,

First of all, thank you to the Spoken tutorial team and Saurabh Sawant for this tutorial.
I successfully created the geometry in Salome and exported it to OpenFOAM.
I made the required changes from the Hagen Poiseuille tutorial and got the expected results.

I wanted to set up a simulation for the same geometry but this time I want the flow to driven by the velocity at the inlet. (Similar to the elbow tutorial of OpenFOAM but with one less input).

I set up the simulation with boundary conditions similar to the elbow tutorial. But after the simulation, I can only see the applied velocity at the inlet and nothing happens.

Could you please explain how I can set up a velocity driven flow?
I have all other files same as the file set up in the Hagen Poiseuille tutorial. 
Here are the changes I made to p & U files: (I have not included the redundant parts)

// * * * * * * * * * * * * * * * * * p * * * * * * * * * * * * * * * * * * * //
boundaryField
{
    inlet
    {
        type             zeroGradient;
    }

    outlet
    {
<span style="white-space:pre"> </span>type            fixedValue;
        value           uniform 0;
    }

    walls
    {
        type             zeroGradient;
    }
}

// * * * * * * * * * * * * * * * *U* * * * * * * * * * * * * * * * * * * * * //
boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform (1 0 0);
    }

    outlet
    {
        type            zeroGradient;
    }

    walls
    {
        type            noSlip;
    }
}

Thank you very much for your tutorials, they helped me a lot.

OpenFOAM Exporting-geometry-from-Salome-to-OpenFOAM 08-09 min 30-40 sec 13-05-20, 1:54 p.m. padhav

Answers:

Hi,

The pressure gradient at the inlet shouldn't be zero for a velocity driven flow. An apt pressure inlet condition would be fixedFluxPressure, which calculates the pressure gradient at the inlet based on your inlet velocity. All the other boundary conditions look good. 

Please let me now if that fixes your problem.

Regards,
Ashley
13-05-20, 2:28 p.m. ashleymelvin1193@gmail.com


Hello,

Please check the direction of your velocity.
If that is correct you will get results.
If not, please let us know.

Regards,
Divyesh
13-05-20, 2:39 p.m. divyesh7


I got the expected results.

The main issue was the direction of the velocity applied.
But I did also see a difference in the pressure output after using the fixedFluxPressure.

Thank you Divyesh & Ashley.

13-05-20, 4:53 p.m. padhav


Log-in to answer to this question.