Creating arbitrary surfaces in meshed domain
Please tell me that how to create arbitrary surfaces (or somthing like that) (other than predefined patches) to calculate area or mass weighted averages of any function for postprocessing in predefined+meshed+solved domain openfoam 1.7.1?
thanks in advance
The library swak4foam (search the board or google) allows you to do calculations on these surfaces (but it builds on the same mechanism, so sampleDict will give you an idea which surfaces are possible)
Thank you for replying..
Actually i done with that thing, but problem is that i want to use patchAverage <field> <requiredsurface> , so that i can directly know about mass or area weighted average on that particular surface (not a predefined boundary).
but how to get that individual surface from domain to calculate like this that i dont know.
or is there any way to calculate area or mass weighted averages on arbitrary surfaces in domain in any postprocessing software coming with openfoam.
thank you for your precious time.
You can use the patchAverage function as a funtionObject on a plane by adding some code to your controlDict. In the following code, an area weighted average of the pressure is calculated every outputTime (when the data is written) on a plane that is given by a base point and a normal vector.
In the sampledSurfaceDict, you can also use other types of planes (see examples in $FOAM_APP/applications/utilities/postProcessing/sampling/sample/sampleDict file)
I will try this and let u know.
Hi Suhas and Cedric,
I tried running the code and got the following error:
keyword sourceName is undefined in dictionary
Could you please suggest how to get rid of this error? I use OF 1.7.1
The code works when I define source as patch and sourceName as inlet. But I'd like to perform the calculations on an internal plane, within the mesh.
Thanks so much,
|All times are GMT -4. The time now is 09:01.|