View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001789 | OpenFOAM | Bug | public | 2015-07-17 16:49 | 2015-08-16 23:26 |
Reporter | petebachant | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Platform | GNU/Linux | OS | Ubuntu | OS Version | 14.04 |
Summary | 0001789: fieldAverage restarts averaging every time step if run with execFlowFunctionObjects and cyclicAMI | ||||
Description | (OpenFOAM 2.4.x) When attempting to post-process a case with the fieldAverage and execFlowFunctionObjects, averaging restarts each time step if the case has a cyclicAMI patch. Averaging works as expected if the functionObject is used at run-time. | ||||
Steps To Reproduce | Add a fieldAverage functionObject to the pimpleDyMFoam mixerVesselAMI2D tutorial and run execFlowFunctionObjects: fieldAverage1 { type fieldAverage; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; outputControl timeStep; outputInterval 1; resetOnRestart false; resetOnOutput false; fields ( U { mean on; prime2Mean on; base time; } p { mean on; prime2Mean on; base time; } ); } | ||||
Tags | No tags attached. | ||||
|
> if the case has a cyclicAMI patch What happens if the case does not have an cyclicAMI patch? |
|
If the case does not have a cyclicAMI patch, averaging works okay with execFlowFunctionObjects. I used the pisoFoam and pimpleFoam pitzDaily tutorials to test. |
|
What happens if the case does not have a cyclicAMI patch but the mesh moves? |
|
I'm getting the same error with the movingCone tutorial. |
|
Right, I did not expect there to be any special interaction between the operation of cyclicAMI and execFlowFunctionObjects. It is not currently possible to average between moving meshes which are read in a sequence by execFlowFunctionObjects. Adding this functionality would be a substantial amount of work. |
|
Any hints on what this might entail? I am either going to write a new application or try to modify execFlowFunctionObjects. Anything I write will be open source and on GitHub, for what it's worth. |
|
This ended up being addressed on the forum and unfortunately we didn't reach a solution that didn't rely on simply making a modified/hacked execFlowFunctionObjects: http://www.cfd-online.com/Forums/openfoam-post-processing/156982-fieldaverage-function-object-does-not-average-over-all-time.html#post559781 - post #9 The paradigm Pete was trying to achieve is simple: sampling a field for when the dynamic motion reaches a periodically identical position, so to have a time averaged sample. The hack relies on changing the deltaT before running the function objects for each loaded time step, and not reloading the function objects for each processed time step, i.e. when the mesh changes. The other detail is that the time steps to be processed have to be provided through the command line argument "-time". Either way, the modified source code, example case and instructions on how to configure ParaView to only render the time steps are all on the aforementioned post and my guess is that this hack would only add confusion and potential maintenance problems to execFlowFunctionObjects. |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-07-17 16:49 | petebachant | New Issue | |
2015-07-17 16:56 | henry | Note Added: 0005090 | |
2015-07-17 16:59 | petebachant | Note Added: 0005091 | |
2015-07-17 17:02 | henry | Note Added: 0005092 | |
2015-07-17 17:25 | petebachant | Note Added: 0005093 | |
2015-07-17 17:43 | henry | Note Added: 0005094 | |
2015-07-17 17:51 | petebachant | Note Added: 0005095 | |
2015-07-30 12:31 | wyldckat | Project | ThirdParty => OpenFOAM |
2015-08-16 23:24 | wyldckat | Note Added: 0005243 | |
2015-08-16 23:25 | wyldckat | Relationship added | related to 0001790 |
2015-08-16 23:26 | wyldckat | Severity | minor => feature |
2015-08-16 23:26 | wyldckat | Status | new => closed |
2015-08-16 23:26 | wyldckat | Resolution | open => won't fix |
2015-08-16 23:26 | wyldckat | Product Version | other => |