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

Tutorial 2.2 Flow around a cylinder - Not generating results.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2022, 17:53
Default Tutorial 2.2 Flow around a cylinder - Not generating results.
  #1
New Member
 
David
Join Date: Jul 2021
Posts: 14
Rep Power: 5
rudyy is on a distinguished road
Hello,

I'm trying to work through the OpenFOAM tutorials and am frustratingly stuck on the second one. I'm able to mesh and apparently solve without errors, but in ParaView I cannot generate any results (streamlines, p/U fields, etc). Here is what I'm working with:

Version: OpenFOAM v. 2112 running on WSL Ubuntu 20.04.4
Tutorial: basic/potentialFoam/cylinder folder is copied to an OpenFOAM directory in my home folder
Meshing: After running blockMesh I opened the file in ParaView and confirmed the mesh looks as expected and the walls are correctly named.
BCs: See below
Solver: See output from the solver below
Notes:
- I have solved the cavity tutorial and successfully processed p/U fields in ParaView, so I don't believe the issue is translating to the post-processor
- I changed the "nNonOrthogonalCorrectors" designation to Zero as per the tutorial's suggestion. I also tried with designation 3 and got same result.
- I have checked the fvSolution file and confirmed that potentialFlow is referenced (another question on this forum had this issue)
- I did rename the folder "0.orig" to "0" and delete the .orig directory
- I tried another attempt by running the "Allrun" file before touching anything in the directory with same results.

Does anyone have a suggestion? Is there more information I can provide that would help diagnost this?

Thank you kindly

BCs:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0 0);

boundaryField
{
    down
    {
        type            symmetryPlane;
    }

    right
    {
        type            zeroGradient;
    }

    up
    {
        type            symmetryPlane;
    }

    left
    {
        type            uniformFixedValue;
        uniformValue    constant (1 0 0);
    }

    cylinder
    {
        type            symmetry;
    }

    defaultFaces
    {
        type            empty;
    }
}


// ************************************************************************* //
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0;

boundaryField
{
    down
    {
        type            symmetryPlane;
    }

    right
    {
        type            fixedValue;
        value           uniform 0;
    }

    up
    {
        type            symmetryPlane;
    }

    left
    {
        type            zeroGradient;
    }

    cylinder
    {
        type            symmetry;
    }

    defaultFaces
    {
        type            empty;
    }
}


// ************************************************************************* //
Output:
Code:
user@username-redacted:~/OpenFOAM/cylinder$ potentialFoam
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2112                                  |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _80318542-20220301 OPENFOAM=2112 patch=220310 version=2112
Arch   : "LSB;label=32;scalar=64"
Exec   : potentialFoam
Date   : Jun 13 2022
Time   : 15:22:50
Host   : username-redacted
PID    : 794
I/O    : uncollated
Case   : /home/user/OpenFOAM/cylinder
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


potentialFlow: Operating solver in PISO mode

Reading velocity field U

Constructing pressure field p

Constructing velocity potential field Phi

No MRF models present


Calculating potential flow
GAMG:  Solving for Phi, Initial residual = 1, Final residual = 0.00645988, No Iterations 5
Continuity error = 0.00169825
Interpolated velocity error = 0.000131161
ExecutionTime = 0.03 s  ClockTime = 0 s

End
rudyy is offline   Reply With Quote

Old   December 5, 2022, 09:29
Default
  #2
New Member
 
NickyN
Join Date: Dec 2022
Posts: 1
Rep Power: 0
UserOfThisForum is on a distinguished road
Hi I have faced the same issue. It turned out to be a simple solution: just uncheck "Skip Zero Time" in the properties pane in ParaView.

Looks like potentialFoam is used to create consistent boundary and initial conditions for other solvers. For that reason potentialFoam results are saved to 0/ directory

Cheers
UserOfThisForum is offline   Reply With Quote

Old   December 5, 2022, 09:32
Default
  #3
New Member
 
David
Join Date: Jul 2021
Posts: 14
Rep Power: 5
rudyy is on a distinguished road
Thank you! I did end up figuring that out but forgot to update here.
rudyy is offline   Reply With Quote

Old   June 2, 2023, 14:27
Default Thank You!
  #4
New Member
 
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 3
sstevenson638 is on a distinguished road
I had the same problem. Thanks for helping!
sstevenson638 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
[mesh manipulation] Mirroring flow around cylinder tutorial Davide95 OpenFOAM Meshing & Mesh Conversion 3 March 31, 2022 08:43
Tutorial: flow around a cylinder TU_Hiwi OpenFOAM Post-Processing 12 May 29, 2020 08:35
Problem with grid convergence for turbulent flow around cylinder aakie OpenFOAM Running, Solving & CFD 3 November 13, 2018 05:39
Incorrect Drag and Drag Coefficient for flow over a cylinder ozzythewise Main CFD Forum 8 June 13, 2012 07:24
Incompressible, Unsteady Cylinder Flow startingcfd Main CFD Forum 1 March 15, 2011 02:12


All times are GMT -4. The time now is 00:18.