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

How can I write selective additional fields using functionObjects?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 29, 2011, 12:31
Question How can I write selective additional fields using functionObjects?
  #1
New Member
 
Fatemeh
Join Date: Apr 2011
Location: Boston
Posts: 9
Rep Power: 15
fpmhadi is on a distinguished road
Hi everybody,

I want to have the positions of cell centers (x,y,z) as out put in my time directories. I know that the utility "writeCellCenters" do what I want, but I prefer to get them automatically.

I searched and found out that functionObjects are capable of doing so. I found from

http://openfoamwiki.net/index.php/Co...unctionObjects

that the type writeAdditionalFields is exactly what I want. I found this example in their documentations:

Code:
functions 
(
    writeEnthalpy 
    {
        functionObjectLibs   ("libsimpleFunctionObjects.so");
        type                 writeAdditionalFields;
        fieldNames           ( h mu );
        after 0.1;
    }
);
But now I do not know how to use it to get x, y and z positions of cell centers of my mesh.

Any help is appreciated.
fpmhadi is offline   Reply With Quote

 

Tags
cellcenters, functionobjects


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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
Where to define which fields to write? bgoeppner OpenFOAM 8 July 15, 2011 11:00
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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