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

Patchfield error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2014, 17:23
Default Patchfield error
  #1
New Member
 
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12
viv123 is on a distinguished road
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            fixedValue;
    value        uniform 0;
    }
    
    top
    {
    type        zeroGradient;
    }

    bottom
    {
    type        zeroGradient;
    }
    
    cylinder
    {
    type        zeroGradient;
    }
    
    sides
    {
        type            empty;
    }
}

// ************************************************************************* //
This is the code in p file for flow over a circular cylinder. We are getting the error: cannot find patchfield entry for outlet. Please help.

Last edited by wyldckat; September 21, 2014 at 16:19. Reason: Added [CODE][/CODE]
viv123 is offline   Reply With Quote

Old   September 20, 2014, 01:44
Default
  #2
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13
kmefun is on a distinguished road
Could you post your test case?
kmefun is offline   Reply With Quote

Old   September 20, 2014, 01:56
Default
  #3
New Member
 
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12
viv123 is on a distinguished road
Hi kmefun,

The test case is simple flow past a circular cylinder to observe laminar vortex shedding. I am using pisoFoam solver for this. 0>>p file I have given in older thread.

0>>U
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     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
{
    inlet
    {
        type            fixedValue;
        value           uniform (1 0 0);
    }

    outlet
    {
        type            zeroGradient;
    }
    
    top
    {
    type        slip;
    }

    bottom
    {
    type        slip;
    }
    
    cylinder
    {
    type        fixedValue;
    value        uniform (0 0 0);
    }
    
    sides
    {
        type            empty;
    }
}

// ************************************************************************* //
I found this code in a tutorial online and in the tutorial the code is giving correct results but on my machine when I run the same code I get "Cannot find patchField entry for outlet" error.

Many thanks!

Last edited by wyldckat; September 21, 2014 at 16:19. Reason: Added [CODE][/CODE]
viv123 is offline   Reply With Quote

Old   September 20, 2014, 02:01
Default
  #4
New Member
 
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12
viv123 is on a distinguished road
blockMeshDict

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
    (-23 -25 0)            //0
    ( 23 -25 0)            //1
    (40 -25 0)            //2
    (-0.7071 -0.7071 0)        //3
    ( 0.7071 -0.7071 0)        //4
    (-0.7071  0.7071 0)        //5
    ( 0.7071  0.7071 0)        //6
    (-23 25 0)            //7
    ( 23 25 0)            //8
    (40 25 0)            //9
    
    
    (-23 -25 1)            
    ( 23 -25 1)            
    (40 -25 1)            
    (-0.7071 -0.7071 1)        
    ( 0.7071 -0.7071 1)        
    (-0.7071  0.7071 1)        
    ( 0.7071  0.7071 1)        
    (-23 25 1)            
    ( 23 25 1)            
    (40 25 1)            
    
    
    
    
);

blocks
(
    hex (0 3 5 7 10 13 15 17) (200 60 1) simpleGrading (0.20 1 1)
    hex (1 4 3 0 11 14 13 10) (200 60 1) simpleGrading (0.20 1 1)
    hex (4 1 8 6 14 11 18 16) (200 100 1) simpleGrading (5 1 1)
    hex (6 8 7 5 16 18 17 15) (200 60 1) simpleGrading (5 1 1)
    hex (1 2 9 8 11 12 19 18) (100 100 1) simpleGrading (1 1 1)
);

edges
(
   arc 3 5 (-1 0 0)
   arc 13 15 (-1 0 1)
   arc 4 6 (1 0 0)
   arc 14 16 (1 0 1)
   arc 5 6 (0 1 0)
   arc 15 16 (0 1 1)
   arc 3 4 (0 -1 0)
   arc 13 14(0 -1 1)
);

boundary
(
    inlet
    {
        type wall;
        faces
        (
            (17 7 0 10)
        );
    }
    
    outlet
    {
        type wall;
        faces
        (
            (9 19 12 2)
        );
    }
    
    top
    {
        type wall;
        faces
        (
            (8 7 17 18)
        (9 8 18 19)
        );
    }
    
    bottom
    {
        type wall;
        faces
        (
            (0 1 11 10)
        (1 2 12 11)
        );
    }
    
    cylinder
    {
        type wall;
        faces
        (
            (5 6 16 15)
        (16 6 4 14)
        (4 3 13 14)
        (3 5 15 13)
        );
    }
    
    sides
    {
        type empty;
        faces
        (
            (7 8 6 5)
        (7 5 3 0)
        (3 4 1 0)
        (8 1 4 6)
        (8 9 2 1)
        
        (18 17 15 16)
        (15 17 10 13)
        (14 13 10 11)
        (18 16 14 11)
        (19 18 11 12)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //
Apart from this there are other files: controlDict, decomposeParDict, fvSchemes, fvSolution and the usual RASProperties, transportProperties, turbulenceProperties files.

Any help would be appreciated

Last edited by wyldckat; September 21, 2014 at 16:20. Reason: Added [CODE][/CODE]
viv123 is offline   Reply With Quote

Old   September 20, 2014, 12:38
Default
  #5
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13
kmefun is on a distinguished road
blockMeshDict
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
    (-23 -25 0)            //0
    ( 23 -25 0)            //1
    (40 -25 0)            //2
    (-0.7071 -0.7071 0)        //3
    ( 0.7071 -0.7071 0)        //4
    (-0.7071  0.7071 0)        //5
    ( 0.7071  0.7071 0)        //6
    (-23 25 0)            //7
    ( 23 25 0)            //8
    (40 25 0)            //9
    
    
    (-23 -25 1)            
    ( 23 -25 1)            
    (40 -25 1)            
    (-0.7071 -0.7071 1)        
    ( 0.7071 -0.7071 1)        
    (-0.7071  0.7071 1)        
    ( 0.7071  0.7071 1)        
    (-23 25 1)            
    ( 23 25 1)            
    (40 25 1)            
    
    
    
    
);

blocks
(
    hex (0 3 5 7 10 13 15 17) (200 60 1) simpleGrading (0.20 1 1)
    hex (1 4 3 0 11 14 13 10) (200 60 1) simpleGrading (0.20 1 1)
    hex (4 1 8 6 14 11 18 16) (200 100 1) simpleGrading (5 1 1)
    hex (6 8 7 5 16 18 17 15) (200 60 1) simpleGrading (5 1 1)
    hex (1 2 9 8 11 12 19 18) (100 100 1) simpleGrading (1 1 1)
);

edges
(
   arc 3 5 (-1 0 0)
   arc 13 15 (-1 0 1)
   arc 4 6 (1 0 0)
   arc 14 16 (1 0 1)
   arc 5 6 (0 1 0)
   arc 15 16 (0 1 1)
   arc 3 4 (0 -1 0)
   arc 13 14(0 -1 1)
);

boundary
(
    inlet
    {
        type patch; 
        faces
        (
            (17 7 0 10)
        );
    }
    
    outlet
    {
        type patch;
        faces
        (
            (9 19 12 2)
        );
    }

Last edited by wyldckat; September 21, 2014 at 16:21. Reason: Added [CODE][/CODE]
kmefun is offline   Reply With Quote

Old   September 21, 2014, 15:41
Default
  #6
New Member
 
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12
viv123 is on a distinguished road
Thanks for the reply.... Tried this but we are getting the same error
viv123 is offline   Reply With Quote

Old   September 21, 2014, 16:26
Default
  #7
New Member
 
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12
viv123 is on a distinguished road
Could you please take a look at this site. They have given a tutorial video and codes there. We are trying to run their exact code but getting this error.

http://www.comflics.de/2014/08/openf...-shedding.html

Thanks!
viv123 is offline   Reply With Quote

Old   September 22, 2014, 17:25
Default
  #8
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13
kmefun is on a distinguished road
I download this test case and it is runing OK!
test.jpg
this is velocity field for 10 sec
kmefun is offline   Reply With Quote

Old   September 22, 2014, 17:32
Default
  #9
New Member
 
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12
viv123 is on a distinguished road
I don't know why I am getting this error.
Could you help me with a few points?

1. Which version of OpenFOAM did you use?
2. Did you clone it from GitHub or did you download the zip file?

I am unable to do both so I opened every file and copy-pasted the content of all the files.

Thanks a lot for your time!
viv123 is offline   Reply With Quote

Old   September 22, 2014, 17:54
Default
  #10
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13
kmefun is on a distinguished road
I use OF 2.3
https://www.dropbox.com/s/ehb1f3hmub...dding.zip?dl=0

You can dowload the test case I ran above.
kmefun is offline   Reply With Quote

Old   September 22, 2014, 18:11
Default
  #11
New Member
 
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12
viv123 is on a distinguished road
This works! You are awesome!!

Thank you once again

Now I will try to find why earlier it was not working.
viv123 is offline   Reply With Quote

Old   October 14, 2014, 05:25
Default
  #12
New Member
 
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12
viv123 is on a distinguished road
I have been trying to simulate the case for flow over oscillating rectangular cylinder. In the blockMeshdict file, I removed the arc commands and changed the dimensions so as to make the bluff body and ran the same code for stationary rectangular cylinder. It ran for a time step of 0.025 second and then exited with an error. Any ideas regarding this?
Thanks in advance
viv123 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31


All times are GMT -4. The time now is 12:37.