CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Problem in understanding Face and Cell calculations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2019, 23:54
Talking Problem in understanding Face and Cell calculations
  #1
Member
 
Abhinand
Join Date: Jun 2016
Posts: 75
Rep Power: 10
Abhinand is on a distinguished road
Dear CFD giants

Can someone please help me understand why does this happen

udf code
cr = F_C0(f,r_thread);
printf("Face vs Cell Stress qties at Outlet\n");
ctr=0;
begin_f_loop(f,t)
{ if(ctr==30){
F_CENTROID(FCI,f,r_thread);
printf("F-Loop\n");
printf("Xcoor Ycoor %f %f\n",FCI[0],FCI[1]);
printf("TKE %f\n",F_K(f,r_thread));
printf("Diss %f\n",F_D(f,r_thread));
printf("RUU %f\n",C_RUU(cr,r_thread));
printf("RVV %f\n",C_RVV(cr,r_thread));
printf("RWW %f\n",C_RWW(cr,r_thread));
printf("RUV %f\n",C_RUV(cr,r_thread));
printf("RVW %f\n",C_RVW(cr,r_thread));
printf("RUW %f\n",C_RUW(cr,r_thread));}
ctr++;
}
end_f_loop(f,t)
ctr=0;
begin_c_loop(cr,t)
{ if(ctr==30){
C_CENTROID(FCI,cr,r_thread);
printf("C-Loop\n");
printf("Xcoor Ycoor %f %f\n",FCI[0],FCI[1]);
printf("TKE %f\n",C_K(cr,r_thread));
printf("Diss %f\n",C_D(cr,r_thread));
printf("RUU %f\n",C_RUU(cr,r_thread));
printf("RVV %f\n",C_RVV(cr,r_thread));
printf("RWW %f\n",C_RWW(cr,r_thread));
printf("RUV %f\n",C_RUV(cr,r_thread));
printf("RVW %f\n",C_RVW(cr,r_thread));
printf("RUW %f\n",C_RUW(cr,r_thread));}
ctr++;
}
end_c_loop(cr,t)




Output
Face vs Cell Stress qties at Outlet
F-Loop
Xcoor Ycoor 0.200000 0.000069
TKE 2508.269726
Diss 1987451131.263013
RUU 38.838337
RVV 157.247017
RWW -109.152641
RUV 0.000000
RVW 0.000000
RUW 0.015118
C-Loop
Xcoor Ycoor 0.200000 0.000069
TKE 2508.269726
Diss 1987451131.263013
RUU 4284.995212
RVV 140.781893
RWW 585.713246
RUV -389.207321
RVW 0.000000
RUW 0.000000

I cant understand how the values of face and cell values are so different.
My domain is a 2-D rectangular domain

Any help would be appreciated
Abhinand is offline   Reply With Quote

Reply

Tags
cell, face, macros, reynolds stress models, udf


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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


All times are GMT -4. The time now is 18:51.