CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

How to specify grid nodes along a cube

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 5, 2013, 23:40
Default How to specify grid nodes along a cube
  #1
New Member
 
Join Date: Oct 2013
Posts: 9
Rep Power: 4
Matt_h is on a distinguished road
Hello

I have a 1D convection-diffusion problem with a domain as a 1 x 1 x 1 m cube. I am trying to just split the cube into 5 sections and view the result in paraFoam. In other words, specify 5 grid nodes along the flow direction. I think it involves changing the Blockmesh file but I can't work out what to do?

Here is my current blockmesh file:

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

blocks
(
hex (0 1 2 3 4 5 6 7) (10 1 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
x-min {type patch;
faces
(
(0 4 7 3)
);
}
x-max {type patch; faces ((1 2 6 5));}
sides {type empty; faces ((0 3 2 1)(4 5 6 7)(0 1 5 4)(7 6 2 3)
);
}
);

mergePatchPairs
(
);
// ************************************************** *********************** /
Matt_h 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
Mesh Conversion : structured to unstructured shreyasr ANSYS 7 April 13, 2013 09:34
[FLUENT/ICEM] Transition modeling robboflea FLUENT 1 March 7, 2012 06:35
Obtain Geometry Data from a Grid File in CFX 10.0 ARJUN CFX 2 August 17, 2006 07:20
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 05:59
Numerical methods for discontinuous grid interfaces? Hansong Hang Main CFD Forum 12 September 16, 1998 22:26


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