CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CONVERGE (https://www.cfd-online.com/Forums/converge/)
-   -   Restart & mapping (https://www.cfd-online.com/Forums/converge/194744-restart-mapping.html)

TWIN October 23, 2017 04:27

Restart & mapping
 
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!

ksrivast October 23, 2017 09:03

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

TWIN October 23, 2017 15:53

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 October 23, 2017 18:03

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 October 24, 2017 18:12

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?

ksrivast October 26, 2017 15:51

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

biancagiarola January 8, 2019 04:46

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

ksrivast January 8, 2019 07:57

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,

biancagiarola January 8, 2019 08:22

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.

ksrivast January 8, 2019 08:38

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.

biancagiarola January 8, 2019 09:07

It is 2.4.22.

SamWijey January 8, 2019 09:37

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,

biancagiarola January 9, 2019 05:48

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

SamWijey January 9, 2019 09:15

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,

biancagiarola January 10, 2019 04:47

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?

SamWijey January 11, 2019 16:41

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.

biancagiarola January 14, 2019 04:30

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?

SamWijey January 14, 2019 08:53

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.

mohsinmkhan February 3, 2019 09:33

Quote:

Originally Posted by SamWijey (Post 721691)
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?

MFGT February 4, 2019 01:25

Restart number is your own choice, doesnt depent on the number of the restart file. :)


All times are GMT -4. The time now is 03:33.