|
[Sponsors] |
November 30, 2016, 10:25 |
keyword "SecondaryWriteControls"
|
#1 |
Member
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11 |
Hello Foamers,
I'm trying to understand the effect of the keyword "SecondaryWriteControls" in controlDict. The same applies to "SecondaryWriteInterval" and "SecondaryPurgeWrite" Is there anyone who knows how writing and saving of fields is related to this keyword? Thankss |
|
November 30, 2016, 11:53 |
|
#2 |
Senior Member
|
Hello Lorenzo,
It depends on OpenFOAM version you utilise. In 4.x these keywords have lost their meaning (i.e. they were removed), guess, this functionality was generalised in functionObjects. In 2.4.x they have literal meaning: after checking primary write controls (i.e. writeControl, writeInterval, purgeWrite), library checks secondary (see OpenFOAM/db/Time/TimeIO.C). |
|
December 1, 2016, 03:50 |
|
#3 |
Member
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11 |
Thank you for your answer Alexeym,
I' currently using OF 2.4.0 and such options still are available ( following your suggestion I checked TimeIO.C). I was wondering if it is possible to activate differente purgeWriting frequency between common fields(like U,p for instamce) and secondary fields generated by functionObjects such as fieldAverage (like pMean, pPrime2Mean, UMean und so on). Is it possible according to your esperience/knowledge of OF? |
|
December 1, 2016, 04:38 |
|
#4 |
Senior Member
|
Not sure if I got your question (and in fact I have no experience with secondary* settings), purge operation removes whole time folders and can not operate on individual fields.
If you want something like (let's say purgeWrite is 3 and you would like to keep UMean just for the second and third kept time, U and p fields just for the first two): t1: U p t2: U p UMean t3: UMean you can try to use systemCall function object and do file manipulations using script (in the most comfortable language). Though it requires allowSystemOperations to be set to 1. (Also you can try to modify post title to something like "[OpenFOAM][2.4.0] purgeWrite for individual fields", so people can avoid reading the whole thread to get to the essence of the question). |
|
December 1, 2016, 14:24 |
|
#5 |
Member
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11 |
Yes, sorry Alexeym. The topic was indeed secondaryWriteControls, the last question was just a second parallel thought.
However thank you very much for the suggestion, I wasn't aware of the functionality of systemCall If there is anyone who has already experienced the functionality of secondaryWriteControls I am all ears |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error: keyword outlet is undefined in dictionary | akonduri | OpenFOAM Running, Solving & CFD | 6 | February 28, 2020 17:12 |
keyword PISO is undefined in dictionary, Please help. | TommiPLaiho | OpenFOAM Pre-Processing | 2 | May 26, 2019 04:50 |
[OpenFOAM] Take derivative of mean velocity in paraFoam | hiuluom | ParaView | 13 | April 26, 2016 07:44 |
Derivative of velocity and mean velocity | hiuluom | OpenFOAM Post-Processing | 1 | May 30, 2015 00:42 |
simpleFoam in parallel issue | plucas | OpenFOAM Running, Solving & CFD | 3 | July 17, 2013 12:30 |