startFrom = r1.fld
under [general]
Hi,
probably important for your case (as I assume you want to do high-fidelity simulations); make sure to do a "full" restart based on 3 consecutive velocity fields as to not reduce the temporal order. Not sure whether there is an example that supports that, if not, we can help you setting it up.
Best,
Philipp
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/e7ad923f-03b6-4dc4-a6a9-023ad768f9c3o%40googlegroups.com.
Yes, this is important for me.
How do I adjust the *.usr file (attached) to do this?
Thanks
Nadeem
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/9305eef1-19bf-4cc3-7a9d-724ef270ff00%40gmail.com.
| subroutine userchk() | |
| include 'SIZE' | |
| include 'TOTAL' | |
| common /SCRNS/ w1 (lx1*ly1*lz1*lelv), | |
| & w2 (lx1*ly1*lz1*lelv), | |
| & omg(lx1*ly1*lz1*lelv,ldim) | |
| character*80 fnames(3) | |
| n = nx1*ny1*nz1*nelv | |
| c if (.false.) then | |
| c call blank(fnames,size(fnames)*80) | |
| c fnames(1) ='rs6tgv0.f00001' | |
| c fnames(2) ='rs6tgv0.f00002' | |
| c fnames(3) ='rs6tgv0.f00003' | |
| c call full_restart(fnames,3) ! replace istep=0,1,.. | |
| c endif | |
| c | |
| c iostep_full = iostep | |
| c call full_restart_save(iostep_full) | |
| if (mod(istep,50).ne.0) return | |
| sum_e1 = 0. | |
| sum_e2 = 0. | |
| call curl(omg,vx,vy,vz,.false.,w1,w2) | |
| do i = 1,n | |
| vv = vx(i,1,1,1)**2 + vy(i,1,1,1)**2 + vz(i,1,1,1)**2 | |
| oo = omg(i,1)**2 + omg(i,2)**2 + omg(i,3)**2 | |
| sum_e1 = sum_e1 + vv*bm1(i,1,1,1) | |
| sum_e2 = sum_e2 + oo*bm1(i,1,1,1) | |
| enddo | |
| e1 = 0.5 * glsum(sum_e1,1) / volvm1 | |
| e2 = 0.5 * glsum(sum_e2,1) / volvm1 | |
| if (nid.eq.0) write(6,2) time, e1, e2 | |
| 2 format(1p3e13.4,' monitor') | |
| return | |
| end |
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/e7ad923f-03b6-4dc4-a6a9-023ad768f9c3o%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Nek5000" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
| c iostep_full = iostep | |
| c call full_restart_save(iostep_full) |
| fnames(1) ='rs6tgv0.f00001' |
| fnames(2) ='rs6tgv0.f00002' |
| fnames(3) ='rs6tgv0.f00003' |
For completeness I wanted to mention another alternative. You could go via our KTH Framework. The ext_cyl_DNS example under https://github.com/KTH-Nek5000/KTH_Examples uses our full restart, which can be controlled fully via the input par file. The documentation for all of that is here (doxygen):
https://kth-nek5000.github.io/KTH_Framework/index.html
being more specific
https://kth-nek5000.github.io/KTH_Framework/group__chkpoint.html
and
https://kth-nek5000.github.io/KTH_Framework/group__chkpoint__mstep.html
Philipp
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/f1450d5e-b978-4c55-ab74-d7bc14110738o%40googlegroups.com.
Thanks. I will test these out .. and get back if needed.
Regards
Nadeem
From: nek...@googlegroups.com <nek...@googlegroups.com> On Behalf Of Philipp Schlatter
Sent: Wednesday, August 19, 2020 9:22 AM
To: Nek5000 <nek...@googlegroups.com>
Subject: Re: [nek5000] Re: Problem with restarting
For completeness I wanted to mention another alternative. You could go via our KTH Framework. The ext_cyl_DNS example under https://github.com/KTH-Nek5000/KTH_Examples uses our full restart, which can be controlled fully via the input par file. The documentation for all of that is here (doxygen):
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/e7ad923f-03b6-4dc4-a6a9-023ad768f9c3o%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Nek5000" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/9305eef1-19bf-4cc3-7a9d-724ef270ff00%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/f1450d5e-b978-4c55-ab74-d7bc14110738o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/47e22991-9755-4e80-13da-abf426eee5bf%40gmail.com.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/e7ad923f-03b6-4dc4-a6a9-023ad768f9c3o%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Nek5000" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
Sorry, that should be ..
[GENERAL]
startFrom = rs1.fld ß correction
stopAt = numsteps
….
Same error message.
From: nek...@googlegroups.com <nek...@googlegroups.com> On Behalf Of Nadeem Malik
Sent: Saturday, August 22, 2020 10:16 AM
To: Nek5000 <nek...@googlegroups.com>
Subject: Re: [nek5000] Re: Problem with restarting
Hi neks,
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/bd93ba48-80b9-462a-82f0-d75615e115e0n%40googlegroups.com.
writeInterval" under [general] > To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/e7ad923f-03b6-4dc4-a6a9-023ad768f9c3o%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Nek5000" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/9305eef1-19bf-4cc3-7a9d-724ef270ff00%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
Thanks.
Double precision ok.
I have modified the *.usr :
integer e,eg,ex,ey,ez,f,irate1,irate2,irest
character*80 fnames(3)
irest = nint(uparam(3))
iostep = nint(uparam(4))
iostep_full = iostep
if (irest.ge.1) call full_restart_save(iostep_full)
if (irest.eq.2) then
call blank(fnames,size(fnames)*80)
fnames(1) ='rs1.fld'
fnames(2) ='rs2.fld'
fnames(3) ='rs3.fld'
call full_restart(fnames,3) ! replace istep=0,1,..
end if
Furthermore, in *.par I already have:
TIMESTEP
writeInterval = 10000
is this the same? Then this writes 3-dump files every 10000 steps?
So after 20000 steps does it overwrite the previous 3 or creates new files?
About continuous time, I mean that if I dump files # 10,11,12 then does the restart start calculating from step 11 or 13? It makes a difference since I may lose 2 time steps. So if I want to stop—start in groups of 10 time steps, I should dump with iostep=8?
The numbers are simply some quantities (not important here) that I calculate, and they should be identical if the restart is perfect.
To simply, the first line is from a single straight run of 2o timesteps; the 2nd line compares with a stop-restart of 10 time steps each:
357 5.00000000E-03 1.21509276E-02 3.14375794E+04 1.42264930E+01 3.94074582E+03
357 5.00000000E-03 1.21509276E-02 3.14375794E+04 1.42361019E+01 3.94074075E+03
The last 2 columns differ a bit – really they should be equal. This suggest that either a restart is never perfect, or I have missed a time step or two in the restart workflow?
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/e7ad923f-03b6-4dc4-a6a9-023ad768f9c3o%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Nek5000" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/9305eef1-19bf-4cc3-7a9d-724ef270ff00%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/bd93ba48-80b9-462a-82f0-d75615e115e0n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/b9641ea6-4dd3-4d6f-9f96-24bc0c4c6a13o%40googlegroups.com.
Then this writes 3-dump files every 10000 steps?
So after 20000 steps does it overwrite the previous 3 or creates new files?
The last 2 columns differ a bit...
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/e7ad923f-03b6-4dc4-a6a9-023ad768f9c3o%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Nek5000" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/9305eef1-19bf-4cc3-7a9d-724ef270ff00%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/bd93ba48-80b9-462a-82f0-d75615e115e0n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/e7ad923f-03b6-4dc4-a6a9-023ad768f9c3o%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Nek5000" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/9305eef1-19bf-4cc3-7a9d-724ef270ff00%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/bd93ba48-80b9-462a-82f0-d75615e115e0n%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.