CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   how to get a upwind node (https://www.cfd-online.com/Forums/main/86498-how-get-upwind-node.html)

lzw2003 March 24, 2011 03:11

how to get a upwind node
 
hi,
recently, i want to program a project using the high resolution scheme
http://www.cfd-online.com/Forums/vbL...de796111-1.gif, which is used in CFX.
some work has been done but i have no idea about how to get the upwind node to calculate phi_up,especially in hexahedron mesh.

maybe i will check the openFoam source code .

anyone have some suggestion ?





lzw2003 May 4, 2011 23:43

Again,how to find upwind node in FEM?
 
CFX uses CVFEM( control volume FEM)method, and this method is more closer to FEM, i think the common method for finding an upwind node in fem is eough.

could anyone give me some clue about finding an upwind node in FEM or CVFEM method? is it a pure mathematic problem?

lzw2003 May 5, 2011 04:51

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.

CFDtoy May 6, 2011 14:04

upwind value
 
Hi there,
are you coding on your own? if so, did you create a list of face and cell connectivity..then do the following

face loop - on a given face..check flux from cell1 to cell2..if its positive cell1 is upwind cell - else cell2 is the downwind cell and take the properties from cell2.

Evne if you are not coding on your own (i mean basic solver structure is something like openFoams or others), accessing face / cell structure should be straightforward.

My 2c !

Thanks,

CFDtoy



Quote:

Originally Posted by lzw2003 (Post 306329)
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.


lzw2003 May 8, 2011 22:08

Hi CFDtoy,

i create my list of face and cell connectivity. if the direction of velocity on face is not parellel to the face normal or there is a big angle between them, ie. the face normal between cell1 and cell2 is parellel to x direction , the velocity is nearly vertical to x directoin and it is positive. shall we also choose the cell1's centre as the upwind node?

how does it handle in 3D mesh, is it the same?

thanks!

lalupp May 10, 2011 02:17

In 3d case For each hex cell which has got 6 faces ,there are 6 upstream cells possible. In most of the the codes collocated schemes are used in which pressure and velocity are evaluated at the cell center and face velocity always normal to the common face which has two option either inward or outward (-ve or +ve)

Thus to find upstream cell find face velocity (uf)
if uf > 0 upstream cell is the parent cell otherwise neighbor cell

Try openfvm documentation clearly described


All times are GMT -4. The time now is 22:31.