CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   how to get the upwind node in OpenFOAM ? (https://www.cfd-online.com/Forums/openfoam/87954-how-get-upwind-node-openfoam.html)

lzw2003 May 3, 2011 22:21

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!

stevenvanharen May 4, 2011 07:09

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).

lzw2003 May 4, 2011 23:27

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!

lzw2003 May 5, 2011 04:40

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.