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

funkyDoCalc write fields

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 24, 2016, 07:44
Default funkyDoCalc write fields
  #1
Member
 
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 60
Rep Power: 4
Astrodan is on a distinguished road
Note: Solved. Turns out funkySetFields actually is the solution to what I want, since this tool only requires a dummy field to be prepared that can then be filled with the desired expression.

For further reference, below the original post.

---

Hey guys,

I'm currently trying to evaluate my simulation, and would need to do some calculations. As foamCalc is quite incapable of anything, I figured funkyDoCalc was the way to go.

But as far as I understood the source code, it appears that the utility only writes information to STDOUT and a file that is similar to the postProcessing stuff. Am I missing something, or is it simply not possible to write new (internal/boundaryFields) to a time-folder?

I also tried to add the lines
Code:
driver->createWriterAndRead(name)
driver->tryWrite()
to the funkyDoCalc.C right after it evaluated the expression, but got no result.

I called the tool with funkyDoCalc -latestTime testDict.
My testDict used for the utility, which should be usable with any case that calculates U:
Code:
FoamFile
{
        version     2.0;
        format      ascii;
        class       dictionary;
        location    "system";
        object      controlDict;
}


uSqr
{
    valueType   internalField;
    expression  "mag(U)";
    accumulations (
        average
    );  
}

Last edited by Astrodan; March 24, 2016 at 09:07. Reason: Solution found
Astrodan is offline   Reply With Quote

Reply

Tags
foamcalc, funkydocalc, swak4foam

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlet fields as inlet fields, how to. Villo OpenFOAM Running, Solving & CFD 12 November 2, 2015 17:25
How to view mean pressure fields in Fluent after importing data from openFOAM !!! Alhasan FLUENT 0 July 23, 2013 12:58
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
write nut fields in simpleFoam maurice OpenFOAM Running, Solving & CFD 5 March 23, 2009 02:57
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37


All times are GMT -4. The time now is 02:11.