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

[swak4Foam] funkyDoCalc write fields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2016, 07:44
Default funkyDoCalc write fields
  #1
Member
 
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 63
Rep Power: 12
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


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
chtMultiRegionSimpleFoam does not write converged time step Tobi OpenFOAM Bugs 6 October 14, 2017 12:41
modify pimpleFoam to write sampled fields on a patch each runtime moh-farmani OpenFOAM Programming & Development 0 August 19, 2017 16:17
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 10:15
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 00:41.