Dear Anup,

You can reduce current time increment by a “time scaling factor” (I am 
using 10 or 4 as time scaling factor) .  However, it is better to define a 
“minimum time increment size” to stop simulation when the current time 
increment becomes less than it. In addition, when the current increment 
converges with a reduced time increment, increase time increment size for 
the next step and compare it with a “maximum time increment size”. 

The following parameters can be defined in .prm input file:

time scaling factor, initial time increment, maximum time increment size, 
minimum time increment size

 

Best

H. B

 

On Tuesday, August 30, 2016 at 10:02:41 AM UTC-7, Anup Basak wrote:
>
> Hello all,
>
> I was trying to implement an adaptive time step in step44. In the given 
> example 'delta_t' has been considered to be
> fixed and its value is taken from the .prm file. Now let us say one 
> changes the value of 'delta_t' in the function 'run()'.
> What will be the convenient way to replace old value of 'delta_t' by the 
> new one and use it to obtain current time etc
> using the class 'Time'.
>
> I shall be thankful if someone can help me in this regard.
>
> Thank you,
>
> Regards,
> Anup.
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to