customizing the meanVorticity utility
1 Attachment(s)
Hi,
I am trying to calculate the vorticity of the mean velocity fields. So far what I have done to achieve this is to save the UMean file in another time directory as U and calculate the vorticity of this U with the built-in utility 'vorticity'. This works good but not elegant.:rolleyes: I would like to customize a 'meanVorticity' utility that does the same thing as I have mentioned above. I anticipated that it would not be difficult since what I need to do is change the U with UMean in the original vorticity.C and then wmake. However, it turns out that this is far more complicated than I had expected. The meanVorticity.C file I modified is as follows: Code:
Code:
meanVorticity.C:55:9: error: ‘Uheader’ was not declared in this scope Could someone shed light on this problem? I attached the source code in here. |
Quote:
Code:
if (UMeanheader.typeHeaderOk<volVectorField>(true)) |
1 Attachment(s)
Quote:
Thank you for pointing this out, Zeppo. But it still does not solve this problemAttachment 53053 Sent from my iPhone using CFD Online Forum mobile app |
Code:
if (Uheader.typeHeaderOk<volVectorField>(true)) Code:
if (UMeanheader.headerOk()) |
Quote:
|
All times are GMT -4. The time now is 15:29. |