|
[Sponsors] |
June 6, 2011, 17:50 |
Set value of cell to face.
|
#1 |
New Member
Maciej
Join Date: Jun 2011
Posts: 1
Rep Power: 0 |
Hello, my problem is that i need to assign to faces a values of nearest cells. I need to have on faces a value of Strain Rate to compute good values of Strain Rate gradient. Without this I have 0 on walls and gets wrong value of gradient. I know I can use Adjacent Cell Index (F C0, F C1) but i dont know how exactly I should do this. Thanks for help.
DEFINE_ADJUST(AT_BEGIN,domain) { cell_t c; Thread *t; face_t f; thread_loop_c(t,domain) { begin_c_loop_all(c,t) { C_UDSI(c,t,1)=C_STRAIN_RATE_MAG(c,t); } end_c_loop_all(c,t) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to determine the direction of cell face vectors on processor patches | sebastian_vogl | OpenFOAM Programming & Development | 1 | October 11, 2016 13:17 |
Hydrostatic Pressure and Gravity | miliante | OpenFOAM Running, Solving & CFD | 132 | October 7, 2012 22:50 |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 05:50 |
Exporting Cell set from STAR CCM+ | vishyaroon | STAR-CCM+ | 0 | July 13, 2009 14:47 |
how to access each cell of a face? (user fortran) | Katariina | CFX | 3 | January 28, 2008 09:16 |