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

Collection of simple functionObjects

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2014, 08:12
Default
  #41
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Shahr View Post
I find this thread the best place to ask this question:
I disagree. This thread is about a package called simpleFunctionObjects which is not part of the OF release but of an addition called swak4Foam

Quote:
Originally Posted by Shahr View Post
I am looking for a list of variables I can do field operations on, e. g. fieldAverage, fieldMinMax, etc.
Basically every variable that is in memory. Check the output in directory 0.1 called foo then there is a variable foo you can exist. Of course fields that are not written are not found that way

Quote:
Originally Posted by Shahr View Post
I found some information about the new features added for version 2.2,
but I have no idea what possibilities are available.
There is a function object called listRegisteredObjects in swak4Foam/simpleFunctionObjects that gives you such a list. There may be similar FO in plain OF (but it wasn't at the time I wrote that FO). But to use that you'll have to install a full swak4Foam (sorry)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   June 14, 2014, 10:26
Default
  #42
New Member
 
Join Date: Feb 2013
Posts: 21
Rep Power: 13
Shahr is on a distinguished road
Thanks Bernhard. My bad, I thought simpleFunctionObjects are part of main OF distribution, not swak4Foam. Nevertheless I checked listRegisteredObjects and found the list.

However, I would also like to know which fields are written into memory, and can be used/accessed by the main openfoam functionObjects, such as probes, fieldAverages, etc. Some of my runtime post-processing functions are to be OF built-in features.
Shahr is offline   Reply With Quote

Old   June 14, 2014, 17:40
Default
  #43
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Shahr View Post
Thanks Bernhard. My bad, I thought simpleFunctionObjects are part of main OF distribution, not swak4Foam. Nevertheless I checked listRegisteredObjects and found the list.

However, I would also like to know which fields are written into memory, and can be used/accessed by the main openfoam functionObjects, such as probes, fieldAverages, etc. Some of my runtime post-processing functions are to be OF built-in features.
What listRegisteredObjects lists is exactly that: all objects that can be accessed by others with simple knowledge of the name (or as you say: fields in memory).

Probes for example are not in that list because they are instantiated by the probes-functionObject. They can not be accessed from outside the functionObject
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   June 14, 2014, 18:12
Default
  #44
New Member
 
Join Date: Feb 2013
Posts: 21
Rep Power: 13
Shahr is on a distinguished road
Well, thanks again. I found another possibility before your reply, and that is the writeRegisteredObject. I tried it and can confirm that it generates the same list as listRegisteredObjects from swak.
I guess the next step for me is to add the fields I need to the createFields so that I can use swak on them.
Huge thanks by the way for this amazing set of tools you wrote. It makes working with openfoam a bliss for a C++ illiterate user like me.
Shahr is offline   Reply With Quote

Old   June 15, 2014, 15:32
Default
  #45
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Shahr View Post
Well, thanks again. I found another possibility before your reply, and that is the writeRegisteredObject. I tried it and can confirm that it generates the same list as listRegisteredObjects from swak.
Which OF-version? The writeRegisteredObject I have the sources to is used to write objects that otherwise wouldn't be written. It relates to listRegisteredObjects like "cat" (the command) relates to "ls"

Quote:
Originally Posted by Shahr View Post
I guess the next step for me is to add the fields I need to the createFields so that I can use swak on them.
Huge thanks by the way for this amazing set of tools you wrote. It makes working with openfoam a bliss for a C++ illiterate user like me.
Thanks.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   June 25, 2014, 09:42
Default
  #46
New Member
 
Join Date: Feb 2013
Posts: 21
Rep Power: 13
Shahr is on a distinguished road
Sorry for the delay. I used it on OF23x. The output were similar tables only with different formatting. As I remember they contained same entries.
Shahr is offline   Reply With Quote

Old   July 2, 2014, 19:13
Default
  #47
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Shahr View Post
Sorry for the delay. I used it on OF23x. The output were similar tables only with different formatting. As I remember they contained same entries.
My guess: the list of objects in the error message if you specify a non-existing object
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 31, 2014, 09:17
Default
  #48
Member
 
Ron
Join Date: Jul 2014
Location: Japan
Posts: 40
Rep Power: 12
ron_OFuser is on a distinguished road
Hello Bernhard,

Is it possible to write drag coefficient on the cylinder using the swak4Foam-or-functionObjects for non-newtonian fluids?

ron_OFuser is offline   Reply With Quote

Old   July 31, 2014, 11:06
Default
  #49
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ron_OFuser View Post
Hello Bernhard,

Is it possible to write drag coefficient on the cylinder using the swak4Foam-or-functionObjects for non-newtonian fluids?

Of course. If you can calculate the drag force correctly
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
Variable deltaT and functionObjects henrik OpenFOAM Bugs 8 July 22, 2009 05:11
OF15 functionObjects do not read LESProperties for incompressible flows aunola OpenFOAM Bugs 1 September 28, 2008 18:18
Collection Codes OpenFoam larry OpenFOAM Running, Solving & CFD 0 July 3, 2006 18:11
Collection efficiency Jen FLUENT 0 November 16, 2005 11:16
Data output collection simon Main CFD Forum 0 September 29, 2003 10:03


All times are GMT -4. The time now is 09:53.