CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/)
-   -   3D blockMesh for multiple material rectangular blocks one above another (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/107284-3d-blockmesh-multiple-material-rectangular-blocks-one-above-another.html)

Sargam05 September 22, 2012 21:46

3D blockMesh for multiple material rectangular blocks one above another
 
Hello everybody,

I am trying to make mesh for three multiple material rectangular blocks. In may case there are three solid blocks one above another. constant/polyMesh/blockMesh is:

convertToMeters 1;

vertices
(
(0.00025 0 0)
(0.0005 0 0)
(0.0005 0.000027 0)
(0.00025 0.000027 0)
(0.00025 0 0.0005)
(0.0005 0 0.0005)
(0.0005 0.000027 0.0005)
(0.00025 0.000027 0.0005)

(0.00025 0.000025 0)
(0.0005 0.000025 0)
(0.0005 0.000026 0)
(0.00025 0.000026 0)
(0.00025 0.000025 0.0005)
(0.0005 0.000025 0.0005)
(0.0005 0.000026 0.0005)
(0.00025 0.000026 0.0005)

);

blocks
(
hex (0 1 9 8 4 5 13 12) solid1 (100 80 50) simpleGrading (1.0 1.0 1.0)

hex (8 9 10 11 12 13 14 15) solid2 (100 50 50) simpleGrading (1.0 1.0 1.0)

hex (11 10 2 3 15 14 6 7) solid3 (100 50 50) simpleGrading (1.0 1.0 1.0)
);

edges
(
);

patches
(
// From Bottom to Top

patch
solid1_Bottom
(
(0 4 5 1)
)

patch
solid3_TOP
(
(3 7 6 2)
)

symmetryPlane left
(
(0 4 12 8)
(7 15 11 3)
(8 12 15 11)
)

patch solid1_right
(
(1 5 13 9)
)

patch solid3_right
(
(6 14 10 2)
)

patch solid2_right
(
(9 13 14 10)
)

patch frontAndBack
(
(4 5 13 12)
(13 14 15 12)
(15 14 6 7)
(0 1 9 8)
(9 10 11 8)
(11 10 2 3)
)
);

mergePatchPairs
(
);

I have also made three different folders of solid 1, 2, and 3 in constant directory (for defining physical properties) and system directories (for defining fvScheme and fvSolution).

blockMesh run successfully. Then I run
splitMeshRegions -cellZones -overwrite
It is showing following error after running above command:

Create time

Create mesh for time = 0

Trying to match regions to existing cell zones.


Number of regions:3

Writing region per cell file (for manual decomposition) to "/home/sangeeta/elasticThermalSolidFoam/constant/cellToRegion"

Writing region per cell as volScalarField to "/home/sangeeta/elasticThermalSolidFoam/0/cellToRegion"

Region Cells
------ -----
0 400000
1 250000
2 250000

Region Zone Name
------ ---- ----
0 0 solid1
1 1 solid2
2 2 solid3

Sizes inbetween regions:

Region Region Faces
------ ------ -----
0 1 5000
1 2 5000

Reading volScalarField cellToRegion


Adding patches


Adding patches

Inserting patch solid1_to_solid2 to slot 7 out of 7
--> FOAM Warning :
From function gAverage(const UList<Type>&)
in file /home/sangeeta/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/FieldFunctions.C at line 524
empty field, returning zero.


--> FOAM FATAL ERROR:

request for polyMesh solid2 from objectRegistry elasticThermalSolidFoam failed
available objects of type polyMesh are

1
(
region0
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/sangeeta/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 140.

FOAM aborting

Aborted

Does any one have any idea why this error is coming. How can I fix this problem?

Thanks in advance.

Best regards,
Sangeeta


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