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

How to get a (Nx,Ny) stencil on OpenFOAM?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2022, 06:54
Smile How to get a (Nx,Ny) stencil on OpenFOAM?
  #1
New Member
 
Jesus
Join Date: Sep 2021
Posts: 11
Rep Power: 4
jgs55 is on a distinguished road
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.
Attached Images
File Type: jpg stencil.jpg (62.3 KB, 11 views)
jgs55 is offline   Reply With Quote

Reply

Tags
customscheme, highorder, openfoam, stencil


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
How to develop OpenFOAM with CMake and popular IDEs cosscholar OpenFOAM Programming & Development 0 March 16, 2022 15:17
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 17:05.