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

[blockMesh] Problem adding work-piece in front of a gas jet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2019, 11:37
Default Problem adding work-piece in front of a gas jet
  #1
New Member
 
George Lindow
Join Date: May 2019
Posts: 3
Rep Power: 7
George2105 is on a distinguished road
Hey folks,

I am currently modelling a 2D supersonic gas nozzle and I am trying to add a cylindrical work-piece 2mm from the nozzle outlet. I have the nozzle and the cylinder both meshed but I am unsure whether this is the right method for a 2D case or whether I need to re-do the mesh and make it so the work-piece is represented as a lack of space for the air to flow into.

I will copy and paste my blockMeshDict file down below and I would be grateful for any help you can give me as I am very new to openFOAM, I hope I have made it clear what I am trying to do here. If what I have done is correct, I am unsure how to define the frontAndBack of the cylinder as empty to convert it into a 2D circle.

Many thanks in advance.

convertToMeters 0.001;

vertices
(
(0 0 0) //0
(9.03 0 0) //1
(9.03 0 -1) //2
(0 0 -1) //3
(0 -3.45 0) //4
(9.03 -3.45 0) //5
(9.03 -3.45 -1) //6
(0 -3.45 -1) //7
(3.635 -17 0) //8
(5.395 -17 0) //9
(5.395 -17 -1) //10
(3.635 -17 -1) //11
(3.5 -18.5 0) //12
(3.5 -18.5 -1) //13
(5.53 -18.5 0) //14
(5.53 -18.5 -1) //15
(3.5 -38.5 0) //16
(5.53 -38.5 0) //17
(5.53 -38.5 -1) //18
(3.5 -38.5 -1) //19
(-1.5 -18.5 0) //20
(-1.5 -18.5 -1) //21
(-1.5 -38.5 0) //22
(-1.5 -38.5 -1) //23
(10.53 -18.5 0) //24
(10.53 -18.5 -1) //25
(10.53 -38.5 0) //26
(10.53 -38.5 -1) //27

//cylinder work piece

(5.715 -20.5 0) //28
(4.515 -19.3 0) //29
(3.315 -20.5 0) //30
(4.515 -21.7 0) //31
(5.715 -20.5 -1) //32
(4.515 -19.3 -1) //33
(3.315 -20.5 -1) //34
(4.515 -21.7 -1) //35
(4.515 -20.5 0) //36
(4.515 -20.5 -1) //37
);

blocks
(
hex (1 0 3 2 5 4 7 6) (1 1 1) simpleGrading (1 1 1)
hex (5 4 7 6 9 8 11 10) (1 1 1) simpleGrading (1 1 1)
hex (9 8 11 10 14 12 13 15) (1 1 1) simpleGrading (1 1 1)
hex (14 12 13 15 17 16 19 18) (1 1 1) simpleGrading (1 1 1)
hex (12 20 21 13 16 22 23 19) (1 1 1) simpleGrading (1 1 1)
hex (14 24 26 17 15 25 27 18) (1 1 1) simpleGrading (1 1 1)

//cylinder work piece

hex (32 33 37 37 28 29 36 36) (10 10 10) simpleGrading (1 1 1)
hex (33 34 37 37 29 30 36 36) (10 10 10) simpleGrading (1 1 1)
hex (34 35 37 37 30 31 36 36) (10 10 10) simpleGrading (1 1 1)
hex (35 32 37 37 31 28 36 36) (10 10 10) simpleGrading (1 1 1)
);

edges
(
//cylinder work piece

arc 28 29 (5.363528137 -19.65147186 0)
arc 29 30 (3.666471836 -19.65147186 0)
arc 30 31 (3.666471836 -21.34852814 0)
arc 31 28 (5.363528137 -21.34852814 0)

arc 32 33 (5.363528137 -19.65147186 -1)
arc 33 34 (3.666471836 -19.65147186 -1)
arc 34 35 (3.666471836 -21.34852814 -1)
arc 35 32 (5.363528137 -21.34852814 -1)

);

boundary
(
inlet
{
type patch;
faces
(
(0 1 2 3)
);
}

outlet
{
type patch;
faces
(
(26 17 18 27)
(16 17 18 19)
(16 22 23 19)
(20 21 23 22)
(24 26 27 25)
(24 14 15 25)
(12 20 21 13)
);
}

wall
{
type wall;
faces
(
(1 5 6 2)
(0 4 7 3)
(5 9 10 6)
(4 8 11 7)
(9 14 15 10)
(8 12 13 11)

//cylinder work piece

(28 36 36 29)
(29 36 36 30)
(30 36 36 31) //0 z-axis
(31 36 36 28)

(33 37 37 32)
(34 37 37 33)
(35 37 37 34) //-1 z-axis
(32 37 37 35)

(28 29 33 32)
(29 30 33 34)
(30 31 35 34)
(31 28 32 35)
);
}

frontAndBack
{
type empty;
faces
(
(0 1 5 4)
(3 2 6 7)

(4 5 9 8)
(7 6 10 11)

(8 9 14 12)
(11 10 15 13)

(12 14 17 16)
(13 15 18 19)

(12 20 22 16)
(13 21 23 19)

(14 24 26 17)
(15 25 27 18)




);
}
);

mergePatchPairs
(
);
George2105 is offline   Reply With Quote

Reply

Tags
gas jet, meshing, openfoam


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
rhoCentralFoam Negative initial temperature in simulation of gas jet into vacuum c_underwood OpenFOAM Running, Solving & CFD 1 November 19, 2020 15:45
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 06:37
gas jet penetration shahrbanoo AVL FIRE 4 June 26, 2014 17:06
Ideal gas problem Atze CFX 12 March 20, 2014 16:56
COMSOL gas jet jm COMSOL 0 April 27, 2007 12:38


All times are GMT -4. The time now is 17:16.