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

Initializing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2022, 18:13
Default Initializing
  #1
New Member
 
Peyman
Join Date: Jul 2021
Posts: 12
Rep Power: 5
p.norouzi.gv is on a distinguished road
I defined a UDS function, and now I am trying to give an initial amount to the UDS. I used the DEFINE_INIT macro, but in the boundaries, the UDS amount is equal to 0. I would be happy to hear your ideas to solve this problem.


DEFINE_INIT(my_init_func,d)
{
cell_t c;
Thread *t;
real xc[ND_ND];

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

/* loop over all cells */
begin_c_loop_all(c,t)
{
C_CENTROID(xc,c,t);
//**FI**
C_UDSI(c,t,0)=7000;
//**FIa**

}
end_c_loop_all(c,t)
}
}
Attached Images
File Type: jpg initial.jpg (24.8 KB, 1 views)
p.norouzi.gv is offline   Reply With Quote

Old   April 21, 2022, 23:30
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
to define variables on boundaries you may use begin_f_loop macro to loop over faces
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ 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
Initializing large models mahmoudtmt FLUENT 3 July 16, 2017 23:35
ignorance the initializing sinatahmooresi OpenFOAM Running, Solving & CFD 0 May 22, 2016 07:13
Initializing or patching cell zones kozalp FLUENT 0 December 30, 2013 17:00
VOF error when initializing Simone Siemens 11 February 11, 2009 12:26
query regarding role of initializing in a solving Kishore FLUENT 2 July 5, 2007 00:23


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