CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Defining transient "Black Body temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2012, 07:35
Default Defining transient "Black Body temperature
  #1
New Member
 
Dimitris
Join Date: Jul 2012
Posts: 12
Rep Power: 13
dsfakianakis is on a distinguished road
Hello guys and girls,

I am currently performing a transient simulation of a room subjected to the outdoor weather conditions (air surrounding the room is modeled too). When setting up the boundary conditions for my inlet surface, under the radiation tab there is an option to define the "External Black Body Temperature method" which is the temperature of the sky vault which will be used for the radiation exchange between the wall and the sky (S2S radiation model used). Fluent allows you to define a different temperature than the boundary condition temperature however it doesn't allow you hook a UDF and change that temperature with time.

Does anybody have any clue on how I can define a transient black body temperature or in different words, how to define a transient parameter when fluent doesn't give me the option to hook a UDF?

Kind regards,

Dimitris
dsfakianakis is offline   Reply With Quote

Old   September 18, 2012, 08:09
Default
  #2
Senior Member
 
Bionico's Avatar
 
Flavio
Join Date: Sep 2011
Location: Brescia, Italy
Posts: 181
Rep Power: 15
Bionico is on a distinguished road
Hi dsfakianakis,
you could try using a journal file: for example every 100 iterations (or every # time steps) the simulation stops and that parameter is modified. Nevertheless in this case you can't introduce a function but only a number.

Regards
__________________
Bionico
Bionico is offline   Reply With Quote

Old   September 18, 2012, 08:24
Default
  #3
New Member
 
Dimitris
Join Date: Jul 2012
Posts: 12
Rep Power: 13
dsfakianakis is on a distinguished road
Dear Bionico,

Thank you very much for your reply. Although I have never used a journal file, from your description I am quite sure I understand how it works, and is a solution to my problem, even a sketchy one! Since the values I want to insert can be predetermined (sky temperature as a function of the ambient temperature which is an input to my model) I am confident I will manage to find my way around my problem.

I will let you know if it worked.

Thanks a lot!!

Dimitris
dsfakianakis is offline   Reply With Quote

Old   September 18, 2012, 09:18
Default
  #4
Senior Member
 
Bionico's Avatar
 
Flavio
Join Date: Sep 2011
Location: Brescia, Italy
Posts: 181
Rep Power: 15
Bionico is on a distinguished road
I post an example of a journal I usually use to change the Under relaxation factors during a simulation

rcd folder/file.cas
it 100
/solve/set/under-relaxation/mom 0.3
it 100
/solve/set/under-relaxation/mom 0.7
....
wcd folder/file.cas
yes


__________________
Bionico

Last edited by Bionico; September 18, 2012 at 09:39.
Bionico is offline   Reply With Quote

Old   September 18, 2012, 13:40
Default
  #5
New Member
 
Dimitris
Join Date: Jul 2012
Posts: 12
Rep Power: 13
dsfakianakis is on a distinguished road
Dear Bionico,

Thanks for your reply. I looked in the FLUENT user guide how to make a journal file however I couldn't locate any commands for the journal file (such as the command "it" you are using in the example you provided which I guess means iteration). I also did an online search and didn't find much. Is there some documentation available with instructions of how to write Journal Files?

Thanks

Dimitris
dsfakianakis is offline   Reply With Quote

Old   September 18, 2012, 14:20
Default
  #6
New Member
 
Dimitris
Join Date: Jul 2012
Posts: 12
Rep Power: 13
dsfakianakis is on a distinguished road
So,

Turns out I didn't know exactly what I was searching for! Just found out that journal file programming is called "Fluent Scheme programming" and that the only documentation available is some text translated to English from German. After some experimenting I concluded that the commands I need are the:

solve/dual-time-iterate
;Number of physical time steps [24]
1
;Number of iterations per time step [20]
,
;change the black body temperature here
solve/dual-time-iterate
.
.
.

However if there is any more documentation or you want to share some tips you are welcome to do so!

Thanks again for your help.

Dimitris
dsfakianakis is offline   Reply With Quote

Old   September 19, 2012, 03:42
Default
  #7
Senior Member
 
Bionico's Avatar
 
Flavio
Join Date: Sep 2011
Location: Brescia, Italy
Posts: 181
Rep Power: 15
Bionico is on a distinguished road
Hi Dimitris,
unfortunately I found only that german text, too.
Usually when I want to know the commands to use in the scheme I Start a Journal File (File---> Write---->Start Journal) in order to record all the commands that the simulations should do automatically (I suggest using TUI because GUI-commands are a bit complicated), then Stop Journal and I copy the commands in the File to be loaded when I start Fluent.

I know also that you can use some abbreviations (like "it" instead of "iterate")

Hope to be helpful

Flavio
__________________
Bionico
Bionico is offline   Reply With Quote

Old   September 19, 2012, 12:51
Default
  #8
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 15
NormalVector is on a distinguished road
Can you read a Profile into your simulation? It's basically a set of discrete boundary condition vs. time data. Take a look:
http://hpce.iitm.ac.in/website/Manua...ug/node301.htm
NormalVector is offline   Reply With Quote

Old   September 19, 2012, 13:14
Default
  #9
New Member
 
Dimitris
Join Date: Jul 2012
Posts: 12
Rep Power: 13
dsfakianakis is on a distinguished road
@Bionico

I managed to create the journal file according to my needs and run the simulation. Although it is not a very elegant solution, it worked perfectly! It is a very useful tool especially in order to automate processes and produce large amounts of data. Thank you so much for your recommendations and help.

@Normal Vector

Thank you for your reply. I looked in the ANSYS FLUENT 14.0 User guide how to write profile files however I came across this:

"The Write Profile dialog box allows you to create a profile file from the conditions on a specified cell zone or boundary/surface".

As I noticed the option to write a profile file is available only after I have started the simulation and have generated data.

Does this mean that the profile can only be derived by the results of a simulation?
Is there an official Profile File programming language (like the scheme language for journal files) in order to write a profile file from scratch according to my needs?

Thank you very much for your time to deal with my problem.

Dimitris
dsfakianakis is offline   Reply With Quote

Old   September 19, 2012, 13:28
Default
  #10
New Member
 
Dimitris
Join Date: Jul 2012
Posts: 12
Rep Power: 13
dsfakianakis is on a distinguished road
Dear Normal Vector,

Just to add something to my previous post, I went to the "Boundary Conditions" tab and clicked the "Profiles..." button and after selecting the surface of interest (pressure-outlet) there is no option to create a profile for the "Black Body Temperature". Does this automatically rule out any chances of changing that parameter with time with a profile?

Kind regards,

Dimitris
dsfakianakis is offline   Reply With Quote

Old   September 19, 2012, 13:30
Default
  #11
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 15
NormalVector is on a distinguished road
Quote:
Originally Posted by dsfakianakis View Post
@Bionico

I managed to create the journal file according to my needs and run the simulation. Although it is not a very elegant solution, it worked perfectly! It is a very useful tool especially in order to automate processes and produce large amounts of data. Thank you so much for your recommendations and help.

@Normal Vector

Thank you for your reply. I looked in the ANSYS FLUENT 14.0 User guide how to write profile files however I came across this:

"The Write Profile dialog box allows you to create a profile file from the conditions on a specified cell zone or boundary/surface".

As I noticed the option to write a profile file is available only after I have started the simulation and have generated data.

Does this mean that the profile can only be derived by the results of a simulation?
Is there an official Profile File programming language (like the scheme language for journal files) in order to write a profile file from scratch according to my needs?

Thank you very much for your time to deal with my problem.

Dimitris
That's for writing a profile from a simulation, but you can write your own profile containing temperature vs. time data points and read it in similar to hooking a UDF. There is a specific format the file must have but no coding is required. I'm currently using profiles to apply transient mass flow boundary conditions and it's much easier than writing a UDF.
NormalVector is offline   Reply With Quote

Old   September 19, 2012, 13:40
Default
  #12
New Member
 
Dimitris
Join Date: Jul 2012
Posts: 12
Rep Power: 13
dsfakianakis is on a distinguished road
Dear NormalVector,

Thank you for your reply. Since there is a specific format, is there any documentation available on that? Could you share a very simple example of how to define a mass flow boundary condition that changes with time?

Kind regards,

Dimitris
dsfakianakis is offline   Reply With Quote

Old   September 19, 2012, 13:58
Default
  #13
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 15
NormalVector is on a distinguished road
Sure, the general format is inside of the link I sent above but specifically here:
http://hpce.iitm.ac.in/website/Manua...ug/node303.htm

Attached is an example. The first entry is the boundary condition name, the next declares it's transient, the next entry is the number of data points and the last entry is whether or not it's periodic (double check that, not sure). Note that the extension really should be .prof, not .txt.
Attached Files
File Type: txt prof_example.txt (130 Bytes, 15 views)
NormalVector is offline   Reply With Quote

Old   September 20, 2012, 05:59
Default
  #14
New Member
 
Dimitris
Join Date: Jul 2012
Posts: 12
Rep Power: 13
dsfakianakis is on a distinguished road
Dear NormalVector,

Thank you very much for your quick reply and the interest in my problem. Your example is very helpful however as I mentioned to a previous post I cannot seem to detect the "black body temperature" in the list of boundary conditions for the velocity-inlets and pressure-outlets.

Dimitris
dsfakianakis is offline   Reply With Quote

Reply

Tags
black body temperature, radiation, transient parameter


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FSI Transient Thermal Analysis Abduri CFX 1 January 1, 2017 22:54
Too low temperature at combustor outlet romekr FLUENT 2 February 6, 2012 10:02
difference of temperature HKH FLUENT 0 January 28, 2010 02:45
set temperature on subdomain, in transient mode nicolas CFX 0 August 16, 2006 06:42
transient temperature field with constant velocity Törnquist CFX 0 September 16, 2003 04:22


All times are GMT -4. The time now is 21:56.