CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Stokes theorem implementation (https://www.cfd-online.com/Forums/openfoam-programming-development/143958-stokes-theorem-implementation.html)

jmdf November 6, 2014 06:05

Stokes theorem implementation
 
Hello everyone,

i'm trying to implement the Stokes theorem on OF for testing purposes.
My idea is to calculate a surface integral of the vector's curl over a specified face and then calculate a path integral over the boundaries of that specified face and evaluate the results.

My questions are:

1 - How to implement the surface integral calculation? I have the value on cells faces, interpolated from the values on cells centers.

2 - What routines should i use to calculate the path integral and how do i get the values of the boundaries of the specified face?


Best regards


All times are GMT -4. The time now is 07:12.