|
[Sponsors] |
August 5, 2015, 00:03 |
Upwind scheme, surface flux
|
#1 |
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 13 |
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 |
|
|
|
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 |