Hi Cody,
You may or may not remember from the July MOOSE workshop, but I asked you some questions on restarting from an existing solution. I'm trying to implement this restart, but am having some problems.Â
In particular, I solve for a field c (specifically, my phase field calculated by Cahn-Hilliard). Then, I want to take my solution for c and multiply it by some factor. I have successfully implemented this by using an aux kernel to calculate my modified field c_aux. Then, I would like to take the c_aux field and set it as the initial condition of my c field in a subsequent simulation.
In my initial input file, I generate checkpoint files by setting 'checkpoint = true' in the outputs block (By the way, is there any way to set how many checkpoints are made? I only need the last time step, and I've been generating 2 checkpoint files by default. Setting num_checkpoint_files = 1 as specified by the faq on the wiki just gives me a warning that this parameter was unused). Then in a new input file, in my variables block under initial conditions for c i specify:
initial_from_file_var = c_aux
initial_from_file_timestep = 5
In my outputs block I specify:
restart_file_base = out_cp/0005
This doesn't work. I get a warning saying restart_file_base is unused and MOOSE can't calculate a first step. It seems weird to me that I would need to specify the time step in the variables block when I also specify which time step in the output block.
I would appreciate any insight you could give me on this.
Thank you,
Dina
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/6e48b4a6-a8d3-44a3-b4fa-5dd9d10257ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So what you're saying is *if* i had the most recent source code (and not something from December), I probably would not have run in to this problem in the first place. I'll have to let my admin know!
After poking around some more, I'm wondering if the same could be accomplished using a SolutionUserObject and a custom Initial Condition that calls directValue() and adds it to a custom Function I have currently have set up as an AuxKernel. After all, I'm only using the last time step as an initial condition and so it is a bit of a waste to compute the AuxKernel at every timestep. I could put something at the top like if (_t >= end_time) but there would still be many unnecessary calls to the AuxKernel. As long as I stick to linear Lagrange elements, I should be fine.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/26b4b64f-dbea-4dc4-8fae-18975ab589ca%40googlegroups.com.
Jesse, if it doesn’t work when you’ve updated MOOSE, could you please tell us? I use that feature quite a lot and need it to be bug free.
Â
a
Â
Ph: +61 7 3327 4497. Fax: +61 7 3327 4666
Queensland Centre for Advanced Technologies
PO Box 883, Kenmore, Qld, 4069Â
Â
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAK06EuVLBT2MMUnQ5FBmmFO8m4uROijYRnPLhKDj6RLGChnujg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/11c6002d-c4ea-440e-8ed2-0a7b40c382f8%40googlegroups.com.