CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   equation and domain dependent timescale (https://www.cfd-online.com/Forums/cfx/90988-equation-domain-dependent-timescale.html)

noslip July 27, 2011 09:44

equation and domain dependent timescale
 
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

ghorrocks July 27, 2011 19:13

Of course this only applies to steady state simulations.

The command you are looking for is "Solid Timescale factor".

noslip July 28, 2011 02:31

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.

ghorrocks July 28, 2011 02:41

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.

noslip July 28, 2011 02:51

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!

k.vafiadis May 14, 2012 03:56

Quote:

Originally Posted by noslip (Post 317820)
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

qujianyu November 29, 2013 21:35

Quote:

Originally Posted by noslip (Post 317820)
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

noslip December 2, 2013 05:16

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.

qujianyu December 2, 2013 07:36

Quote:

Originally Posted by noslip (Post 464341)
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?

noslip December 2, 2013 08:31

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 ...

qujianyu December 2, 2013 09:36

Quote:

Originally Posted by noslip (Post 464392)
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.

ghorrocks December 2, 2013 16:20

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.


All times are GMT -4. The time now is 11:54.