CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

Difficulty Merging Blocks

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 26, 2012, 10:57
Default Difficulty Merging Blocks
  #1
New Member
 
Lake
Join Date: Jan 2012
Posts: 1
Rep Power: 0
lsingh is on a distinguished road
Hi all!

I'm new to OpenFOAM and have been trying to build my first test case. The geometry consists of a cylindrical inlet which opens into a larger cylindrical volume, which opens out to an even larger cylindrical volume. All three cylinders share the same major axis. Each cylinder makes up one block. I have been having problems with my blockMeshDict file when I define the walls of the larger cylinders which surround the inlet from the smaller cylinders. I have tried using MergePatchPairs to match things up with no success either. I have included my blockMeshDict file below. How should I be describing the back walls of the cylinders and the interface between each block?

Thank you all for your help!

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters .01;

vertices
(
    /*Cylinder 1 - Inlet*/
	(-1 -.15875 0)//0
	(0 -.15875 0)//1
	(0 .15875 0)//2
	(-1 .15875 0)//3
	(-1 0 .15875)//4
	(0 0 .15875)//5
	(0 0 -.15875)//6
	(-1 0 -.15875)//7
	
	/*Cylinder 2 - Helicon*/
	(0 -6.65 0)//8
	(29.2 -6.65 0)//9
	(29.2 6.65 0)//10
	(0 6.65 0)//11
	(0 0 6.65)//12
	(29.2 0 6.65)//13
	(29.2 0 -6.65)//14
	(0 0 -6.65)//15
	
	/*Cylinder 3 - Vacuum*/
	(29.2 -20 0)//16
	(100 -20 0)//17
	(100 20 0)//18
	(29.2 20 0)//19
	(29.2 0 20)//20
	(100 0 20)//21
	(100 0 -20)//22
	(29.2 0 -20)//23
	

);

blocks
(
    hex (0 1 6 7 4 5 2 3) (100 10 10) simpleGrading (1 1 1)//Inlet
    hex (8 9 14 15 12 13 10 11) (150 67 67) simpleGrading (5 1 1)//Helicon
	hex (16 17 22 23 20 21 18 19) (70 40 40) simpleGrading (1 1 1)//Vacuum
);

edges
(
	/*Inlet*/
	arc 0 4 (-1 -.112253202 .112253202)
	arc 3 4 (-1 .112253202 .112253202)
	arc 3 7 (-1 .112253202 -.112253202)
	arc 0 7 (-1 -.112253202 -.112253202)
	arc 1 5 (0 -.112253202 .112253202)
	arc 2 5 (0 .112253202 .112253202)
	arc 2 6 (0 .112253202 -.112253202)
	arc 1 6 (0 -.112253202 -.112253202)
	
	/*Helicon*/
	arc 8 12 (0 -4.70226009 4.70226009)
	arc 11 12 (0 4.70226009 4.70226009)
	arc 11 15 (0 4.70226009 -4.70226009)
	arc 8 15 (0 -4.70226009 -4.70226009)
	arc 9 13 (29.2 -4.70226009 4.70226009)
	arc 10 13 (29.2 4.70226009 4.70226009)
	arc 10 14 (29.2 4.70226009 -4.70226009)
	arc 9 14 (29.2 -4.70226009 -4.70226009)
	
	/*Vacuum*/
	arc 16 20 (29.2 -14.1421356 14.1421356)
	arc 19 20 (29.2 14.1421356 14.1421356)
	arc 19 23 (29.2 14.1421356 -14.1421356)
	arc 16 23 (29.2 -14.1421356 -14.1421356)
	arc 17 21 (100 -14.1421356 14.1421356)
	arc 18 21 (100 14.1421356 14.1421356)
	arc 18 22 (100 14.1421356 -14.1421356)
	arc 17 22 (100 -14.1421356 -14.1421356)

);

patches
(
    patch inlet
    (
        (0 4 3 7)
    )
    wall walls
    (
        /*Cylinder 1 Side Walls*/
		(5 4 0 1)
		(2 3 4 5)
		(3 2 6 7)
		(7 6 1 0)
		
		/*Cylinder 2 Side Walls*/
		(13 12 8 9)
		(10 11 12 13)
		(11 10 14 15)
		(15 14 9 8)
		
		/*Cylinder 2 Back Wall*/
		(11 2 5 12)
		(11 15 6 2)
		(6 15 8 1)
		(12 5 1 8)
		
		/*Cylinder 3 Back Wall*/
		(19 10 13 20)
		(19 23 14 10)
		(14 23 16 9)
		(20 13 9 16)
		
    )
    patch outlet
    (
        
		(18 21 17 22)
		(21 20 16 17)
		(18 19 20 21)
		(19 18 22 23)
		(23 22 17 16)
		
    )
	/*
	patch interface1
    (
        
		(2 5 1 6)
		
    )
	
	patch interface2
    (
        
		(11 15 8 12)
		
    )
	
	patch interface3
    (
        
		(9 14 10 13)
		
    )
	
	patch interface4
    (
        
		(19 23 16 20)
		
    )
	*/
);

mergePatchPairs
(
	/*(interface1 interface2)
	(interface3 interface4)*/
	
	
);
lsingh is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dsmcInitialise - dsmcFoam archymedes OpenFOAM Pre-Processing 93 February 11, 2014 02:22
fluent3DMeshToFoam bego OpenFOAM 27 May 29, 2013 14:08
[ICEM] Deleting VORFN blocks in ICEM CFD Sai Swaroop ANSYS Meshing & Geometry 5 October 18, 2011 11:26
Meshing multiple blocks Hanno OpenFOAM Native Meshers: snappyHexMesh and Others 3 February 17, 2011 13:14
Merging the blocks in ICEM saisanthoshm88 ANSYS Meshing & Geometry 1 December 27, 2010 11:14


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