|
[Sponsors] |
November 30, 2020, 14:15 |
if Statement for multiple UDS not working?
|
#1 |
Member
|
Hi, somehow I am unable to use the if statement for my two UDS FLUX I have. Where is my mistake?
I used this form: Code:
DEFINE_UDS_FLUX(my_uds_flux, f, t, i) { if (i==0) {..... return flux; } } if (i==1) { ..... return flux; } } |
|
November 30, 2020, 22:17 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
are you sure about brackets in your code scheme?
compile udf and read the log this code should work well in case there are no problems with syntax
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
flux, uds, uds_convective_term |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
When to use User-defined Scalar (UDS) for concentration? | THC | FLUENT | 1 | May 30, 2019 10:04 |
Can you explain me how to use UDS? | Tleja | Fluent UDF and Scheme Programming | 0 | July 14, 2015 02:52 |
what "If" condition means in rebound | brbbhatti | OpenFOAM Programming & Development | 0 | August 12, 2014 10:18 |
A good question about UDS | Z | FLUENT | 1 | March 31, 2005 16:14 |
UDS | David | FLUENT | 1 | March 21, 2005 12:31 |