How to specify grid nodes along a cube
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 ( ); // ************************************************** *********************** / |
All times are GMT -4. The time now is 01:13. |