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

wall shear stress

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2006, 09:55
Default wall shear stress
  #1
librasu
Guest
 
Posts: n/a
I would like to access the WALL Shear stress on the boundary faces. When I complied the UDF file to FLUENT, this line, NV_V(wallshear,=,C_STORAGE_R_NV(f,t,SV_WALL_SHEAR) );, has problem. The value of wallshear was not an array, and it was not reasonable. I hope that someone can point the problem out. The problem makes me quite confused. Thanks a lot.

#include "udf.h" #include "sg.h" #include "mem.h" #include "sg_pdf.h" #define PI 3.1415926

DEFINE_GRID_MOTION(ccc, domain, dt, time, dtime)

{ Thread *tf=DT_THREAD(dt); Thread *t; face_t f; cell_t c; Node *node_p; real Z_A,A_by_es,www,NV_VEC(WSS),AA,Z_B,area,NV_VEC(wal lshear),NV_VEC(A); int n; if (!Data_Valid_P())

return;

SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));

AA=sin(2.0*PI*time);

begin_f_loop(f,tf) {

c=F_C0(f,tf);

t=THREAD_T0(tf);

NV_V(wallshear,=,C_STORAGE_R_NV(f,t,SV_WALL_SHEAR) );

------------------

------------------

} end_f_loop(f,tf); }

  Reply With Quote

Old   July 2, 2006, 14:30
Default Re: wall shear stress
  #2
librasu
Guest
 
Posts: n/a
The UDF cannot be compiled in Windows OS, but it can be compiled in Unix O. When it is compiled in Unix, Fluent ignored the C_STORAGE_R_NV(f,t,SV_WALL_SHEAR). When in Windows, the error message:

Updating solution at time level N... done. Updating mesh at time level N... Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()

I am not sure whethre the UDF can storage the WALL_SHEAR_STRESS, since the value is either more than 1 billion or 0 in windows. In Unix, the value is 0, since this commond is ignored.

I also doubt the C_STORAGE_R_NV(face, face_thread, SV_WALL_SHEAR), since the C means the cell, I think, and the the variable and the thread are belonging to face. I google the Wall Shear Stress Macro, and I also find F_STORAGE_R_N3V(f,tf,SV_WALL_SHEAR). Therefore, the expression of WSS macro is a litttle confusing.

Since I typed many words, I hope that I can get some response and the useful advices. God Bless

Thanks You So Much.
  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
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
Wall shear stress GamFlu Main CFD Forum 0 June 11, 2011 05:33
Wall Shear Stress GamFlu FLUENT 0 June 11, 2011 04:52
relationship between wall shear stress and TKE winter FLUENT 0 December 11, 2007 18:11
Re: About wall shear stress Mike FLUENT 9 November 17, 2003 15:41


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