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

Temperature field domain initialization

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2019, 05:43
Default Temperature field domain initialization
  #1
Senior Member
 
Davide
Join Date: Jul 2015
Posts: 107
Rep Power: 12
marsa27 is on a distinguished road
Hi, I would like to know if it possible in CFX to export the temperature field of some domains from a solution, to import them as an initial condition of a subsequent simulation only in the domains concerned.
Thanks.
Davide
marsa27 is offline   Reply With Quote

Old   May 2, 2019, 06:14
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,001
Rep Power: 146
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, you can define initial conditions per domain. If you set the initial condition to "Automatic with value" it uses an initial condition value if it exists, otherwise it uses the defined value. If you set the initial condition to "Value" it uses the value you define. Do this in each domain and you can set where the initial condition comes from.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 2, 2019, 06:26
Default
  #3
Senior Member
 
Davide
Join Date: Jul 2015
Posts: 107
Rep Power: 12
marsa27 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Yes, you can define initial conditions per domain. If you set the initial condition to "Automatic with value" it uses an initial condition value if it exists, otherwise it uses the defined value. If you set the initial condition to "Value" it uses the value you define. Do this in each domain and you can set where the initial condition comes from.

But is it not necessary to extrapolate a file to be interpolated in a similar way to Fluent? I ask because I would like to set as the initial condition the exact temperature profile to be applied to a cast iron mold (solid domain) for forming a glass bottle. Instead I wouldn't want to initialize any temperature or even any VOF field for the glass in the fluid domain
marsa27 is offline   Reply With Quote

Old   May 2, 2019, 06:35
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,001
Rep Power: 146
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I have no idea what extrapolation in Fluent involves, and cannot see why it is relevant to CFX. You set initial conditions in CFX as I described (along with a whole bunch of other options).
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 2, 2019, 06:43
Default
  #5
Senior Member
 
Davide
Join Date: Jul 2015
Posts: 107
Rep Power: 12
marsa27 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I have no idea what extrapolation in Fluent involves, and cannot see why it is relevant to CFX. You set initial conditions in CFX as I described (along with a whole bunch of other options).

but the initialization allows to set a uniform temperature throughout the domain, I would like to know how to initialize a temperature field that varies in each coordinate, according the solution of a previous simulation
marsa27 is offline   Reply With Quote

Old   May 2, 2019, 09:54
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,927
Rep Power: 34
Opaque will become famous soon enough
Quote:
Originally Posted by marsa27 View Post
but the initialization allows to set a uniform temperature throughout the domain, I would like to know how to initialize a temperature field that varies in each coordinate, according to the solution of a previous simulation
Not sure where you are getting such information, in ANSYS CFX nearly every widget that takes a floating value, takes an expression as well; therefore, the initial value is NOT restricted to a uniform value.

Regardless of where the initial value comes from, if you explain how you plan to work with the different setups will help others to advise on the best solution.
Opaque is offline   Reply With Quote

Old   May 2, 2019, 09:56
Default
  #7
Senior Member
 
M
Join Date: Dec 2017
Posts: 718
Rep Power: 13
AtoHM is on a distinguished road
In CFX you can use a result file and its temperature filed to start the new simulation with. This can be done by either interpolation, initialisation or, if you just want the temperature field and nothing else, you can export it as a csv file in Post (should be under File->Export to text or something like this). Maybe this can be used for Fluent as well, I am not sure.
AtoHM is offline   Reply With Quote

Old   May 2, 2019, 10:09
Default
  #8
Senior Member
 
Davide
Join Date: Jul 2015
Posts: 107
Rep Power: 12
marsa27 is on a distinguished road
I have to simulate the forming of a glass bottle by doing a VOF calculation with coupled heat exchange thanks to the presence also of the solid domain. When the glass enters the fluid domain in the mold, I would like the solid domain to not lose the thermal history of the formation cycle of the previous bottle. For this reason I would like to know how to initialize only the temperature field in the solid domain for a new simulation
marsa27 is offline   Reply With Quote

Old   May 2, 2019, 19:28
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,001
Rep Power: 146
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The method I described in my first post will do this. If you want to take the initial condition and just take a bit off it (maybe to model heat lost between cycles) then use a source term which acts on the first time step to remove the amount of heat you want to loose between cycles.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 3, 2019, 04:55
Default
  #10
Senior Member
 
Davide
Join Date: Jul 2015
Posts: 107
Rep Power: 12
marsa27 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
The method I described in my first post will do this. If you want to take the initial condition and just take a bit off it (maybe to model heat lost between cycles) then use a source term which acts on the first time step to remove the amount of heat you want to loose between cycles.
yes but with the initialization of each domain it is not possible to set a 3D distribution for the temperature field or am I wrong? I have always known that a uniform value or a function can be set but not a three-dimensional field
marsa27 is offline   Reply With Quote

Old   May 3, 2019, 06:34
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,001
Rep Power: 146
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can set it to a constant value, a CEL expression, an interpolation function or a user fortran function. Everything except the constant value can be a function of anything you like, including location.

For instance "step(x)" will return 0 where x<0, +1 where x>0 and 0.5 at exactly x=0. This is an example CEL function which returns a 3D distribution.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 6, 2019, 05:22
Default
  #12
Senior Member
 
Davide
Join Date: Jul 2015
Posts: 107
Rep Power: 12
marsa27 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
You can set it to a constant value, a CEL expression, an interpolation function or a user fortran function. Everything except the constant value can be a function of anything you like, including location.

For instance "step(x)" will return 0 where x<0, +1 where x>0 and 0.5 at exactly x=0. This is an example CEL function which returns a 3D distribution.



I have to simulate a glass forming bottle, with a VOF model with also the solid domains for the mold.. I'm interested to use a previous simulation to initialize the temperature profile only in the solid domain, while the fluid domain (with the VOF model: air+glass) have to simulate witout any initialising.
How it possible to do it?
marsa27 is offline   Reply With Quote

Old   May 6, 2019, 09:25
Default
  #13
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,001
Rep Power: 146
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
As i described right back in the start in post #2. You can define different initial conditions in different domains. Set the cavity domain (containing the glass, air and VOF model) to have initial conditions of whatever your initial glass state is; and set the outer casing solid domain to have option "automatic with value" and give it an results file for the initial condition.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 6, 2019, 11:54
Default
  #14
Senior Member
 
Davide
Join Date: Jul 2015
Posts: 107
Rep Power: 12
marsa27 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
As i described right back in the start in post #2. You can define different initial conditions in different domains. Set the cavity domain (containing the glass, air and VOF model) to have initial conditions of whatever your initial glass state is; and set the outer casing solid domain to have option "automatic with value" and give it an results file for the initial condition.

Excuse me, maybe I cannot to understand, but if in the solver I inilitialize the simulation with a .res file containing all the domain (both solids, both fluid) how it is possible specify to take from the initialization file only the temperature field of the solid domains (not of the fluid) and not the other variables? As I have tried and the simulation starts by taking also the temperature field of the fluid part (VOF) and also all the other variables (velocity, pressure, VOF, etc.). Instead I interested only at the temperature field of the solid to inilitialize a following simulation.

I tried to export a BC profile from the CFD Post of solid domains, but I can't get the user function I imported into CFX Pre into the initialization tab of the individual domains. Is there any technique of this type? Since in reality the BC profile to be exported is indicated for the boundary conditions (superficial) and not for the initial conditions in the volumes
marsa27 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
Turbulence Viscosity Ratio issue in EXtended domain with Pressure Far Field BCs Muneeb FLUENT 0 December 6, 2018 16:48
potential flows, helmholtz decomposition and other stuffs pigna Main CFD Forum 1 October 26, 2017 09:34
Periodic Pressure drop cfd_begin CFX 10 May 25, 2017 08:09
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 19:36.