Discrete inner-product on non-uniform mesh #170
-
Hi guys, I'm trying to write the same post-process that appears in BC-TGV.f90, but for cases where the mesh is non uniform, for example, x and z are uniform and y is stretched.
I thought to modify that as follows
But dunno if this is correct or not, or should I go for like computing the mean value in the cell center and multiplying for the volume of the cell, so I don't have to take half volume for the points collocated at the edge of the domain. Thanks so much in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello, You can use something based on the estimation of the averaged velocity available in the channel flow subroutines : https://github.com/xcompact3d/Incompact3d/blob/master/src/BC-Channel-flow.f90#L200 Best regards, |
Beta Was this translation helpful? Give feedback.
-
Oh thank you so much, I missed that ! |
Beta Was this translation helpful? Give feedback.
Hello,
You can use something based on the estimation of the averaged velocity available in the channel flow subroutines : https://github.com/xcompact3d/Incompact3d/blob/master/src/BC-Channel-flow.f90#L200
Best regards,
Mathrack