![]() |
postProcessing - want to stop the headers repeating in surfaceFieldValue.dat
Hello,
I am trying to write p, T, U values at inlet while solving. But in surfaceFieldValue.dat, I am seeing headers repeating after every timeStep or deltaT. I would like to stop the repetitive headers. I am attaching the necessary codes / contents of the files. I want Code:
# Region type : patch inlet Code:
# Region type : patch inlet controlDict Code:
/*--------------------------------*- C++ -*----------------------------------*\ velocityInlet Code:
velocityInlet |
Hi
Please have you manged to resolve it as i am having the same problem Thanks |
This resolves the issue for me on OpenFoam-v2006.
Create a copy of the surfaceFieldValue function object and inside the implementation file, comment out the line writeFileHeader(file()); Then add the same line to the constructor of the function object. Code:
Foam::functionObjects::fieldValues::surfaceFieldValue::surfaceFieldValue |
Quote:
https://develop.openfoam.com/Develop...nfoam/-/issues |
Quote:
https://develop.openfoam.com/Develop.../-/issues/1556 Apparently, this is by design in cases with a dynamic or topologically changing mesh and can be disabled with the "updateHeader" keyword, which defaults to true. I know user-friendliness is against OpenFoam's design philosophy :) but it would still be nice if the surfaceFieldValue header file mentioned this. |
Quote:
Fair enough but sometimes things do get forgotten, or are difficult to find. For these cases it would be best to flag it as an issue. Lamenting about the problem here is perfectly OK, but it increases the probability of things getting fixed if you report them. I've open this issue https://develop.openfoam.com/Develop...am/issues/1942 |
Quote:
|
All times are GMT -4. The time now is 18:24. |