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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2022, 17:13
Default Initializing
  #1
New Member
 
Peyman
Join Date: Jul 2021
Posts: 4
Rep Power: 2
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, 22:30
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,013
Rep Power: 31
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

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


All times are GMT -4. The time now is 01:38.