# Restart fails with error

**URL:** <https://calculix.discourse.group/t/restart-fails-with-error/2061>\
**Category:** Uncategorized\
**Created:** [February 4, 2024, 3:34pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061 "2024-02-04T15:34:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://calculix.discourse.group/u/mishal49)\
**Post date:** [February 4, 2024, 3:34pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061/1 "2024-02-04T15:34:24Z")

</div>

Hello  
I am running a dynamic case with ccx and I ran the first bit successfully and generated a .rout file.  
I then changed the .rout file to a .rin file and then changed my .inp file to read the .rin file but this gives the following error:

> \*ERROR reading \*ELEMENT: element 1  
> is already defined
> 
> \*ERROR reading \*ELEMENT. Card image:  
> 1,1660,1474,548,1568,7153,9471,9472,7152,6905,9473
> 
> \*ERROR reading \*NSET/ELSET: \*NSET/\*ELSET should be placed  
> before all step definitions  
> \*ERROR reading \*NSET/ELSET: \*NSET/\*ELSET should be placed  
> before all step definitions  
> \*ERROR reading \*NSET/ELSET: \*NSET/\*ELSET should be placed  
> before all step definitions  
> \*ERROR reading \*NSET/ELSET: \*NSET/\*ELSET should be placed  
> before all step definitions  
> \*ERROR reading \*MATERIAL: \*MATERIAL should be placed  
> before all step definitions  
> \*INFO reading \*HYPERELASTIC: nonlinear geometric  
> effects are turned on
> 
> \*ERROR reading \*HYPERELASTIC: \*HYPERELASTIC should be  
> placed before all step definitions  
> \*ERROR reading \*DENSITY: \*DENSITY should be placed  
> before all step definitions  
> \*ERROR reading \*SOLID SECTION: \*SOLID SECTION  
> should be placed before all step definitions  
> \*WARNING reading \*DYNAMIC: parameter not recognized:  
> NLGEOM  
> \*WARNING reading \*DYNAMIC. Card image:  
> \*DYNAMIC,DIRECT,NLGEOM
> 
> STEP 2
> 
> Dynamic analysis was selected
> 
> Nonlinear material laws are taken into account
> 
> Newton-Raphson iterative procedure is active
> 
> Nonlinear geometric effects are taken into account
> 
> \*ERROR in calinput: at least one fatal  
> error message while reading the  
> input deck: CalculiX stops.

Please find attached my initial .inp file for the 1st run vs the second run and the .rin file as well.

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F165mMY_HOJwXnFkvvo0cqLkyvGCazBDfd%3Fusp%3Ddrive_link&followup=https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F165mMY_HOJwXnFkvvo0cqLkyvGCazBDfd%3Fusp%3Ddrive_link&ifkv=ASKXGp0fMTgWDkvbSF_doapNKJidn-uaWctz2V-NqchMFN38W_BbLvxohCrEMDPDIRYVogiQsclSsQ&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S520338412%3A1707060855856523&theme=glif)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

Would appreciate any help.

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [February 4, 2024, 3:49pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061/2 "2024-02-04T15:49:17Z")

</div>

> [@mishal49](#):
>
> Please find attached my initial .inp file for the 1st run vs the second run and the .rin file as well.

You have to set access to “Anyone with the link” before pasting the link here.

It seems that you are trying to use restart with the same (full) input deck. Restart input file should only contain the `*RESTART, READ` keyword (as the first keyword in the input file) and step definitions for the new part of the analysis.

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://calculix.discourse.group/u/mishal49)\
**Post date:** [February 4, 2024, 4:29pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061/3 "2024-02-04T16:29:45Z")

</div>

[https://drive.google.com/drive/folders/165mMY\_HOJwXnFkvvo0cqLkyvGCazBDfd?usp=sharing](https://drive.google.com/drive/folders/165mMY_HOJwXnFkvvo0cqLkyvGCazBDfd?usp=sharing)

So sorry. Does this one work?

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [February 4, 2024, 5:06pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061/4 "2024-02-04T17:06:52Z")

</div>

Yes. Just remove everything before `*RESTART, READ` from the second input file and it should work.

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://calculix.discourse.group/u/mishal49)\
**Post date:** [February 4, 2024, 5:23pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061/5 "2024-02-04T17:23:37Z")

</div>

Ok great!  
Do I need to modify the mesh to the deformed shape or will it automatically start from the deformed geometry?

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [February 4, 2024, 6:58pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061/6 "2024-02-04T18:58:18Z")

</div>

You shouldn’t (or even can’t) modify this. Only steps and their features can be added. No mesh/material changes and so on. The analysis will automatically take the state of the model from the specified restart point.

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://calculix.discourse.group/u/mishal49)\
**Post date:** [February 5, 2024, 7:13pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061/7 "2024-02-05T19:13:43Z")

</div>

Got it!  
Thank you so much!  
Just curious, if I run a first part of the solid case and then take the deformed geometry from that step and recreate a new case would it be equivalent to running the first bit but with a .rin?  
Wondering because sometimes, if the case fails before completion, then no .rin file is produced, but I do have the case reach up to a certain desired deformation.

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [February 5, 2024, 7:22pm UTC](https://calculix.discourse.group/t/restart-fails-with-error/2061/8 "2024-02-05T19:22:36Z")

</div>

If you export the deformed mesh, you can use it in a subsequent analysis but you won’t have the material state (stresses and strains). That’s why Abaqus has a very useful import feature. You can e.g. simulate metal forming and then take this deformed part with its material state to a subsequent spring-back analysis (or just apply some operational loading).
