CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   PLease somebody help:problem while changing blockMeshDict file (https://www.cfd-online.com/Forums/openfoam-installation/77001-please-somebody-help-problem-while-changing-blockmeshdict-file.html)

vivek070176 June 10, 2010 06:49

PLease somebody help:problem while changing blockMeshDict file
 
I am using openfoam 1.6 on opensuse 10.3 and i am working using dieselFoamsolver.....when i tried to run the aachen bomb case it worked fine using the following blockmesh dict file::


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

convertToMeters 0.001;

vertices
(
(-10 0 -10)
(-10 0 10)
(10 0 10)
(10 0 -10)
(-10 100 -10)
(-10 100 10)
(10 100 10)
(10 100 -10)
);

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

edges
(
);

patches
(
wall walls
(
(2 6 5 1)
(0 4 7 3)
(0 1 5 4)
(4 5 6 7)
(7 6 2 3)
(3 2 1 0)
)
);

mergePatchPairs
(
);

// ************************************************** *********************** //



NOW I TRIED TO CHANGE THE BLOCKMESHDICT FILE TO::


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

convertToMeters 0.001;

vertices
(
// (Y Z X)
// Quader aussen
(-10 50 -10)
(-10 50 10)
(10 50 10)
(10 50 -10)
(-10 100 -10)
(-10 100 10)
(10 100 10)
(10 100 -10)
// Quader innen
(-4 50 -4)
(-4 50 4)
(4 50 4)
(4 50 -4)
(-4 100 -4)
(-4 100 4)
(4 100 4)
(4 100 -4)


);

blocks
(
// Innenblock
hex (8 9 10 11 12 13 14 15) (25 25 50) simpleGrading (1 1 1)
// Innenblock für enge Geometrie nur mit innerem Block
// hex (0 1 2 3 4 5 6 7) (25 25 35) simpleGrading (1 1 1)
// Randbloecke (Punkte) Vernetzung(X Y Z) NetzGrade(X Y Z)
hex (0 1 9 8 4 5 13 12) (25 10 50) simpleGrading (1 0.5 1)
hex (1 2 10 9 5 6 14 13) (25 10 50) simpleGrading (1 0.5 1)
hex (2 3 11 10 6 7 15 14) (25 10 50) simpleGrading (1 0.5 1)
hex (3 0 8 11 7 4 12 15) (25 10 50) simpleGrading (1 0.5 1)

);

edges
(
);

patches
(
wall walls
(
// Waende: Rechte-Hand-Regel, Punkte Drehsinn so, dass Wand nach außen orientiert
// oben
(4 5 13 12)
(5 6 14 13)
(6 7 15 14)
(7 4 12 15)
(12 13 14 15)
//unten
(0 8 9 1)
(1 9 10 2)
(2 10 11 3)
(3 11 8 0)
(8 11 10 9)
//Seiten
(0 1 5 4)
(1 2 6 5)
(2 3 7 6)
(3 0 4 7)
//Seiten für enge Geometrie nur mit innerem Block
// (0 3 2 1)
// (4 5 6 7)
)
);

mergePatchPairs
(
);

// ************************************************** *********************** //



Solver worked fine upto certain timesteps but after time 700 microseconds, it showed an error ::






cfd@linux-bw7o:~/OpenFOAM/cfd-1.6/run/aachen_enno_blockmesh> mpirun -np 4 diesel
Foam -parallel > log &
[1] 6687
cfd@linux-bw7o:~/OpenFOAM/cfd-1.6/run/aachen_enno_blockmesh> [3] #0 Foam::error
::printStack(Foam::Ostream&) in "/home/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccD
POpt/libOpenFOAM.so"
[3] #1 Foam::sigFpe::sigFpeHandler(int) in "/home/cfd/OpenFOAM/OpenFOAM-1.6/lib
/linux64GccDPOpt/libOpenFOAM.so"
[3] #2 ?? in "/lib64/libc.so.6"
[3] #3 Foam::RanzMarshall::relaxationTime(double, double, double, double, doubl
e, double) const in "/home/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdies elSpray.so"
[3] #4 Uninterpreted:
[linux-bw7o:06694] *** Process received signal ***
[linux-bw7o:06694] Signal: Floating point exception (8)
[linux-bw7o:06694] Signal code: (-6)
[linux-bw7o:06694] Failing at address: 0x3e800001a26
[linux-bw7o:06694] [ 0] /lib64/libc.so.6 [0x2b58661c7bd0]
[linux-bw7o:06694] [ 1] /lib64/libc.so.6(gsignal+0x35) [0x2b58661c7b45]
[linux-bw7o:06694] [ 2] /lib64/libc.so.6 [0x2b58661c7bd0]
[linux-bw7o:06694] [ 3] /home/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libd ieselSpray.so(_ZNK4Foam12RanzMarshall14relaxationT imeEdddddd+0x64) [0x2b5862c689 34]
[linux-bw7o:06694] [ 4] [0x1ffedd0]
[linux-bw7o:06694] *** End of error message ***
[2] #0 Foam::error::printStack(Foam::Ostream&)--------------------------------- -----------------------------------------
mpirun noticed that process rank 3 with PID 6694 on node linux-bw7o exited on si gnal 8 (Floating point exception).
--------------------------------------------------------------------------
in "/home/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
[2] #1 Foam::sigFpe::sigFpeHandler(int) in "/home/cfd/OpenFOAM/OpenFOAM-1.6/lib /linux64GccDPOpt/libOpenFOAM.so"





I Want to change my mesh since then calculations are more fast.....PLEASE HELP ME!!

wyldckat June 11, 2010 17:51

Greetings Vivek,

You should have posted in this particular section of the forum: OpenFOAM Meshing: blockMesh

Since you have posted in the OpenFOAM Installation section, it's less likely that you will get a proper answer to your problem :(

Personally I'm not very experienced with blockMesh, so I can't help you with your current problem :(

Best regards,
Bruno


All times are GMT -4. The time now is 00:52.