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

writeCellVolumes post-processing utility ?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2009, 13:29
Default writeCellVolumes post-processing utility ?
  #1
New Member
 
Florian De Vuyst
Join Date: Nov 2009
Posts: 3
Rep Power: 16
florian.de-vuyst@ecp.fr is on a distinguished road
Hi all,

In the spirit of the 'writeCellCenters' utility, I would also need a
'writeCellVolumes' utility.

Has anybody already written such king of utility ?

Regards,

florian de vuyst
florian.de-vuyst@ecp.fr is offline   Reply With Quote

Old   November 30, 2009, 12:11
Default
  #2
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 florian.de-vuyst@ecp.fr View Post
Hi all,

In the spirit of the 'writeCellCenters' utility, I would also need a
'writeCellVolumes' utility.

Has anybody already written such king of utility ?

Regards,

florian de vuyst
There are two possiblities: a)copy the sources of writeCellCenters and replace C() with V() b) use funkySetFields (http://openfoamwiki.net/index.php/Co...funkySetFields) with the expression "vol()" I prefer the second option. But I'm biased Bernhard
gschaider is offline   Reply With Quote

Old   November 30, 2009, 12:48
Default
  #3
New Member
 
Florian De Vuyst
Join Date: Nov 2009
Posts: 3
Rep Power: 16
florian.de-vuyst@ecp.fr is on a distinguished road
Dear Bernhard,

Thank you so much for the precious answer ! All is fine now,

Cheers,
florian
florian.de-vuyst@ecp.fr is offline   Reply With Quote

Old   December 1, 2009, 03:46
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by gschaider View Post
There are two possiblities: a)copy the sources of writeCellCenters and replace C() with V() ...
I'm not certain that this will work directly. The V() method just returns the internal field (whereas C() returns a volVectorField), so you'll need to do something extra about the boundaries if you want to make a volScalarField out of it. Thus don't be surprised if the constructor doesn't work directly.
olesen is offline   Reply With Quote

Old   December 1, 2009, 05:48
Default
  #5
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 olesen View Post
I'm not certain that this will work directly. The V() method just returns the internal field (whereas C() returns a volVectorField), so you'll need to do something extra about the boundaries if you want to make a volScalarField out of it. Thus don't be surprised if the constructor doesn't work directly.
You are right. It certainly won't work. The question that I ask myself: do I keep forgetting that because I use FSF for that kind of stuff or do I use FSF because I keep forgetting that?
gschaider is offline   Reply With Quote

Old   December 1, 2009, 06:15
Default
  #6
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by gschaider View Post
The question that I ask myself: do I keep forgetting that because I use FSF for that kind of stuff or do I use FSF because I keep forgetting that?
Hi Bernhard,
If you start forgetting which of the things it is that you keep forgetting - it's quite a bad sign
olesen is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
post processing for KIVA dirga Main CFD Forum 5 April 23, 2009 11:58
Question about post processing qtian OpenFOAM Post-Processing 0 July 24, 2007 13:44
Tecplot for CFX post processing pantangi goud CFX 2 August 24, 2005 17:42
Post Processing in FEM Abhijit Tilak Main CFD Forum 0 April 26, 2004 12:59
post processing in CFD MANISH BHARGAVA Main CFD Forum 0 October 17, 1998 21:51


All times are GMT -4. The time now is 06:34.