|
[Sponsors] |
July 24, 2013, 07:04 |
|
#21 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
The code remains valid in this case. But as always, you should check if the temperature profile is correct before running your actual simulations.
No need to give me credits in your report for just a few lines of code. |
|
July 24, 2013, 08:32 |
|
#22 |
Member
sooraj
Join Date: Dec 2012
Posts: 38
Rep Power: 14 |
i didnt check the profile. Can you please tell me how to do that also?? I googled it but got no positive results
|
|
July 24, 2013, 09:41 |
|
#23 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
Run a few iterations and look at a contour plot of the temperature at this boundary.
|
|
July 24, 2013, 13:14 |
|
#24 |
Member
sooraj
Join Date: Dec 2012
Posts: 38
Rep Power: 14 |
thank you very much buddy. i wish i could return the favour somehow
|
|
July 24, 2013, 13:38 |
|
#25 |
Member
sooraj
Join Date: Dec 2012
Posts: 38
Rep Power: 14 |
"Warning: explicit time-stepping not available. Using 1st-order dual-time. '' i get this msg while interpreting. calculation goes smoothly.you know what this mean??
|
|
July 24, 2013, 14:40 |
|
#26 |
Member
sooraj
Join Date: Dec 2012
Posts: 38
Rep Power: 14 |
this is the contour i got . is this correct??
|
|
July 24, 2013, 17:28 |
|
#27 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
I have no idea why you get this message during interpretation of the UDF. What transient scheme do you use? Which kind of solver?
About the contour: provided the range is from 298K to 323K and the y-axis points from bottom right to top left, the contour is ok. Dont mind the artifacts at the intersection with the other face, they are mostly caused by the visualization. |
|
July 25, 2013, 01:22 |
|
#28 |
Member
sooraj
Join Date: Dec 2012
Posts: 38
Rep Power: 14 |
now there's no warnings. some mistakes from my part,i think.And about the contours, i think i need the variation in a vertical manner.bottom of the tank(cylinder) face should be blue above that green like ways. Can you modify like that??
|
|
July 25, 2013, 04:09 |
|
#30 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
I cant. You are the only one who knows the orientation of your model. All you have to do is change the following line to match your requirements:
F_PROFILE(f, thread, position) = (tmin+tmax)/2.0 + (tmax-tmin)/d*x[1]; All the information you need can be found in this thread. |
|
July 8, 2014, 21:18 |
Please please, need help.
|
#31 |
Member
Mohamed
Join Date: Jan 2011
Location: Algeria
Posts: 46
Rep Power: 15 |
Hello,
I'm VERY new to Fluent and I'm attempting to write a UDF that will make the heat flux at a wall a function of time. I've never programmed in C before either so I'm having some trouble getting the correct sytax My function in Attach Files: Please help me to witre it I : Heat flux. A : area of the front surface. t : Time. T : Temperature. h : heat transfer coefficient. \DeltaX : depth. Cp: specific heat \rho: density. |
|
July 10, 2014, 07:42 |
|
#32 | |
Member
David
Join Date: Aug 2012
Posts: 48
Rep Power: 14 |
Quote:
http://bytes.com/topic/c/answers/866...ube-surface-3d In your case if the heat flux doesn't depend of the position of the face in the boundary, it is even simpler. Something like this:
The values of density, specific heat etc... can be found here: http://aerojet.engr.ucdavis.edu/flue...udf/node90.htm I dont know what depth in your model means, you shall give more information. Regards |
||
July 10, 2014, 22:38 |
|
#33 | |
Member
Mohamed
Join Date: Jan 2011
Location: Algeria
Posts: 46
Rep Power: 15 |
Quote:
About my problem, I'll explain. I treat the solidification of a material phase change in a photovoltaic system, a picture attachment allows you to know all the included in the model used to determine the heat flux exerted on the photovoltaic system variables. Greetings |
||
July 11, 2014, 05:14 |
|
#34 | |
Member
David
Join Date: Aug 2012
Posts: 48
Rep Power: 14 |
Quote:
|
||
July 11, 2014, 07:29 |
|
#35 |
Member
Mohamed
Join Date: Jan 2011
Location: Algeria
Posts: 46
Rep Power: 15 |
||
July 11, 2014, 13:36 |
|
#36 |
Member
David
Join Date: Aug 2012
Posts: 48
Rep Power: 14 |
||
July 11, 2014, 22:20 |
|
#37 | |
Member
Mohamed
Join Date: Jan 2011
Location: Algeria
Posts: 46
Rep Power: 15 |
Quote:
Hi An image attached shows geometry and boundary conditions. Thank you so much. |
||
July 12, 2014, 10:56 |
|
#38 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
What is Tpv? It's the mean of temperature in the pcm domain or a specific temperature in a specific point?
For Tpv(t-deltat) you could try to use C_T_M1(c,t), which returns the cell temperature value of the previous time step. In your equation consider "t" as "t-deltat" and "t+deltat" as "t". Try to start writing some code. Daniele |
|
July 12, 2014, 11:13 |
|
#39 | |
Member
Mohamed
Join Date: Jan 2011
Location: Algeria
Posts: 46
Rep Power: 15 |
Quote:
T The temperature of the photovoltaic panel at the instant t. T The temperature of the photovoltaic panel at the instant t+\Delta t |
||
July 12, 2014, 11:21 |
|
#40 | |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Quote:
Again, start writing some code, someone will help you to go through your code. Daniele |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
please help UDF for velocity profile in y-directio | raju | Fluent UDF and Scheme Programming | 6 | April 13, 2019 00:21 |
UDF error - parabolic velocity profile - 3D turbine | Zaqie | Fluent UDF and Scheme Programming | 9 | June 25, 2016 20:08 |
defining temperature profile with UDF | mohammadkm | Fluent UDF and Scheme Programming | 11 | July 3, 2013 01:15 |
UDF temp. profile BC | Shashikant | FLUENT | 0 | June 24, 2006 04:16 |
temperature profile on boundary | sivakumar | FLUENT | 5 | November 24, 2002 01:58 |