Quote:
|
Hi Friends
I wrote this code, please can someone tell me if my UDF was correct, and if there are errors, you could fix it. thank you PHP Code:
help me please error line 16: c: undeclared variable. |
Quote:
and then you have used thread in begin_f_loop(f, thread) and in end_f_loop(f,thread). You have to decide. Use t or thread in both. Let's try as follow, it should work. I hope :p PHP Code:
|
Quote:
your equations look completely different in respect of what you posted before.. You are using c in the C_T(c,t) which is your cell temperature but you are not declaring what is c (as the description of error); you are using c (cell) inside and f (face) loop. If you want the mean of the temperature of the pcm domain you have to first do a c loop over the pcm domain and calculate the mean temperature, then use the f loop to calculate the boundary profile. Also this "if(Tam<Tpv<Tm)" should be "if (Tpv>Tam) && (Tpv<Tm)". And also C langiage is case sensitive: time is different than Time, and you are not declaring what is Time. "Tpv=Tm" assigns Tm to Tpv: it should be Tpv==Tm. Daniele PS: Condition Tam<Tpv<Tm will never be possible because you defined Tm<Tam!! |
1 Attachment(s)
Hi
I changed the equation for the heat flux exerted on the pvhotovoltaique PANEL, an attached image shows the equation |
HTML Code:
#include "udf.h" |
Do you keep getting the same error?
|
Quote:
Yes the same error. |
Quote:
Thanks Shane |
1 Attachment(s)
Need help!!
i got this message when i'm trying to compile my udf can anyone solve this error message? |
Yes. Look at you code, and check lines 3, 4 and 11, something is wrong there.
|
1 Attachment(s)
This is my code, i don't know what is wrong here..
can you find the mistakes sir? |
I'm trying to make code for rolling motion of ship..
|
Yes I can, and I can show you how. Just read the error messages!
The first error you get says that there are not enough actual parameters in line 3. So, go ahead, count how many parameters you have (hint: "roll" is a parameter, "dt" is a parameter, "omega" is a parameter, "time" is a parameter and "dtime" is a parameter.) Then look up in the help how many parameters there should be, and you will see something you did wrong. |
can you fix my code please?
i can't see what i must doing in help.. |
Seriously?
Ok, you are using the macro "DEFINE_CG_MOTION". Look up in the help how many parameters that needs... |
1 Attachment(s)
i've trying to fixed my codes but when i'm compiling i have another error like this...
|
I don't understand why you send me a private message telling that you use notepad.
Using notepad does not prevent you from opening the Fluent manual, and looking at how the macro "DEFINE_CG_MOTION" should be used. Do you know how to open the Fluent manual? Do you know how to search in the Fluent manual? |
yes i can,, i have seen fluent manual and i have fixed my code..
but when i'm compiling the code again, i got error messages above.. what should i do? |
I am not paranormal, so if you don't show your code I can never know what is wrong.
|
All times are GMT -4. The time now is 18:13. |