|
[Sponsors] |
RuntimeControl with surfaceFieldValue (v2012) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 21, 2021, 03:45 |
RuntimeControl with surfaceFieldValue (v2012)
|
#1 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
Dear All!
How can I combine the runtimeControl function object with the surfaceFieldValue function object? In the following dummy example I get the following warning: Code:
runTimeControl runTimeControl1 output: average: condition0 averages: --> FOAM Warning : From virtual bool Foam::functionObjects::runTimeControls::averageCondition::apply() in file runTimeControl/runTimeCondition/averageCondition/averageCondition.C at line 151 From function object: inletPres Unprocessed fields: p Code:
functions { inletPres { type surfaceFieldValue; libs ("libfieldFunctionObjects.so"); writeControl timeStep; log yes; writeFields no; regionType patch; name inlet; operation areaAverage; fields ( p ); } runTimeControl1 { type runTimeControl; libs ("libutilityFunctionObjects.so"); conditions { condition0 { type average; functionObject inletPres; fields (p); tolerance 5; windowType approximate; window 5; // groupID 1; } } } } It seems like the surfaceFieldValue is using some weird name for the results field which I wasn't able to figure out or they are just not compatible (it would be surprising)? Thanks! |
|
January 22, 2021, 08:21 |
|
#2 |
Senior Member
|
Hi,
It happens to be I am also trying to do something similar. I hope to test if it works soon, but I have to wait a bit until I can run the case, but in the past (v1712) we found out that the field name would need to be something as in <timeDirectory>/uniform/funtionObjectProperties. It is a bit of a weird construction, but based on how we did it in the past and also how I have now prepared my case, I would estimate that you would need to use fields (areaAverage(inlet,p)); as in: Code:
runTimeControl1 { type runTimeControl; libs ("libutilityFunctionObjects.so"); conditions { condition0 { type average; functionObject inletPres; fields (areaAverage(inlet,p)); tolerance 5; windowType approximate; window 5; // groupID 1; } } } Cheers, Tom |
|
January 22, 2021, 08:37 |
|
#3 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
Hi!
Thank you very much! This is it. Working properly! Thanks again! EDIT: In the postProcess folder it writes as "areaAverage(p)" which I have already tried so this seems to be a really inconsistent naming for me. |
|
April 23, 2021, 15:11 |
|
#4 |
New Member
Join Date: Oct 2017
Posts: 2
Rep Power: 0 |
Has anyone accomplished this using probes? I.e. for convergence based on a local field value? I haven't had success with this yet. It seems that since probes doesn't use the "setResult" command, maybe these results aren't available to the runTimeControl utility?
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Compilation of OF v2012 | sihaqqi | OpenFOAM Installation | 1 | January 8, 2021 14:14 |
surfaceFieldValue from faceZone issue | ginop | OpenFOAM Post-Processing | 2 | December 1, 2020 09:35 |
[swak4Foam] Problem to calculate grad(U) using swak4Foam | Hugoles | OpenFOAM Community Contributions | 12 | November 24, 2020 10:28 |
surfaceFieldValue, sampledSurface, areaAverage at no slip wall, velocity not zero | Tom Lauriks | Main CFD Forum | 3 | September 16, 2020 03:05 |