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

[blockMesh] How to specify grid nodes along a cube

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2013, 22:40
Default How to specify grid nodes along a cube
  #1
New Member
 
Join Date: Oct 2013
Posts: 9
Rep Power: 12
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


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
Mesh Conversion : structured to unstructured shreyasr ANSYS 8 April 8, 2019 07:03
What is the difference between Non-staggered and Collocated grid? carl jung Main CFD Forum 2 January 23, 2017 14:39
Control function in Poisson eqtion grid generation? dinhanh Main CFD Forum 0 January 8, 2017 01:53
[FLUENT/ICEM] Transition modeling robboflea FLUENT 1 March 7, 2012 05:35
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 05:59


All times are GMT -4. The time now is 03:55.