how to get the upwind node in OpenFOAM ?
Hi,
i want to know in openfoam program code that how to get the upwind node(s) in upwind scheme? what mathematic method do they use when getting the upwind node(s)? could you show me the related class or member functions? i try to find it out,but the code is a little difficult to me. i will keep trying at all times. thanks! |
You can find this in:
/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/upwind/upwind.H Line 131 If you don't know what is faceFlux I would recommend Hrv Jasak's thesis (use google to find a PDF) and if you don't know what the function pos() does I would recommend the programmer's guide for OpenFOAM (also use Google). |
thanks,
i think i know how it handled in openfoam. acturally, i am supposed to ask the method for finding upwind node in cvfem(control volume fem). and now i know it is not the same at all between fvm and cvfem. cvfem is more closer to fem. maybe i should find some methods using in fem. thank you all the same! |
i am sorry. after read more paper,now i think cvfem use the same methods for finding upwind nodes as used in fvm.
so i need to read openfoam code carefully to find the strategy used for 3D upwind node finding. |
All times are GMT -4. The time now is 18:19. |