|
[Sponsors] |
January 6, 2020, 11:24 |
creating blockMesh
|
#1 |
New Member
Join Date: Jan 2020
Posts: 26
Rep Power: 6 |
I wrote the blockMeshDict and want to create now a blockMesh. During the process I get an error message. It says:
"In function ‘void Foam::codeStream_efa88c99f17594f6f3c82927a0fb16235 e07ee90(Foam::Ostream&, const Foam::dictionary&)’: :1:34: error: ‘d_sl_y’ was not declared in this scope /opt/openfoam7/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/codeStreamTemplate.o' failed make: *** [Make/linux64GccDPInt32Opt/codeStreamTemplate.o] Error 1 --> FOAM FATAL IO ERROR: Failed wmake "dynamicCode/_efa88c99f17594f6f3c82927a0fb16235e07ee90/platforms/linux64GccDPInt32Opt/lib/libcodeStream_efa88c99f17594f6f3c82927a0fb16235e07 ee90.so" file: /home/philip/OpenFOAM/philip-7/test_playground/system/blockMeshDict from line 17 to line 189. From function static void (* Foam::functionEntries::codeStream::getFunction(con st Foam::dictionary&, const Foam::dictionary&))(Foam::Ostream&, const Foam::dictionary&) in file db/dictionary/functionEntries/codeStream/codeStream.C at line 218. FOAM exiting" What I understand, is that "d_sl_y" is missing, but it is part of my blockMeshDict, as you can see in my code Code:
//Surface_layer // d_sl_x $d_s3_x; // horizontal size of surface layer d_sl_z $d_p1_l; // length of surface layer (z) d_sl_y 1.5; // vertical size of surface layer Thank you for your help Last edited by PSander; January 6, 2020 at 13:59. |
|
January 7, 2020, 07:17 |
|
#2 | |
Member
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8 |
Quote:
If this is not the case, can you upload your blockMeshDict? A search on the "was not declared in this scope" error can be due to an error in the openfoam build. I guess this can be ruled out if I am able to run blockMesh without errors. Best /Rasmus |
||
January 21, 2020, 15:08 |
missing declaration
|
#3 |
New Member
Join Date: Jan 2020
Posts: 26
Rep Power: 6 |
I tried it in a new mesh, and get again an error about a missing scope. I checked it and can not figure out, why its not working. For me it looks fine, i could not find a missing $ or something similar.
Is there any other reason, why this error message could appear? Thank you a lot! |
|
January 21, 2020, 15:10 |
|
#4 |
New Member
Join Date: Jan 2020
Posts: 26
Rep Power: 6 |
Hey Rasmus,
could you be so kind and try my mesh? Thank you |
|
January 21, 2020, 22:13 |
|
#5 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Your problem comes from this line: Code:
d_ss_x 1; erweiterte Breite So it should be: Code:
d_ss_x 1; //erweiterte Breite However, I think you still have other missing/incorrectly named variables that you have called while defining your vertices. Check that. Hope this helps. Cheers, Antimony |
|
Tags |
blockmeshdict, blockmeshdict block mesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Wierd behaviour of blockMesh creating axis in wedge | rcastilla | OpenFOAM Meshing & Mesh Conversion | 1 | December 4, 2018 07:24 |
[blockMesh] Segmentation Fault when creating block mesh topography (blockMesh) | jbrydg01 | OpenFOAM Meshing & Mesh Conversion | 2 | May 11, 2017 06:37 |
[blockMesh] Error while creating blockMesh: Inconsistent point locations between block pair | lpashwin | OpenFOAM Meshing & Mesh Conversion | 2 | June 1, 2015 13:31 |
[blockMesh] Error while running blockMesh | Harak | OpenFOAM Meshing & Mesh Conversion | 0 | December 11, 2014 10:36 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |