CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   writeCellVolumes post-processing utility ? (http://www.cfd-online.com/Forums/openfoam/70581-writecellvolumes-post-processing-utility.html)

florian.de-vuyst@ecp.fr November 28, 2009 13:29

writeCellVolumes post-processing utility ?
 
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

gschaider November 30, 2009 12:11

Quote:

Originally Posted by florian.de-vuyst@ecp.fr (Post 238054)
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

florian.de-vuyst@ecp.fr November 30, 2009 12:48

Dear Bernhard,

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

Cheers,
florian

olesen December 1, 2009 03:46

Quote:

Originally Posted by gschaider (Post 238202)
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.

gschaider December 1, 2009 05:48

Quote:

Originally Posted by olesen (Post 238274)
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?

olesen December 1, 2009 06:15

Quote:

Originally Posted by gschaider (Post 238291)
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 ;)


All times are GMT -4. The time now is 18:40.