Using time_interval to output a constant dt file while using an adaptive time stepper #32863
Unanswered
mariagodr
asked this question in
Q&A General
Replies: 1 comment 2 replies
-
|
Hello Can you please describe how it does not work? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Check these boxes if you have followed the posting rules.
Question
Hi,
I modified the modules/phase_field/examples/grain_growth/3D_6000_gr.i file to simulate 3D grain growth with 1000 grains. I kept the [./TimeStepper] block to use an adaptive time stepper. As a result, the simulation outputs (Excel and Exodus files) were written with a different Δt at each time step.
However, I would like to know if it is possible to obtain Excel and Exodus outputs with a constant Δt, so that the physical time increases uniformly.
I looked through many example files on the MOOSE website and found the following two pages helpful.
(page1) https://mooseframework.inl.gov/syntax/Outputs/index.html#advanced-output
(page2) https://mooseframework.inl.gov/source/times/TimeIntervalTimes.html
"time_step_interval" command (page 1) is not quite what I could use because the dt is still not constant. So, I tried "time_interval" command (page 2) by imitating modules/thermal_hydraulics/test/tests/problems/three_pipe_shock/three_pipe_shock.i
This is how I added to my input file. I used time_interval in [Times] block.
"""
[Executioner]
type = Transient
scheme = bdf2
solve_type = PJFNK #Preconditioned JFNK (default)
petsc_options_iname = '-pc_type'
petsc_options_value = 'asm'
l_tol = 1.0e-4
l_max_its = 30
nl_max_its = 20
nl_rel_tol = 1.0e-8
start_time = 0.0
num_steps = 500
dt = 0.0002
[./TimeStepper]
type = IterationAdaptiveDT
cutback_factor = 0.9
dt = 0.0002
growth_factor = 1.1
optimal_iterations = 8
[../]
[Times]
[./output_times]
type = TimeIntervalTimes
time_interval = 1e-4
[../]
[]
[Outputs]
file_base = 1000_size2.6_1473.v3
[./exodus]
type = Exodus
sync_times_object = output_times
#time_interval = 10000 #my first attempt
#time_step_interval = 10000
[../]
[./csv]
type = CSV
[../]
[./console]
type = Console
[../]
[]
"""
However, it does not work. Could you help me with this? I know if I fix the dt I could get the results with a constant dt but my simulation will take too long so I do not want that.
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions