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

writing execFlowFunctionObjects

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2013, 18:10
Default
  #21
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

I'm too tired today, but I'll see if tomorrow or on the weekend, I can have a look into this.

By the way, have you checked this page: http://openfoamwiki.net/index.php/Ex...unctionObjects - there you'll find a link to this post: http://www.cfd-online.com/Forums/ope...tml#post432292 post #4
I haven't tested it yet, but perhaps the modified version reported on that post can help you.

Best regards,
Bruno
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 12, 2013, 06:02
Default
  #22
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Hi Bruno
maybe its because I have defined functions in a separated file(by:
Code:
functions
{
#include "WR_Output"
#include "WR_excess_Output"
}
as controlDict I sent?

Code:
-dict FILE
Read control dictionary from specified location. Note: but it will still use the main system/controlDict for the base runtime options, except the function objects.
may this option be related? in place of FILE I have to type WR_Output?
__________________
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   September 12, 2013, 17:46
Default
  #23
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

If that was a problem, the function objects wouldn't even have loaded.
Have you tried the utility from that other thread?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 14, 2013, 16:42
Default
  #24
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
I sent a test case see please if is appropriate.thanks.
__________________
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   September 14, 2013, 20:00
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

OK, I've got good news and bad news:
  • Good news is that I figured out what the problem is... actually, what the several problems are.
  • The bad news is that to solve these problem, it's basically easier to simply build OpenFOAM 2.2.x.
    The reason for this is that there have been too many bug fixes to the function objects section in OpenFOAM 2.2 since 2.2.0 was released, that it's rather complicated to sort out only the fixes that apply to the function objects you need.
So, the way I see it, there are a few possibilities:
  1. Simply run the case in question all over again. This way you will be certain that the results are those you had calculated.
  2. Or I could try to create a cloned version of these function objects libraries for a user-side build, using non-conflicting binary names. The problem here is that this does not guarantee a successful result, since there might be more necessary fixes outside of these function objects, namely on the core code of OpenFOAM 2.2.
  3. Or you would have to do a separate build of OpenFOAM 2.2.x, only so that you could re-do the post-processing of this case. In this case, you would can keep your existing OpenFOAM 2.2.0 installation, but it would take you about 2h to download and build the whole OpenFOAM 2.2.x toolbox... or perhaps only 1h30 if you only build all of the libraries in the "src" folder and only the execFlowFunctionObjects utility, while using the system's Open-MPI. you would also have to build swak4Foam 0.2.4, including the patch I mentioned here: http://www.cfd-online.com/Forums/ope...tml#post434217 post #8
From my point of view, since you would very likely want/need my help with either points #2 or #3, I would prefer if you choose #1 .

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 03:43
Default
  #26
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
hi Bruno and thanks,
I choose 3 and maybe 1 too! Because I'm curious to see the new version of OF and its changes! And will use the patch for SWAK also.
I use now 2.2.0 do you mean 2.2.1 version?
Thanks a lot for notice about new version 2.2.1.
__________________
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   September 15, 2013, 06:01
Default
  #27
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

No, I mean OpenFOAM 2.2.x: http://www.openfoam.org/download/git.php
But instead of using the Github repository, use the mirror: http://repo.or.cz/w/OpenFOAM-2.2.x.git - the download should be about 50MB.
If you want a smaller download, use the latest tarball: http://repo.or.cz/w/OpenFOAM-2.2.x.g...ot/HEAD.tar.gz - it's 31.2 MB. The only problem with this is that you won't be able to easily update later on.

As for saving space... this solution will require roughly 1 to 2GB of disk space, at least for building it.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 06:09
Default
  #28
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
dear Bruno,whats difference between 2.2.x and 2.2.1? and what means 2.2.x at all?
1 to 2 Gigabyte?! then I prefer to do first choice!
__________________
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   September 15, 2013, 06:26
Default
  #29
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
dear Bruno,whats difference between 2.2.x and 2.2.1? and what means 2.2.x at all?
I'll quote from the website: http://www.openfoam.org/download/git.php
Quote:
This page describes how to download and compile the very latest source code of OpenFOAM that includes fixes for all submitted bugs. Installing OpenFOAM by compiling source code requires some experience in administration on the Linux operating system, so is not recommended for all. The simpler approach is to install one of the pre-packaged installations.
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 06:35
Default
  #30
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
yes Bruno I had read that lines,what I understood is that 2.2.x isn't published officially but has bugs in 2.2.0 or 2.2.1(newest version that is distributed) been fixed? but it isn't distributed yet. right?
__________________
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   September 15, 2013, 07:16
Default
  #31
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
yes Bruno I had read that lines,what I understood is that 2.2.x isn't published officially but has bugs in 2.2.0 or 2.2.1(newest version that is distributed) been fixed? but it isn't distributed yet. right?
Well... you're half-right and half-wrong. I've given a detailed explanation about this here: http://openfoamwiki.net/index.php/In...ug_fix_version - I wrote that in May of this year...
immortality likes this.
__________________
wyldckat 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
How to Mix AIR and WATER Elvis1991 FLUENT 12 December 1, 2016 13:28
solid to fluid heattransfer with chtMultiRegionFoam nakor OpenFOAM 11 March 21, 2011 09:28
An error has occurred when Writing backup file tian CFX 0 June 28, 2007 22:29
journal file command for writing mass flow rate James FLUENT 0 July 26, 2006 11:51
Fatal error error writing to tmp No space left on device maka OpenFOAM Installation 2 April 3, 2006 09:48


All times are GMT -4. The time now is 14:36.