CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > CONVERGE

Restart & mapping

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2017, 04:27
Default Restart & mapping
  #1
New Member
 
andrea
Join Date: Jun 2017
Posts: 17
Rep Power: 8
TWIN is on a distinguished road
Hi,

I am running a casa of motoring data using RANS simulation and I wanted to start from a certain point (restart.rst) in order to split this simulation in two different simulations: the first using LES, the other one holding input file of RANS in order to catch some differences!

Then I saved a restart file from the first RANS and then I have used this file as restart.rst file for both the aformentioned simulation, and since I want to create mapping I used mapflag, write_map.in, map.dat and so on...

However theproblem seems to be the restart.rst file itself. In fact simulation goes ahead until it reaches the point:

Reading restart map data from restart file restart.rst .........

JOB ABORT invoked by rank 0:
ERROR: Possibly Corrupt File, seeking data of size 51436220279 bytes, found restart file of size 51436220271 bytes

I'm quiet sure the restart.rst is entirely copied in the correct folder!
TWIN is offline   Reply With Quote

Old   October 23, 2017, 09:03
Default
  #2
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Hello Andrea,

What version of CONVERGE are you using? Are you using the same CONVERGE version for the case from which you got this restart.rst file and these new cases?

Sincerely,

Srivastava
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   October 23, 2017, 15:53
Default
  #3
New Member
 
andrea
Join Date: Jun 2017
Posts: 17
Rep Power: 8
TWIN is on a distinguished road
Right!!!

It should be the problem!! Thanks a lot! I was totally focused on the inputs and I wouldn't even think to this!!!!

Thanks a lot!
TWIN is offline   Reply With Quote

Old   October 23, 2017, 18:03
Default
  #4
New Member
 
andrea
Join Date: Jun 2017
Posts: 17
Rep Power: 8
TWIN is on a distinguished road
Right!!!

It should be the problem!! Thanks a lot! I was totally focused on the inputs and I wouldn't even think to this!!!!

Thanks a lot!
TWIN is offline   Reply With Quote

Old   October 24, 2017, 18:12
Default
  #5
New Member
 
andrea
Join Date: Jun 2017
Posts: 17
Rep Power: 8
TWIN is on a distinguished road
Kislaya,

a question. What about running LES starting from a restart obtained with RANS. For instance let's suppose I have two engine cycles using RANS, then I stop it an I continue with LES for another cycle, or maybe to have a combustion process using LES with data initialized by RANS. What I should do?

I set restart_flag =0 and I used map_flag=2. The system gives me the same error: corrupted file. I suppose it is related to the switching between RANS and LES. Is there a specific way to bypass this issue?
TWIN is offline   Reply With Quote

Old   October 26, 2017, 15:51
Default
  #6
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Hello Andrea,

With the RANS model, have a map file (map*.out) generated. Map files can be generated at user specified instances and are always generated at the end of the simulation. By enabling Initial conditions & Events > Mapping variables > Cell mapping (map_flag=1 in inputs.in), you can use this map fie, renamed as map.dat, to initialize your LES run. This should help you bypass the issue.

Please do note the map.dat file will not contain any information on time. So remember to manually change to the start_time parameter in inputs.in to match the time the map file was generated for appropriate initialization.

Hope this helps.

Sincerely,

Srivastava
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   January 8, 2019, 04:46
Default
  #7
New Member
 
Bianca Guedes
Join Date: Jan 2019
Posts: 6
Rep Power: 7
biancagiarola is on a distinguished road
I'm also with this problem but in my case I'm not using different versions of Converge. Does anybody know how to solve it?


I'm simulating a simple duct with jump area, with velocity fluctuation in the inlet, NSCBC condition in inlet and outlet, without turbulence.



JOB ABORT invoked by rank 0:
ERROR: Possibly Corrupt File, seeking data of size 210 bytes, found restart file of size 200 bytes
biancagiarola is offline   Reply With Quote

Old   January 8, 2019, 07:57
Default
  #8
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Hello Bianca,

What version of CONVERGE are you using?

Have you changed any input files for this restart run compared to the original run?

Sincerely,
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   January 8, 2019, 08:22
Default
  #9
New Member
 
Bianca Guedes
Join Date: Jan 2019
Posts: 6
Rep Power: 7
biancagiarola is on a distinguished road
Hi Kislaya,


I'm using CONVERGE 2.4 and I didn't change nothing in my simulation. I just restart after run for the first time, with the same parameters. and I'm using write 3 restart files on the first simulation.
biancagiarola is offline   Reply With Quote

Old   January 8, 2019, 08:38
Default
  #10
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
What version of v2.4 are you using? You can find this info at the header of your logfile or converge.start file generated during runtime.
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   January 8, 2019, 09:07
Default
  #11
New Member
 
Bianca Guedes
Join Date: Jan 2019
Posts: 6
Rep Power: 7
biancagiarola is on a distinguished road
It is 2.4.22.
biancagiarola is offline   Reply With Quote

Old   January 8, 2019, 09:37
Default
  #12
Senior Member
 
SamWijey's Avatar
 
Sameera Wijeyakulasuriya
Join Date: Jan 2016
Location: Convergent Science, Madison WI
Posts: 117
Rep Power: 10
SamWijey is on a distinguished road
Hello,

There's a possibility that your restart file is corrupted. Can you open a terminal from your working directory and execute command

tail -f <restartXXXX.rst>

The restart file is binary except for the first and the last line. The above command will print out the last line and if the restart file finished writing out correctly then you should see "ENDofRSTRT" being printed on your screen.

If this does not get printed, then the restart file is corrupted and you will have to use a different restart file.

If you see "ENDofRSTRT" then some input parameters have been changed before restarting. I suggest you diff the two sets of inputs to find out.

Thanks,
__________________
Sameera Wijeyakulasuriya
Principal Engineer, Applications
CONVERGECFD
SamWijey is offline   Reply With Quote

Old   January 9, 2019, 05:48
Default
  #13
New Member
 
Bianca Guedes
Join Date: Jan 2019
Posts: 6
Rep Power: 7
biancagiarola is on a distinguished road
Hello,

I tested and showed "ENDofRSTRT".

The only thing that I changed in the input to restart the simulation was the total time. Is it should be a problem?
So do you suggest to create another folder to save the inputs for the restarted simulation? Or just rename the new inputs files?


Thanks
biancagiarola is offline   Reply With Quote

Old   January 9, 2019, 09:15
Default
  #14
Senior Member
 
SamWijey's Avatar
 
Sameera Wijeyakulasuriya
Join Date: Jan 2016
Location: Convergent Science, Madison WI
Posts: 117
Rep Power: 10
SamWijey is on a distinguished road
I believe you changed the end time of simulation? This shouldn't be done while restarting. Restart the simulation without any change and then while the simulation is running, you can change the end time as long as you have "reread_input" turned ON.

Alternatively you can do a "restart mapping" using the same restart file and that will let you change the end time while restarting. But note that this is a mapping operation and your grid is not preserved when mapping.

Thanks,
__________________
Sameera Wijeyakulasuriya
Principal Engineer, Applications
CONVERGECFD
SamWijey is offline   Reply With Quote

Old   January 10, 2019, 04:47
Default
  #15
New Member
 
Bianca Guedes
Join Date: Jan 2019
Posts: 6
Rep Power: 7
biancagiarola is on a distinguished road
Ah ok, I will try this way.


But another question: so to restart the simulation I should change in the terminal the restart_flag to 1 or open converge studio, change in Simulation Parameters>Run Parameters>Run Mode>Restart and then export again the input files to the same folder of the previously simulation?
biancagiarola is offline   Reply With Quote

Old   January 11, 2019, 16:41
Default
  #16
Senior Member
 
SamWijey's Avatar
 
Sameera Wijeyakulasuriya
Join Date: Jan 2016
Location: Convergent Science, Madison WI
Posts: 117
Rep Power: 10
SamWijey is on a distinguished road
It does the same thing. You can simply open inputs.in and change the restart_flag=1 and set restart_number to 1 as well.
__________________
Sameera Wijeyakulasuriya
Principal Engineer, Applications
CONVERGECFD
SamWijey is offline   Reply With Quote

Old   January 14, 2019, 04:30
Default
  #17
New Member
 
Bianca Guedes
Join Date: Jan 2019
Posts: 6
Rep Power: 7
biancagiarola is on a distinguished road
I tried both ways but still not working.
I also created a simple case to test the restart option and it gave the same error. Is it should be a error with the license?
biancagiarola is offline   Reply With Quote

Old   January 14, 2019, 08:53
Default
  #18
Senior Member
 
SamWijey's Avatar
 
Sameera Wijeyakulasuriya
Join Date: Jan 2016
Location: Convergent Science, Madison WI
Posts: 117
Rep Power: 10
SamWijey is on a distinguished road
Can you send your *.in and *.dat files to support@convergecfd.com using your official email? You do not have to send the restart files as the file size is too large to attach to an email. We will check why restarting or restart mapping is not working.
__________________
Sameera Wijeyakulasuriya
Principal Engineer, Applications
CONVERGECFD
SamWijey is offline   Reply With Quote

Old   February 3, 2019, 09:33
Default
  #19
Member
 
mohsin
Join Date: Dec 2018
Posts: 52
Rep Power: 7
mohsinmkhan is on a distinguished road
Quote:
Originally Posted by SamWijey View Post
It does the same thing. You can simply open inputs.in and change the restart_flag=1 and set restart_number to 1 as well.
That restart number should be based on latest restart file or should be given by default 1? because out of a set of restart files ,there r numbers assigned to it like restart0029,restart0030, etc. so what should v do, if dat is the case?
mohsinmkhan is offline   Reply With Quote

Old   February 4, 2019, 01:25
Default
  #20
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 265
Rep Power: 10
MFGT is on a distinguished road
Restart number is your own choice, doesnt depent on the number of the restart file.
MFGT is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Cht tutorial in 15 braennstroem OpenFOAM Running, Solving & CFD 197 June 10, 2015 03:02
Problem with multiframe restart of two-way fsi coupled problem Dimone CFX 26 December 20, 2011 10:10
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 01:40.