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

Initial Temperature for any solid and fluid

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2016, 03:31
Default Initial Temperature for any solid and fluid
  #1
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Hi,

I am working on temperature distribution of some mould equipments.

I need to define initial temperature input for some solid and fluid zones those are named ''wall'' .

I couldnt do it by using ''patch'' in initizaliton tab. (adapt>boundary>mark) all boundaries have been registered in patch tab. But solution is terrible. That's why I am thinking about how can I do it by using UDF? (Hint: I have never write UDF but c++ installation has been done)

Kind Regards,
oozcan is offline   Reply With Quote

Old   September 19, 2016, 06:00
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Quote:
But solution is terrible.
How terrible? What happened?
pakk is offline   Reply With Quote

Old   September 19, 2016, 06:16
Default
  #3
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
So, 1473.15K that was given initial temperature for two different faces in fluid zone. 323.15K that was given initial temperature for a face in solid zone. Result is, 323.15 K has acted like a wall ( it is already wall in BC. I have patched yet). and 1473.15K has acted like same (like wall).

Those faces are wall in BC. But I need to give them as ''wall''. because of being trivial faces. That's why this time I need to give them initial temperature in order to obtain proper results. But result is unsuccessful.

Now I am trying to give initial temperature condition in two cell zone. I think that is more proper one than the other one.

How can I give initial temperature condition in two cell zone those are fluid and solid.

One of them has been done in patch tab. But the other one is ???

Hint : Model is complex 3D,

Kind Regards,
oozcan is offline   Reply With Quote

Old   September 19, 2016, 06:21
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
I am sorry but I can not follow what you are trying to say.
pakk is offline   Reply With Quote

Old   September 19, 2016, 06:24
Default
  #5
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
well,

I need to give initial temperature for two cell zones. One of them has been done in patch tab. But the other one is ?? how can I do that?
oozcan is offline   Reply With Quote

Old   September 19, 2016, 06:31
Default
  #6
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
patch one zone with temperature X, then patch the second as temperature Y.
oozcan likes this.
Bruno Machado is offline   Reply With Quote

Old   September 19, 2016, 06:32
Default
  #7
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Quote:
Originally Posted by Bruno Machado View Post
patch one zone with temperature X, then patch the second as temperature Y.
in patch tab? I think it is not possible to do them in same tab.
oozcan is offline   Reply With Quote

Old   September 19, 2016, 06:34
Default
  #8
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
I think that it can be given only one initial in patch tab. I have readed some tutorials and it tells that it could be done in adapt menu.

But those are cell zones?
oozcan is offline   Reply With Quote

Old   September 19, 2016, 06:38
Default
  #9
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
Quote:
Originally Posted by oozcan View Post
in patch tab? I think it is not possible to do them in same tab.
solution initialization > patch > select the first zone to patch, type its value, patch / select the second zone to patch, type its value, patch.
oozcan likes this.
Bruno Machado is offline   Reply With Quote

Old   September 19, 2016, 06:43
Default
  #10
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Quote:
Originally Posted by Bruno Machado View Post
solution initialization > patch > select the first zone to patch, type its value, patch / select the second zone to patch, type its value, patch.
ok, I am going to try it.

Some faces in regarding zones are wall (named selection and BC).That's why all of them have temperature value in wall tab. Are they now unnecessary to have those temperature value as I give regarding cell zone temperature in patch tab ?
oozcan is offline   Reply With Quote

Old   September 19, 2016, 06:51
Default
  #11
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Quote:
Originally Posted by Bruno Machado View Post
solution initialization > patch > select the first zone to patch, type its value, patch / select the second zone to patch, type its value, patch.
So, how can i give initial temperature for wall BCs in same way?
oozcan is offline   Reply With Quote

Old   September 19, 2016, 06:53
Default
  #12
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
Quote:
Originally Posted by oozcan View Post
ok, I am going to try it.

Some faces in regarding zones are wall (named selection and BC).That's why all of them have temperature value in wall tab. Are they now unnecessary to have those temperature value as I give regarding cell zone temperature in patch tab ?
i am not sure what you are trying to say.

when you patch you are forcing the value in the cells at that moment to be the one you want. the boundary conditions wont change, unless you change the value in the BC tab. they are two different things.
oozcan likes this.
Bruno Machado is offline   Reply With Quote

Old   September 19, 2016, 06:59
Default
  #13
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Quote:
Originally Posted by Bruno Machado View Post
i am not sure what you are trying to say.

when you patch you are forcing the value in the cells at that moment to be the one you want. the boundary conditions wont change, unless you change the value in the BC tab. they are two different things.
yes. I have comprehended it after I posted . Then, question I want to ask, how can i give initial temperature for wall BCs in same way?
oozcan is offline   Reply With Quote

Old   September 19, 2016, 07:03
Default
  #14
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
Quote:
Originally Posted by oozcan View Post
yes. I have comprehended it after I posted . Then, question I want to ask, how can i give initial temperature for wall BCs in same way?
if you want to do through UDF, you gotta write a DEFINE_PROFILE defining the temperature you want. If it is constant, go to the boundary tab, find the wall you want to define, click in edit, and define it there.
oozcan likes this.
Bruno Machado is offline   Reply With Quote

Old   September 19, 2016, 07:12
Default
  #15
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
I dont know which method(s) will be applied for in that problem? That's why I have asked it. Those BCs must not be constant. Those temperatures must be same (time=0) as initial conditions with together regarding zones. for time =0 cell zone and those faces are same temperature and those will change with together convective and conduction heat transfer.

You mean that only one method is UDF to change wall BC temperatures? and giving a DEFINE_PROFILE ?
oozcan is offline   Reply With Quote

Old   September 19, 2016, 07:36
Default
  #16
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
[QUOTE=Bruno Machado;618447]if you want to do through UDF, you gotta write a DEFINE_PROFILE defining the temperature you want.

DEFINE_INIT is proper one? now I am reading some tutorials.

time=0 temperature 323.15K for a solid face

time=0 temperature 1473.15K for soma fluid faces.

is there any templete(s) to write macros regarding above input? I havent seen it in that tutorial?
oozcan is offline   Reply With Quote

Old   September 19, 2016, 09:15
Default
  #17
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
[QUOTE=oozcan;618453]
Quote:
Originally Posted by Bruno Machado View Post
if you want to do through UDF, you gotta write a DEFINE_PROFILE defining the temperature you want.

DEFINE_INIT is proper one? now I am reading some tutorials.

time=0 temperature 323.15K for a solid face

time=0 temperature 1473.15K for soma fluid faces.

is there any templete(s) to write macros regarding above input? I havent seen it in that tutorial?
DEFINE_PROFILE = BC

DEFINE_INIT = initial condition

there are thousands of examples either on the manual or on internet.
oozcan likes this.
Bruno Machado is offline   Reply With Quote

Old   September 19, 2016, 09:18
Default
  #18
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
[QUOTE=Bruno Machado;618474]
Quote:
Originally Posted by oozcan View Post

DEFINE_PROFILE = BC

DEFINE_INIT = initial condition

there are thousands of examples either on the manual or on internet.
I am really appreciated to help me out with lots of things.

Thank you.
oozcan is offline   Reply With Quote

Old   September 19, 2016, 09:21
Default
  #19
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Dear oozcan, I have the feeling that you are going to do something much too complicated for something simple.

All you say is that you tried something and it was unsuccessful. But you never say what that means...

1. What did you do?
2. What did you expect?
3. What did you see?
pakk is offline   Reply With Quote

Old   September 19, 2016, 09:49
Default
  #20
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Quote:
Originally Posted by pakk View Post
Dear oozcan, I have the feeling that you are going to do something much too complicated for something simple.

All you say is that you tried something and it was unsuccessful. But you never say what that means...

1. What did you do?
2. What did you expect?
3. What did you see?
ok well,

I am working on temperature distributions of some mould equipments regarding glass industry.

1)As you can see at the first attached image what total assembly is (total assembly is consist of two fluid zone and one solid zone), some of them are interfaces to provide for heat transfer including conduction and convection.

2) I would like to see how temperature distributions of model that I have drawn in 3D is

3) some faces are trivial because the mould geometry has them and there is nothing to do it. Then i have defined them ''wall BC''. Second image I have uploded is like cool. But you can see the actual problem in third image. temperature is constant as bottom side of geometry was defined as ''wall''. Hovewer, I would like to give initial temperature like its cell zone in that face (bottom side). Then its temperature will be changed through by heat transfer. Same example is that you could see last image. Blue contour is wall. Yes I have defined it. But i need to give initial temperature like its cell zone in those faces.So it affects heat transfer
Attached Images
File Type: jpg total assembly.JPG (85.4 KB, 12 views)
File Type: jpg 1473.jpg (105.1 KB, 11 views)
File Type: jpg 1473_3.jpg (110.7 KB, 10 views)
File Type: jpg 323K resmi.jpg (69.7 KB, 10 views)
oozcan is offline   Reply With Quote

Reply


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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 14:26
How I can introduce my power heat (W) in chtMultiRegionFoam? aminem OpenFOAM Pre-Processing 32 August 29, 2019 02:23
problem with Min/max rho tH3f0rC3 OpenFOAM 8 July 31, 2019 09:48
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 13:12


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