CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

blockMesh - no spellcheck at convertToMeters;

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2018, 05:54
Default blockMesh - no spellcheck at convertToMeters;
  #1
New Member
 
lupacexi
Join Date: Jul 2018
Posts: 1
Rep Power: 0
lupacexi is on a distinguished road
Hello.

Today I've sadly discovered there is no spellcheck at function convertToMeters; in blockMeshDict dictionary file.

BlockMesh just read it anyway without any error or information.
ex. converToMeters 0.001; will be read by blockMesh and it wont be actually converted to 0.001 scale.

...otherwise convertToMeters 0.001; will be read too but it will convert to correct scale.

This is in my opinion an error which can give very very bad informations. And can make confusions especially with new users.

Cheers.
lupacexi is offline   Reply With Quote

Old   July 5, 2018, 03:32
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Can't reproduce with OpenFOAM-5.0.
Which version are you using? How does your blockMeshDict look like.
GerhardHolzinger is offline   Reply With Quote

Old   July 5, 2018, 03:38
Default
  #3
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi lupacexi,

I think what happens is that since convertToMeters is an optional parameter, blockMesh looks for it in blockMeshDict and does not find it because of the typo, therefore takes the default value: 1.

OpenFOAM scans the file and only reads what it needs, you could define any variable with any value in the dictionary and will not affect the program.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Reply


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
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
[blockMesh] External flow around cube with blockMesh Woody8 OpenFOAM Meshing & Mesh Conversion 0 March 31, 2015 14:54
blockMesh - no spellcheck at convertToMeters; seav OpenFOAM Bugs 9 January 10, 2015 18:31
[blockMesh] set of xyz data in blockMesh psk OpenFOAM Meshing & Mesh Conversion 12 August 27, 2013 08:37
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 11:59


All times are GMT -4. The time now is 03:55.