|
[Sponsors] |
July 12, 2022, 07:54 |
How to get a (Nx,Ny) stencil on OpenFOAM?
|
#1 |
New Member
Jesus
Join Date: Sep 2021
Posts: 11
Rep Power: 5 |
Hi everyone! I am trying to implement a new discretization scheme for the convective term (div(phi,U)). So, in myCustomScheme.H I need to multiply the center values of the cells belonging to the stencil around the face f to certain predefined weights.
My question is how can I reconstruct every stencil, taking into account that the stencil is formed by Nx cells in the x-direction and Ny in the y-direction. I attach an image to clarify the problem (example: I need to reconstruct a 4x3 stencil --in red-- when I am working with the face f --in blue--). I have found some OF methods used to reconstruct stencils in high-order schemes, but I do not know if they are applicable to my problem. Thanks in advance! P.D: I am working with structured meshes. |
|
Tags |
customscheme, highorder, openfoam, stencil |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
How to develop OpenFOAM with CMake and popular IDEs | cosscholar | OpenFOAM Programming & Development | 0 | March 16, 2022 16:17 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |