Planar averaging for unstructured mesh #657
-
|
Hello, I am interested in performing planar averaging of fields, similar to what is done by the planarAvg function in the gabls example. However, I'd like to be able to perform planar averaging on custom meshes that may not be structured. For example, for a flow-over-cylinder geometry, my mesh would be unstructured in the cross-sectional plane, and I would like to take averages in the direction of the cylinder axis. Firstly, is my understanding correct that the planarAvg function assumes that the mesh is made with genbox and a .box file? Secondly, is there already a way to perform planar averaging in NekRS for custom/unstructured meshes? If not, is there a simple way to modify the existing planar averaging function to obtain this desired functionality? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
The built in planar average relies on the topology of the mesh and it doesn't work for unstructured grid. Two ways for you.
We are preparing a more user friendly plugin as an interface for 2. so everyone can extract the data on their favored way easier. |
Beta Was this translation helpful? Give feedback.
The built in planar average relies on the topology of the mesh and it doesn't work for unstructured grid.
Two ways for you.
gfldror viarestartFrom = "a.fld + int"(next branch). Since the dummy simulation uses structural grid, you can call planar average.nekRS/examples/gabls1/gabls.udf
Lines 212 to 243 in 55d6414