|
[Sponsors] |
September 19, 2016, 04:31 |
Initial Temperature for any solid and fluid
|
#1 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
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, |
|
September 19, 2016, 07:00 |
|
#2 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
|
||
September 19, 2016, 07:16 |
|
#3 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
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, |
|
September 19, 2016, 07:21 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
I am sorry but I can not follow what you are trying to say.
|
|
September 19, 2016, 07:24 |
|
#5 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
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? |
|
September 19, 2016, 07:31 |
|
#6 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
patch one zone with temperature X, then patch the second as temperature Y.
|
|
September 19, 2016, 07:32 |
|
#7 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
||
September 19, 2016, 07:34 |
|
#8 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
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? |
|
September 19, 2016, 07:38 |
|
#9 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
||
September 19, 2016, 07:43 |
|
#10 | |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
Quote:
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 ? |
||
September 19, 2016, 07:51 |
|
#11 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
||
September 19, 2016, 07:53 |
|
#12 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
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. |
||
September 19, 2016, 07:59 |
|
#13 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
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?
|
|
September 19, 2016, 08:03 |
|
#14 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
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.
|
|
September 19, 2016, 08:12 |
|
#15 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
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 ? |
|
September 19, 2016, 08:36 |
|
#16 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
[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? |
|
September 19, 2016, 10:15 |
|
#17 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
[QUOTE=oozcan;618453]
Quote:
DEFINE_INIT = initial condition there are thousands of examples either on the manual or on internet. |
||
September 19, 2016, 10:18 |
|
#18 |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
||
September 19, 2016, 10:21 |
|
#19 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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? |
|
September 19, 2016, 10:49 |
|
#20 | |
Senior Member
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12 |
Quote:
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maximum number of iterations exceeded chtmultiregionsimpleFoam | Moncef | OpenFOAM Running, Solving & CFD | 28 | July 13, 2020 15:26 |
How I can introduce my power heat (W) in chtMultiRegionFoam? | aminem | OpenFOAM Pre-Processing | 32 | August 29, 2019 03:23 |
problem with Min/max rho | tH3f0rC3 | OpenFOAM | 8 | July 31, 2019 10:48 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06:15 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 14:12 |