|
[Sponsors] |
April 21, 2022, 18:13 |
Initializing
|
#1 |
New Member
Peyman
Join Date: Jul 2021
Posts: 12
Rep Power: 5 |
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) } } |
|
April 21, 2022, 23:30 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 |
|
|
|
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 |