neperfepx / neper

Polycrystal generation and meshing
http://neper.info
GNU General Public License v3.0
205 stars 53 forks source link

Fail to merge simulation directories #255

Closed CsatiZoltan closed 3 years ago

CsatiZoltan commented 3 years ago

Hi,

Section 4.1.1 of the manual describes how to merge multiple simulation steps performed by FEPX into a single directory. I ran the two steps of the simulation of the built-in example 4_restart. Reformatting the raw result directories with the commands

neper -S cycle1
neper -S cycle2

worked well, but after executing the merging by

neper -S cycle1.sim,cycle2.sim -o cycle1-2.sim

caused only the node coordinates to be copied. Moreover, the coordinates were copied to the elements/ and elsets/ directory too, whereas they are nodal quantities. That is why the subsequent command did not work. Here is the directory structure I obtained after

neper -S cycle1.sim,cycle2.sim -o cycle1-2.sim
.
├── cycle1
│   ├── post.coo.core1
│   ├── post.coo.core2
│   ├── post.coo.core3
│   ├── post.coo.core4
│   ├── post.defrate-pl-eq.core1
│   ├── post.defrate-pl-eq.core2
│   ├── post.defrate-pl-eq.core3
│   ├── post.defrate-pl-eq.core4
│   ├── post.report
│   ├── post.slip.core1
│   ├── post.slip.core2
│   ├── post.slip.core3
│   ├── post.slip.core4
│   ├── post.sliprate.core1
│   ├── post.sliprate.core2
│   ├── post.sliprate.core3
│   ├── post.sliprate.core4
│   ├── rst0.control
│   ├── rst0.field.core1
│   ├── rst0.field.core2
│   ├── rst0.field.core3
│   ├── rst0.field.core4
│   ├── simulation.config
│   ├── simulation.msh
│   └── simulation.tess
├── cycle1-2.sim
│   ├── inputs
│   │   ├── simulation.config
│   │   ├── simulation.msh
│   │   └── simulation.tess
│   ├── report
│   ├── restart
│   │   ├── rst1.control
│   │   ├── rst1.field.core1
│   │   ├── rst1.field.core2
│   │   ├── rst1.field.core3
│   │   └── rst1.field.core4
│   └── results
│       ├── elements
│       │   └── coo
│       │       ├── coo.step0
│       │       ├── coo.step1
│       │       ├── coo.step2
│       │       ├── coo.step3
│       │       └── coo.step4
│       ├── elsets
│       │   └── coo
│       │       ├── coo.step0
│       │       ├── coo.step1
│       │       ├── coo.step2
│       │       ├── coo.step3
│       │       └── coo.step4
│       └── nodes
│           └── coo
│               ├── coo.step0
│               ├── coo.step1
│               ├── coo.step2
│               ├── coo.step3
│               └── coo.step4
├── cycle1.sim
│   ├── inputs
│   │   ├── simulation.config
│   │   ├── simulation.msh
│   │   └── simulation.tess
│   ├── report
│   ├── restart
│   │   ├── rst0.control
│   │   ├── rst0.field.core1
│   │   ├── rst0.field.core2
│   │   ├── rst0.field.core3
│   │   └── rst0.field.core4
│   └── results
│       ├── elements
│       │   ├── defrate-pl-eq
│       │   │   ├── defrate-pl-eq.step0
│       │   │   ├── defrate-pl-eq.step1
│       │   │   └── defrate-pl-eq.step2
│       │   ├── slip
│       │   │   ├── slip.step0
│       │   │   ├── slip.step1
│       │   │   └── slip.step2
│       │   └── sliprate
│       │       ├── sliprate.step0
│       │       ├── sliprate.step1
│       │       └── sliprate.step2
│       └── nodes
│           └── coo
│               ├── coo.step0
│               ├── coo.step1
│               └── coo.step2
├── cycle2
│   ├── post.coo.rst1.core1
│   ├── post.coo.rst1.core2
│   ├── post.coo.rst1.core3
│   ├── post.coo.rst1.core4
│   ├── post.defrate-pl-eq.rst1.core1
│   ├── post.defrate-pl-eq.rst1.core2
│   ├── post.defrate-pl-eq.rst1.core3
│   ├── post.defrate-pl-eq.rst1.core4
│   ├── post.report.rst1
│   ├── post.sliprate.rst1.core1
│   ├── post.sliprate.rst1.core2
│   ├── post.sliprate.rst1.core3
│   ├── post.sliprate.rst1.core4
│   ├── post.slip.rst1.core1
│   ├── post.slip.rst1.core2
│   ├── post.slip.rst1.core3
│   ├── post.slip.rst1.core4
│   ├── rst0.control
│   ├── rst0.field.core1
│   ├── rst0.field.core2
│   ├── rst0.field.core3
│   ├── rst0.field.core4
│   ├── rst1.control
│   ├── rst1.field.core1
│   ├── rst1.field.core2
│   ├── rst1.field.core3
│   ├── rst1.field.core4
│   ├── simulation.config
│   ├── simulation.msh
│   └── simulation.tess
├── cycle2.sim
│   ├── inputs
│   │   ├── simulation.config
│   │   ├── simulation.msh
│   │   └── simulation.tess
│   ├── report
│   ├── restart
│   │   ├── rst1.control
│   │   ├── rst1.field.core1
│   │   ├── rst1.field.core2
│   │   ├── rst1.field.core3
│   │   └── rst1.field.core4
│   └── results
│       ├── elements
│       │   ├── defrate-pl-eq
│       │   │   ├── defrate-pl-eq.step0
│       │   │   ├── defrate-pl-eq.step1
│       │   │   └── defrate-pl-eq.step2
│       │   ├── slip
│       │   │   ├── slip.step0
│       │   │   ├── slip.step1
│       │   │   └── slip.step2
│       │   └── sliprate
│       │       ├── sliprate.step0
│       │       ├── sliprate.step1
│       │       └── sliprate.step2
│       └── nodes
│           └── coo
│               ├── coo.step0
│               ├── coo.step1
│               └── coo.step2
├── generate_mesh.sh
├── post_process.sh
├── run_example.sh
├── simulation_cycle1.config
├── simulation_cycle2.config
├── simulation.msh
└── simulation.tess

Software versions used: Neper 4.2.0 and FEPX 1.2.0 on Ubuntu 18.04.

rquey commented 3 years ago

Thanks @CsatiZoltan for the bug report. Now fixed.