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

[blockMesh] creating blockMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Rasmusiwersen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2020, 11:24
Default creating blockMesh
  #1
New Member
 
Join Date: Jan 2020
Posts: 26
Rep Power: 6
PSander is on a distinguished road
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
Is there any explanation, why I get this error?
Thank you for your help

Last edited by PSander; January 6, 2020 at 13:59.
PSander is offline   Reply With Quote

Old   January 7, 2020, 07:17
Default
  #2
Member
 
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8
Rasmusiwersen is on a distinguished road
Quote:
Originally Posted by PSander View Post
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
Is there any explanation, why I get this error?
Thank you for your help
Since i don't know your blockMeshDict, your are a hundred percent sure that you are calling the variable efter defining it? Also, if you highlight the variable it should highlight everywhere else it is used in the script. This is just an easy way to ensure the format is the same in the file, i.e. that openfoam recognizes it as the same variable in the entire file.

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
PSander likes this.
Rasmusiwersen is offline   Reply With Quote

Old   January 21, 2020, 15:08
Default missing declaration
  #3
New Member
 
Join Date: Jan 2020
Posts: 26
Rep Power: 6
PSander is on a distinguished road
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!
Attached Files
File Type: txt blockMeshDict.txt (48.7 KB, 7 views)
PSander is offline   Reply With Quote

Old   January 21, 2020, 15:10
Default
  #4
New Member
 
Join Date: Jan 2020
Posts: 26
Rep Power: 6
PSander is on a distinguished road
Hey Rasmus,

could you be so kind and try my mesh? Thank you
PSander is offline   Reply With Quote

Old   January 21, 2020, 22:13
Default
  #5
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

Your problem comes from this line:
Code:
d_ss_x 1; erweiterte Breite
You forgot to comment out the text after ;

So it should be:
Code:
d_ss_x 1; //erweiterte Breite
And it does not give you the $coo_p_x not defined error.

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
Antimony is offline   Reply With Quote

Reply

Tags
blockmeshdict, blockmeshdict block mesh


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
[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


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