CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Set value of cell to face.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2011, 17:50
Default Set value of cell to face.
  #1
New Member
 
Maciej
Join Date: Jun 2011
Posts: 1
Rep Power: 0
Emzeten is on a distinguished road
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)
}
Emzeten 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
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


All times are GMT -4. The time now is 09:33.