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

Fluent initialization UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2019, 18:52
Default Fluent initialization UDF
  #1
New Member
 
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 7
ALBATTROSS is on a distinguished road
Hello all,

I'm initializing the flow with a UDF in FLUENT with the following UDF:
DEFINE_INIT(pure_cond, domain)
{
cell_t c;
Thread *t;
real xc[ND_ND];

/* loop over all cell threads in the domain */
thread_loop_c (t,domain)
{

/* loop over all cells */
begin_c_loop_all (c,t)
{
C_T(c,t) = -5000*xc[0] +100 ;
}
end_c_loop_all (c,t)
}
}

the problem is: Because this udf only specifies the values at the centroid The boundaries (i.e. The values of Temperature at boundary nodes) are not taking the values of this initialization. Surprisingly the values on the temperature at boundary nodes are not the same as the boundary condition values. I want specified values on boundaries when I initialize. Do you suggest a solution to this?
I attached a picture of the domain below

Thank you
Attached Images
File Type: jpg bc.jpg (51.6 KB, 16 views)
ALBATTROSS is offline   Reply With Quote

Old   October 28, 2019, 22:58
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
make a loop over faces.
switch of "node values" option, when you plot contours
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   November 1, 2023, 13:16
Default
  #3
New Member
 
Taosif Alam
Join Date: Oct 2020
Posts: 4
Rep Power: 5
taosifme014 is on a distinguished road
Hi, Are you able to fix this?
taosifme014 is offline   Reply With Quote

Reply


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
Problem running fluent with udf on batch tobi b. Fluent UDF and Scheme Programming 3 April 14, 2016 13:54
UDF for temperature initialization in FLUENT Ami24 FLUENT 0 February 25, 2016 08:27
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 10:16
UDF problem caused by various version of Fluent Yurong FLUENT 3 January 15, 2006 10:57


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