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

keyword "SecondaryWriteControls"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2016, 09:25
Default keyword "SecondaryWriteControls"
  #1
Member
 
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 10
Lorenzo92 is on a distinguished road
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
Lorenzo92 is offline   Reply With Quote

Old   November 30, 2016, 10:53
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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).
alexeym is offline   Reply With Quote

Old   December 1, 2016, 02:50
Default
  #3
Member
 
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 10
Lorenzo92 is on a distinguished road
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?
Lorenzo92 is offline   Reply With Quote

Old   December 1, 2016, 03:38
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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).
alexeym is offline   Reply With Quote

Old   December 1, 2016, 13:24
Default
  #5
Member
 
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 10
Lorenzo92 is on a distinguished road
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
Lorenzo92 is offline   Reply With Quote

Reply


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
error: keyword outlet is undefined in dictionary akonduri OpenFOAM Running, Solving & CFD 6 February 28, 2020 16:12
keyword PISO is undefined in dictionary, Please help. TommiPLaiho OpenFOAM Pre-Processing 2 May 26, 2019 03:50
[OpenFOAM] Take derivative of mean velocity in paraFoam hiuluom ParaView 13 April 26, 2016 06:44
Derivative of velocity and mean velocity hiuluom OpenFOAM Post-Processing 1 May 29, 2015 23:42
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 11:30


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