CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Generating blockMesh for modified Bubble Column

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2017, 15:17
Default Generating blockMesh for modified Bubble Column
  #1
New Member
 
Anonymous
Join Date: Oct 2017
Posts: 1
Rep Power: 0
dashsubhankar is on a distinguished road
Hi!

I have become familiar with the OpenFOAM multiphaseEulerFoam solver and now I am trying to modify the geometries so that I can model the same on an equipment of my design.

I was trying to model bubble column as shown in the figure. The inlet is from the (8 9 10 11) and the exit is from the entire opposite face. However I am getting the errors:- permission denied/Fatal Error: Cannot Open Files and some other error also saying (when tried in a different way) that vertices unassigned.

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

convertToMeters 0.01;

vertices
(
    (0 0 0) //0
    (20 0 0) //1
    (20 20 0) //2
    (0 20 0) //3
    (0 0 90) //4
    (20 0 90) //5
    (20 20 90) //6
    (0 20 90) //7
    (9 9 0) //8
    (11 9 0) //9
    (11 11 0) //10
    (9 11 0) //11
    (9 9 90) //12
    (11 9 90) //13
    (11 11 90) //14
    (9 11 90) //15
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (20 20 90) simpleGrading (1 1 1)
    hex (0 1 9 8 4 5 13 12) (20 20 900) simpleGrading (1 1 1)
    hex (1 2 10 9 5 6 14 13) (20 20 900) simpleGrading (1 1 1)
    hex (2 3 11 10 6 7 15 14) (20 20 900) simpleGrading (1 1 1)
    hex (3 0 8 11 7 4 12 15) (20 20 900) simpleGrading (1 1 1)
    hex (8 9 10 11 12 13 14 15) (2 2 900) simpleGrading (1 1 1)
);

edges
(
);

patches
(
    patch inlet
    (
        (8 9 10 11)
    )
    patch outlet
    (
        (12 13 14 15)
		(4 5 13 12)
		(5 6 14 13)
		(6 7 15 14)
		(7 4 12 15)
    )
    wall walls
    (
        (0 4 7 3)
        (2 6 5 1)
		(0 1 5 4)
		(2 3 7 6)
    )
	empty
	(
		(0 1 9 8)
		(1 2 10 9)
		(2 3 11 10)
		(3 0 8 11)
	)
);

mergePatchPairs
(
);

// ************************************************************************* //
Attached Images
File Type: jpg Capture.JPG (70.5 KB, 37 views)
dashsubhankar is offline   Reply With Quote

Old   December 29, 2017, 05:17
Default
  #2
New Member
 
Chris
Join Date: Sep 2017
Posts: 5
Rep Power: 9
kaber is on a distinguished road
Dear dashsubhankar,

your block assignment seems to be the problem.....

Your first block is already the hole domain. You need to make nine blocks, i.e.

Code:
convertToMeters 0.01;

vertices
(
    (0 0 0)     //0
    (20 0 0)     //1
    (20 20 0)     //2
    (0 20 0)     //3
    (0 0 90)     //4
    (20 0 90)     //5
    (20 20 90)     //6
    (0 20 90)     //7

    (9 9 0)     //8
    (11 9 0)     //9
    (11 11 0)    //10
    (9 11 0)     //11
    (9 9 90)     //12
    (11 9 90)     //13
    (11 11 90)    //14
    (9 11 90)     //15

    (9 0 0)    //16
    (11 0 0)    //17
    (9 20 0)    //18
    (11 20 0)    //19
    (9 0 90)    //20
    (11 0 90)    //21
    (9 20 90)    //22
    (11 20 90)    //23

    (0 9 0)    //24
    (0 11 0)    //25
    (20 9 0)    //26
    (20 11 0)    //27
    (0 9 90)    //28
    (0 11 90)    //29
    (20 9 90)    //30
    (20 11 90)    //31
);

blocks
(
    hex (0 16 8 24 4 20 12 28) (20 20 90) simpleGrading (1 1 1)
    hex (24 8 11 25 28 12 15 29) (20 20 90) simpleGrading (1 1 1)
    hex (25 11 18 3 29 15 22 7) (20 20 90) simpleGrading (1 1 1)
    hex (16 17 9 8 20 21 13 12) (20 20 90) simpleGrading (1 1 1)
    hex (8 9 10 11 12 13 14 15) (20 20 90) simpleGrading (1 1 1)
    hex (11 10 19 18 15 14 23 22) (20 20 90) simpleGrading (1 1 1)
    //.....
);

edges
(
);

patches
(
    patch Inlet
    (
        (9 8 11 10)
    )
    patch Outlet
    (
            (4 20 12 28)
        (28 12 15 29)
        (29 15 22 7)
        (20 21 13 12)
        (13 14 15 12)
        (15 14 23 22)
    )
    wall Wall
    (
            (0 16 20 4)
        (0 4 28 24)
        (28 29 25 24)
        (29 7 3 25)
        (3 7 22 18)
        (16 17 21 20)
        (22 23 19 18)
    )
);

mergePatchPairs
(
);
best regards
Attached Images
File Type: png Domain.png (41.4 KB, 32 views)
kaber 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
Bubble Column Modelling dlaw FLUENT 24 October 31, 2017 07:01
Problem: bubble column with twoPhaseEulerFoam hester OpenFOAM Running, Solving & CFD 6 January 22, 2016 13:25
2D bubble rising through a column of water vof64 Fluent Multiphase 0 August 20, 2014 00:42
bubble column ken FLUENT 1 June 30, 2013 02:18
Doxygen documentation Tanay OpenFOAM Installation 9 September 23, 2011 12:40


All times are GMT -4. The time now is 11:08.