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

calculating the face gradient of a UDS in fluent

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

Like Tree1Likes
  • 1 Post By pifou74

Reply
 
LinkBack Thread Tools Display Modes
Old   September 28, 2012, 18:40
Default calculating the face gradient of a UDS in fluent
  #1
New Member
 
Join Date: Dec 2011
Posts: 1
Rep Power: 0
mean5990 is on a distinguished road
Hi every one,
I am trying to solve water transport equation in a fuel cell using ANSYS Fluent.
I need to define a flux for the equation that I am gonna solve. The problem is that I cannot calculate face gradients in my code. I used F_UDSI_G(c,t,0) macro for this purpose but I recieved this error:
"
..\..\src\sources2.c(348) : error C2109: subscript requires array or pointer type
..\..\src\sources2.c(348) : error C2109: subscript requires array or pointer type
..\..\src\sources2.c(348) : error C2109: subscript requires array or pointer type
"
Does anybody know how to calculate face gradients of a UDS in fluent?
mean5990 is offline   Reply With Quote

Old   September 29, 2012, 11:24
Default
  #2
New Member
 
Peter
Join Date: Mar 2009
Posts: 15
Rep Power: 8
pifou74 is on a distinguished road
I think that gradient data are not stored for the faces excepted boundary faces. You can only calculate the gradient by estimating a mean of the adjacent cells to the face....

Good luck
hzsme likes this.
pifou74 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating the Wall Shear Stress Gradient over surface 123catty456 Main CFD Forum 1 October 1, 2012 22:27
HELP! grid check failed in parallel fluent restart FLUENT 0 March 5, 2011 10:55
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
Face based gradient calculation Bernhard Kubicek Main CFD Forum 1 February 12, 2008 17:34
Converting meshes that includes interfaces ham OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 29 January 8, 2007 09:58


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