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

OpenFOAM v1912 Green Water Loading Case Implementation Problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2020, 13:37
Default OpenFOAM v1912 Green Water Loading Case Implementation Problem
  #1
New Member
 
Semih Batuhan Candir
Join Date: Feb 2020
Posts: 3
Rep Power: 4
leuthar is on a distinguished road
Hello everyone,

I'm trying to implement the IHFoam Green Water Loading Case in OpenFOAM v1912, I have managed to create the mesh using damBreak case located in the multiphase interfoam ras tutorial, but now I am not able to solve the problem. When I try commands setFields or interFoam program exits with an error saying that "Cannot find patchField entry for rigthWall" I have checked every single parameter declaration in "0" file, but couldn't find where the problem is. If you could help me to solve the problem, I would be more than glad.

Here is my blockMeshDict file;

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

scale   1.000;

vertices
(
    (0.00 0.00 0.00) // 0
    (2.39 0.00 0.00) // 1
    (2.55 0.00 0.00) // 2
    (3.22 0.00 0.00) // 3
    (0.00 0.00 0.16) // 4
    (2.39 0.00 0.16) // 5
    (2.55 0.00 0.16) // 6
    (3.22 0.00 0.16) // 7
    (0.00 0.00 1.00) // 8
    (2.39 0.00 1.00) // 9
    (2.55 0.00 1.00) // 10
    (3.22 0.00 1.00) // 11
    (0.00 0.20 0.00) // 12
    (2.39 0.20 0.00) // 13
    (2.55 0.20 0.00) // 14
    (3.22 0.20 0.00) // 15
    (0.00 0.20 0.16) // 16
    (2.39 0.20 0.16) // 17
    (2.55 0.20 0.16) // 18
    (3.22 0.20 0.16) // 19
    (0.00 0.20 1.00) // 20
    (2.39 0.20 1.00) // 21
    (2.55 0.20 1.00) // 22
    (3.22 0.20 1.00) // 23
    (0.00 0.50 0.00) // 24
    (2.39 0.50 0.00) // 25
    (2.55 0.50 0.00) // 26
    (3.22 0.50 0.00) // 27
    (0.00 0.50 0.16) // 28
    (2.39 0.50 0.16) // 29
    (2.55 0.50 0.16) // 30
    (3.22 0.50 0.16) // 31
    (0.00 0.50 1.00) // 32
    (2.39 0.50 1.00) // 33
    (2.55 0.50 1.00) // 34
    (3.22 0.50 1.00) // 35
);

blocks
(
    hex (0 1 13 12 4 5 17 16) (239 20 16) simpleGrading (1 1 1)
    hex (2 3 15 14 6 7 19 18) (67 20 16) simpleGrading (1 1 1)
    hex (4 5 17 16 8 9 21 20) (239 20 84) simpleGrading (1 1 1)
    hex (5 6 18 17 9 10 22 21) (16 20 84) simpleGrading (1 1 1)
    hex (6 7 19 18 10 11 23 22) (67 20 84) simpleGrading (1 1 1)
    hex (12 13 25 24 16 17 29 28) (239 30 16) simpleGrading (1 1 1)
    hex (13 14 26 25 17 18 30 29) (16 30 16) simpleGrading (1 1 1)
    hex (14 15 27 26 18 19 31 30) (67 30 16) simpleGrading (1 1 1)
    hex (16 17 29 28 20 21 33 32) (239 30 84) simpleGrading (1 1 1)
    hex (17 18 30 29 21 22 34 33) (16 30 84) simpleGrading (1 1 1)
    hex (18 19 31 30 22 23 35 34) (67 30 84) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    leftWall
    {
        type wall;
        faces
        (
            (0 12 16 4)
            (4 16 20 8)
            (12 24 28 16)
            (16 28 32 20)
        );
    }
    rigthWall
    {
        type wall;
        faces
        (
            (7 19 15 3)
            (11 23 19 7)
            (19 31 27 15)
            (23 35 31 19)
        );
    }
    lowerWall
    {
        type wall;
        faces
        (
            (0 1 13 12)
            (1 5 17 13)
            (5 6 18 17)
            (2 14 18 6)
            (2 3 15 14)
            (12 13 25 24)
            (13 14 26 25)
            (14 15 27 26)
            (13 17 18 14)
        );
    }
    sideWall
    {
        type wall;
        faces
        (
            (24 25 29 28)
            (25 26 30 29)
            (26 27 31 30)
            (28 29 33 32)
            (29 30 34 33)
            (30 31 35 34)
        );
    }
    symmetry
    {
        type symmetryPlane;
        faces
        (
            (8 9 5 4)
            (4 5 1 0)
            (9 10 6 5)
            (10 11 7 6)
            (6 7 3 2)
        );
    }
    atmosphere
    {
        type patch;
        faces
        (
            (8 20 21 9)
            (9 21 22 10)
            (10 22 23 11)
            (20 32 33 21)
            (21 33 34 22)
            (22 34 35 23)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //
setFields File;

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

defaultFieldValues
(
    volScalarFieldValue alpha.water 0
);

regions
(
    boxToCell
    {
        box (0 0 0) (1.22 0.5 0.55);
        fieldValues
        (
            volScalarFieldValue alpha.water 1
        );
    }
);


// ************************************************************************* //
p_rgh File;

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

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

internalField   uniform 0;

boundaryField
{
    leftWall
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    rightWall
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    lowerWall
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    sideWall
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    atmosphere
    {
        type            totalPressure;
        p0              uniform 0;
    }
}

// ************************************************************************* //
alpha.water File;

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

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    leftWall
    {
        type            zeroGradient;
    }

    rightWall
    {
        type            zeroGradient;
    }

    lowerWall
    {
        type            zeroGradient;
    }

    sideWall
    {
        type            zeroGradient;
    }

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

    defaultFaces
    {
        type            empty;
    }
}

// ************************************************************************* //
leuthar is offline   Reply With Quote

Old   March 12, 2020, 04:17
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 601
Rep Power: 20
Yann will become famous soon enough
Hi Leuthar,

You just have a typo in your blockMeshDict : rigthWall instead of rightWall. This cause a mismatch between your patch names "rigthWall" in your mesh and your boundary condition defined for "rightWall".

Cheers!
Yann
Yann is offline   Reply With Quote

Old   March 12, 2020, 17:42
Default
  #3
New Member
 
Semih Batuhan Candir
Join Date: Feb 2020
Posts: 3
Rep Power: 4
leuthar is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hi Leuthar,

You just have a typo in your blockMeshDict : rigthWall instead of rightWall. This cause a mismatch between your patch names "rigthWall" in your mesh and your boundary condition defined for "rightWall".

Cheers!
Yann
I was thinking the problem was in the boundary conditions, that would have take ages for me to find about that. Thanks a lot, very much appreciated!
leuthar is offline   Reply With Quote

Reply

Tags
green water loading, openfoam v1912

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mass imbalance problem in multiphase water and steam CFX case Antech CFX 1 October 26, 2020 05:03
implementation of constant water levels as boundary conditions horn OpenFOAM Pre-Processing 2 October 12, 2015 18:45
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
Can OpenFoam solve this problem? salazardetroya OpenFOAM Running, Solving & CFD 1 July 29, 2015 23:34
[Helyx OS] Problem Loading an existing OpenFoam case into HELYX RocketMan1691 OpenFOAM Community Contributions 7 March 5, 2013 18:39


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