CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Upwind scheme, surface flux

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2015, 00:03
Default Upwind scheme, surface flux
  #1
Senior Member
 
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12
wenxu is on a distinguished road
Dear, everyone,

Now I implement level set into OF, during the reinitialization process , the discrete scheme should be implemented myself. The WENO scheme is the best choice, however, for unstructured mesh, this scheme is not easy to implement. So I choose the upwind scheme instead.

My question is how can we know the neighbour meshes location relative to the owner mesh. That means I can calculate all of the neighbours of a owner mesh as this (for a specific cellI):

Code:
  const cellI = mesh.cells()[cellI];
                 const labelUList& owner = mesh.owner();
                 const labelUList& neighbour = mesh.neighbour();
                 forAll(cellI, facei)
                {
                     scalarList UneighbourList(6,0.0);
                     //- for explame ,the velocity field (U) we can get all of the neighbours cell values as follows:
                     UneighbourList.append(U[neighbour[facei]]);  //there will be six values if the mesh is  hexahedron. 
                     //- Also we can get the owner mesh value as this;
                    scalar Uowner = U[owner[facei]];
                 }

Then how can know these neighbour cells location relative to the owner cell? That means which one of these six values is on the left of the owner, which is on the right, top, bottom etc......

Could anyone give me some hints? Any comment is appreciated!

Best,
Wen
wenxu is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
bounded Gauss upwind Scheme deepinheart OpenFOAM Running, Solving & CFD 1 February 23, 2015 06:57
[snappyHexMesh] Layers don't fully surround surface EVBUCF OpenFOAM Meshing & Mesh Conversion 14 August 20, 2012 05:31
Drag comparison upwind vs. scheme Luk_Fiz CFX 3 April 27, 2009 22:42
Upwind flux scheme Biga FLUENT 0 January 12, 2006 13:41


All times are GMT -4. The time now is 08:40.