Boundary condition temerature profile
Hello,
I have been working on transient analysis with considering the below code but I have strange results. is there anyone to help me to find my problem? (indeed I divide the temperature profile to some branches to get accurate fitting curve, that's why I have more than one equation in the code) Code:
/*********************************************************************** regards, |
Your equations give the following profile:
Code:
#time #temperature |
thank you very much for reply,
I couldnt get the correct equations through excell (it gives me the same as what I had before) thus, i decided to use a constant value (interval value) instead of equation and the solutions are converged. when I implmenting another code (please see the second code) represent the properties for a material within the model. agian i have "converge problem" and it gives me wrong results. would you please check it? regards, Code:
/*********************************************************************** |
No, I am not going to do your work.
If you want to learn something, I am very willing to help you. If you just want me to fix your errors, I'll pass. I have shown you how you can test your udf: compare what your udf should do to what your udf actually does. Now you do it. If you can not do this, do the best you can, and show your intermediate results here, and I'll help. But at least try... |
thanks for your reply,
I used constant value (interval values) instead of using equations, in order to be sure of temperature profile for boundary condition. however, it takes a lot of time to do such a this but i have no other way. and finally, the result is acceptable of meaning. in next step, I have face with another problem with strange result, when I implementing another code for my source term (pleas see the code) and can't find my problem. any help please? regards, Code:
|
Quote:
If you want to learn something, I am very willing to help you. If you just want me to fix your errors, I'll pass. I have shown you how you can test your udf: compare what your udf should do to what your udf actually does. Now you do it. If you can not do this, do the best you can, and show your intermediate results here, and I'll help. But at least try... |
I think I Have sorted the problem was showed up by equations within the code (still not sure).
the problem was end point and start point of each equation indeed. because, in the last version that I submitted, there was non continuously (as I put randomly some points regarding just to check them). so with changing the equation with power 3 to power 1 it was solved. I faced with another problem, don't understand where is the problem. until 19000sec the results are converged with time step size 30sec with 250iteration and 2880time steps.afterward, not convergence... where is my mistake? regards, Code:
/*********************************************************************** |
All times are GMT -4. The time now is 15:33. |