CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

blockMesh with double grading.

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree54Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 28, 2012, 11:20
Default
  #21
New Member
 
Ivo
Join Date: Feb 2012
Posts: 22
Rep Power: 5
Ivooo is on a distinguished road
Thanks for the program and the repository! It works great. Btw ParaFoam segfaults when setting an odd number of cells in the double-grading direction, I didn't notice until a colleague reminded me to check that, then it worked
Ivooo is offline   Reply With Quote

Old   May 3, 2012, 07:34
Default
  #22
New Member
 
Johannes P
Join Date: Feb 2012
Posts: 8
Rep Power: 5
pjohannes183 is on a distinguished road
works like a charm, thanks to all contributors!
pjohannes183 is offline   Reply With Quote

Old   July 3, 2012, 08:14
Default
  #23
Senior Member
 
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 183
Rep Power: 7
vonboett is on a distinguished road
I got the same Floating point exception like Omkar if calling blockMesh after updating the files using hg clone, and blockMeshDoubleGrading is an unknown command, so maybe for clarifying: calling ./Allwmake in the src/mesh folder or at top level? Works with OF 2.1.x?
However I think ist a great tool, especially if one has to deal with internal boundaries like baffles it is cool to avoid half of the blocks.
vonboett is offline   Reply With Quote

Old   July 3, 2012, 10:05
Default
  #24
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Albrecht, the executable name is blockMeshDG. I will make that more clear on the repository site.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   October 31, 2012, 07:01
Default
  #25
New Member
 
Join Date: Feb 2010
Posts: 26
Rep Power: 7
Pekka is on a distinguished road
Hi Foamers,

Thanks for DG version!

One problem found when the O-grid type block mesh was generated. BlockMeshDG switch the grading opposite if midpoints on the block edges are used. This problem does not occur if blocks coordinate system is in same direction, but on the O-grid blocks coordinate systems is not possible keep on same direction. Any ideas fix this problem?

Attached case can be run by blockMeshDG on 1.6-ext.

BR/Pekka
Attached Images
File Type: jpg DG_without_arc.jpg (49.1 KB, 84 views)
File Type: jpg DG_with_arc.jpg (49.1 KB, 75 views)
File Type: jpg DG_with_arc2.jpg (52.9 KB, 83 views)
File Type: jpg DG_without_arc2.jpg (53.8 KB, 78 views)
Attached Files
File Type: zip blockMeshDG_midpoint.zip (4.2 KB, 23 views)
Pekka is offline   Reply With Quote

Old   January 31, 2013, 19:59
Default Hi
  #26
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
There were some changes between 1.7.1 and the version that this utility was designed for. I attached a version that worked for me in 1.7.1, based on the blockMesh of 1.7.1 and some code snippets from the above posted files.
I want to compile this utility on OP 1.6-ext , Do you have the source code???

please help me...

Thanks,
Sasan.
sasanghomi is offline   Reply With Quote

Old   February 2, 2013, 06:39
Default
  #27
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Sasan,

Attached is the modified version for 1.6-ext, based on the instructions from post #3: http://www.cfd-online.com/Forums/ope...tml#post238922

Instructions:
  1. Download the attached file.
  2. Uncompress it:
    Code:
    tar -xf blockMeshDG-1.6-ext.tar.gz
  3. Build it:
    Code:
    cd blockMeshDG-1.6-ext
    wmake
I tested with the case from post #25.


Best regards,
Bruno
Attached Files
File Type: gz blockMeshDG-1.6-ext.tar.gz (27.6 KB, 36 views)
Tushar@cfd, hua1015 and sasanghomi like this.
wyldckat is offline   Reply With Quote

Old   February 2, 2013, 07:14
Default
  #28
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Hi Bruno,

works like a charm.
Thank you very much.

Sasan
sasanghomi is offline   Reply With Quote

Old   February 3, 2013, 12:59
Default
  #29
New Member
 
Join Date: Feb 2010
Posts: 26
Rep Power: 7
Pekka is on a distinguished road
I found the solution to my problem. It's simpler than anybody can guess.

When arc is used on the block edges it is a matter of the order of arc end points. So the grading direction can be changed by switching the end points order:

HTML Code:
arc 6 7 ( 1.375 1 1.2 )  => arc 7 6 ( 1.375 1 1.2 )
BR/Pekka
Attached Images
File Type: jpg wrong_DG.jpg (47.0 KB, 67 views)
File Type: jpg corrected_DG.jpg (45.5 KB, 59 views)
wyldckat and greenleader like this.
Pekka is offline   Reply With Quote

Old   April 5, 2013, 10:14
Default
  #30
New Member
 
steve
Join Date: Sep 2012
Posts: 15
Rep Power: 4
greenleader is on a distinguished road
Disappointed to see that blockMeshDG still does not seem to be part of the standard distribution. Are the developers not aware of it? How do we make them aware of it? As an OF newbie it was the first thing I looked for when I was creating my first mesh!

About to download and try it for the first time (OF V2.1.1).....

Later:
Worked perfectly, but as pointed out by others earlier, you must make sure you specify an even number of cells. I found that if its an odd number, although blockMesh works fine, checkMesh crashes, as does paraFoam.

Last edited by greenleader; April 5, 2013 at 23:08. Reason: update after trying it out:)
greenleader is offline   Reply With Quote

Old   April 6, 2013, 06:29
Default
  #31
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Steve,

Quote:
Originally Posted by greenleader View Post
Disappointed to see that blockMeshDG still does not seem to be part of the standard distribution. Are the developers not aware of it? How do we make them aware of it? As an OF newbie it was the first thing I looked for when I was creating my first mesh!
  • They have already been made aware of this: http://www.openfoam.org/mantisbt/view.php?id=457 - but it has a low priority.
  • They already provide the means for people to contribute with source code: http://www.openfoam.org/contrib/unsupported.php
  • But I think the problem right now is that the original author of the modifications made for "blockMeshDG" should be the one to submit them. The other possibility is for someone else to write from scratch a similar algorithm and submit it according to the specifications made in the previous link.
In the mean time, this is a (good?) way to make new and old OpenFOAM users think a bit about exploring what the community has to offer and hopefully it will eventually reach critical mass and be part of the official code .

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 6, 2013, 23:18
Default
  #32
New Member
 
steve
Join Date: Sep 2012
Posts: 15
Rep Power: 4
greenleader is on a distinguished road
Thanks for that Bruno, appreciate you taking the time to reply!
Regards
Steve
greenleader is offline   Reply With Quote

Old   May 7, 2013, 09:14
Default
  #33
New Member
 
Anselme Bonnet
Join Date: Apr 2013
Location: France
Posts: 14
Rep Power: 4
OpenF is on a distinguished road
Hi Foamers,

I tried to install blockMeshDoubleGrading but after wmake I get this error :

/opt/openfoam220/wmake/wmake: line 222: make: command not found
/opt/openfoam220/wmake/wmake: line 223: make: command not found
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /tmp/blockMeshDG-1.6-ext

and I don't know why. I already succeeded to install this program with another computer..

thanks

Anselme
OpenF is offline   Reply With Quote

Old   May 7, 2013, 11:36
Default
  #34
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Anselme, your error is not related to blockMeshDG, but to your OpenFOAM installation. I'm guessing you can't compile any other program either.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology

Last edited by akidess; May 8, 2013 at 02:40. Reason: Grammar
akidess is offline   Reply With Quote

Old   May 7, 2013, 16:30
Default
  #35
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Anselme,

As Anton indicated, you're missing the tools needed for compiling. Check the instructions shown in the section "System Requirements" for the "Source Pack" instructions: http://www.openfoam.org/download/source.php#x6-29000 - that section is all you need to follow, since you've already installed OpenFOAM.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 13, 2013, 03:46
Default
  #36
New Member
 
Anselme Bonnet
Join Date: Apr 2013
Location: France
Posts: 14
Rep Power: 4
OpenF is on a distinguished road
Thanks a lot for your answer wyldckat and akidess, it works ! Now I would like to set a parabolic velocity inlet profile but I can't get the sources on

svn checkout http://openfoam-extend.svn.sourceforge.net/svnroot/\
openfoam-extend/trunk/Core/OpenFOAM-1.5-dev/src/finiteVolume/\
fields/fvPatchFields/derived/parabolicVelocity/

because of that http://openfoamwiki.net/index.php/Main_Page

Someone has an idee ?

Best regards,
Anselme
OpenF is offline   Reply With Quote

Old   May 13, 2013, 03:49
Default
  #37
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Anselme, you can use Swak4Foam/GroovyBC. If you run into problems in doing so please start a new thread so we can keep this one focused on blockMeshDG.

- Anton
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   May 23, 2013, 15:02
Default
  #38
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
Hi all
how can find a 2.2.0 version of blockMeshDG?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   May 23, 2013, 18:08
Default
  #39
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

Quote:
Originally Posted by immortality View Post
how can find a 2.2.0 version of blockMeshDG?
Simply follow the instructions from here: http://openfoamwiki.net/index.php/Contrib_blockMeshDG - I suggest that you follow the instructions for the zip version.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 24, 2013, 03:43
Default
  #40
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Bruno, did you ever test it on 2.2? If so, we could add the 2.2 template to the wiki...
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New densitybased solver AeroFoam giulio_romanelli OpenFOAM Running, Solving & CFD 39 October 8, 2013 02:37
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
Parallel rasInterFoam openfoam_user OpenFOAM Running, Solving & CFD 4 November 1, 2008 05:14
what's wrong about my code for 2d burgers equation morxio Main CFD Forum 3 April 27, 2007 10:38
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


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