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

equation and domain dependent timescale

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2011, 09:44
Default equation and domain dependent timescale
  #1
New Member
 
Join Date: Jan 2011
Posts: 22
Rep Power: 15
noslip is on a distinguished road
hi there

i'm simulating a cht + fluid case and i need to be able to set three different timescales: one for the solids, one for the mom. and continuity eqs in the fluid and one for the energy equation in the fluid.

now, how do i define the timescale for the energy equation in the fluid only?
i know that such a thing can be done, according to the manual, but it has to be done by editing the ccl file. unfortunately the manual doesn't specify as to what the ccl-code is supposed to look like.

any ideas would be greatly appreciated.

cheers
noslip is offline   Reply With Quote

Old   July 27, 2011, 19:13
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Of course this only applies to steady state simulations.

The command you are looking for is "Solid Timescale factor".
ghorrocks is online now   Reply With Quote

Old   July 28, 2011, 02:31
Default
  #3
New Member
 
Join Date: Jan 2011
Posts: 22
Rep Power: 15
noslip is on a distinguished road
Thanks for the reply glenn. I'm afraid that doesn't do the trick. Specifying a timescale for the energy equation overwrites anything i set for solid timescales. I need to be able to set the energy timescale for the fluid domain only.
noslip is offline   Reply With Quote

Old   July 28, 2011, 02:41
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I do not think you can set separate timescales for the momentum and energy equations in a fluid domain. At least I do not know a way of doing it. Once the momentum equations are converging you can usually massively increase the time scale (factors of 1000 or more are possible) and that means you accelerate the energy equation.

I have done many CHT simulations and the way I always do it is using a smallish time step in the fluid to start off, and increasing the time scale as the flow converges; and a large solid time scale factor so the solid converges quickly. This works pretty well for me.
ghorrocks is online now   Reply With Quote

Old   July 28, 2011, 02:51
Default
  #5
New Member
 
Join Date: Jan 2011
Posts: 22
Rep Power: 15
noslip is on a distinguished road
According to the manual there is a way, for this exact situation in fact. It just doesn't specify how to do it i'll ask support. Thanks for your answers!
noslip is offline   Reply With Quote

Old   May 14, 2012, 03:56
Default
  #6
New Member
 
Kyriakos Vafiadis
Join Date: Feb 2011
Location: Kozani, Greece
Posts: 29
Rep Power: 15
k.vafiadis is on a distinguished road
Send a message via Skype™ to k.vafiadis
Quote:
Originally Posted by noslip View Post
According to the manual there is a way, for this exact situation in fact. It just doesn't specify how to do it i'll ask support. Thanks for your answers!
Hello noslip,
Did you found a solution for this problem?
Kyriakos
k.vafiadis is offline   Reply With Quote

Old   November 29, 2013, 21:35
Default
  #7
New Member
 
Qu Jianyu
Join Date: Nov 2013
Posts: 6
Rep Power: 12
qujianyu is on a distinguished road
Quote:
Originally Posted by noslip View Post
According to the manual there is a way, for this exact situation in fact. It just doesn't specify how to do it i'll ask support. Thanks for your answers!
Hi,
I have the same question too, do you find cel to do the domain dependent timescale?
Qu
qujianyu is offline   Reply With Quote

Old   December 2, 2013, 05:16
Default
  #8
New Member
 
Join Date: Jan 2011
Posts: 22
Rep Power: 15
noslip is on a distinguished road
you can basically just copy the structure from the actual solver control: add a "solver control" item in your domain. a sub-item could then be "convergence control" to set domain specific time scales. (this can be done in cfx pre already by activating beta features).
if you want to specify equation classes directly then simply add a sub-item to your "solver control" item called "equation class: energy" (for example) and then add another "convergence control" item into that one.

the structure basically looks like this:
domain
--> solver control
------> convergence control
----------> timescale control etc.
------> equation class: energy
----------> convergence control
--------------> timescale control etc.
noslip is offline   Reply With Quote

Old   December 2, 2013, 07:36
Default
  #9
New Member
 
Qu Jianyu
Join Date: Nov 2013
Posts: 6
Rep Power: 12
qujianyu is on a distinguished road
Quote:
Originally Posted by noslip View Post
you can basically just copy the structure from the actual solver control: add a "solver control" item in your domain. a sub-item could then be "convergence control" to set domain specific time scales. (this can be done in cfx pre already by activating beta features).
if you want to specify equation classes directly then simply add a sub-item to your "solver control" item called "equation class: energy" (for example) and then add another "convergence control" item into that one.

the structure basically looks like this:
domain
--> solver control
------> convergence control
----------> timescale control etc.
------> equation class: energy
----------> convergence control
--------------> timescale control etc.
thank you, it is useful. I have set specific timescales to each domain by GUI after activating beta features with someone's help. However I don't know whether the equation dependent timescale or domain dependent timescale would influence the result or not. In my case, the temperature rise of concern is 19K via equation dependent physical timescales, 16K via both equation and domain dependent physical timescales, unfortunately diverged via uniform physical timescales. Have you ever faced a similar situation?
qujianyu is offline   Reply With Quote

Old   December 2, 2013, 08:31
Default
  #10
New Member
 
Join Date: Jan 2011
Posts: 22
Rep Power: 15
noslip is on a distinguished road
if you are looking for a steady-state solution, then you can use as many and as different timescales as you want. they only help or hinder your convergence, but at convergence the solution should always be the same. if it's not, then there's something else wrong. make sure you check whether your simulations are actually converged. also make sure you check the imbalances of your energy equation since it's proper convergence can take forever when using small timescales ...
noslip is offline   Reply With Quote

Old   December 2, 2013, 09:36
Default
  #11
New Member
 
Qu Jianyu
Join Date: Nov 2013
Posts: 6
Rep Power: 12
qujianyu is on a distinguished road
Quote:
Originally Posted by noslip View Post
if you are looking for a steady-state solution, then you can use as many and as different timescales as you want. they only help or hinder your convergence, but at convergence the solution should always be the same. if it's not, then there's something else wrong. make sure you check whether your simulations are actually converged. also make sure you check the imbalances of your energy equation since it's proper convergence can take forever when using small timescales ...
Hi,
To my knowledge, all the simulations had been converged, I had checked RMS, imbalances and monitors. All the RMS were nearly below 1e-5, the imbalances of T,P,and V were extremely closed to zero, and the T, V of monitors were unchanged for many time steps before the solver stopped. I doubt if the improper boundary condition caused the different results. My case is mainly about a natural convection heat transfer in a infinite space. I had set all surrounding boundary to opening boundary and opening pressure. someone told me all pressure boundary may cause a initial value dependent result. However, in may case, The initial value did not influence the result, but the timescales did,just as I described in last message. Have you ever did a similar simulation about a natural convection heat transfer in a infinite space? Could you give me some advise?
Thank you for discussion.
qujianyu is offline   Reply With Quote

Old   December 2, 2013, 16:20
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
It is a known issue that steady state simulations in general can have problems converging with small time steps and converge better when the time step is increased. When the time step is significantly smaller than the turbulent fluctuations in the physical flow then the solver starts to resolve these fluctuations and the simulation is no longer steady state - and hence your difficulties in convergence.
ghorrocks is online now   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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
SST in 2D? Jesper Sørensen CFX 16 December 23, 2006 08:40
Transport equation in Solid domain Gerradar CFX 3 July 15, 2005 23:07


All times are GMT -4. The time now is 03:09.