Load (restart) elemental fields

Numerical methods and mathematical models of Elmer
Post Reply
vencels
Posts: 63
Joined: 20 Sep 2016, 17:05
Antispam: Yes
Location: Latvia
Contact:

Load (restart) elemental fields

Post by vencels »

Hi!

I am trying to export Joule Heating e (elemental field) from one simulation and import it into another simulation.
The export/import happens on the same mesh, but different sif files.

Export Simulation has
Output File = data.restart
Output Global Variables = Logical True
Import Simulation has
Restart File = "data.restart"
and the solver body has
Exported Variable 1 = -elem "joule heating e"
There seems to be a difference in elemental field length and permutation.

Is there a way to overcome it?

Image
Attachments
Screenshot from 2022-08-03 01-47-55.png
(60.04 KiB) Not downloaded yet
expImpElemFields.zip
(856.34 KiB) Downloaded 43 times
Rich_B
Posts: 421
Joined: 24 Aug 2009, 20:18

Re: Load (restart) elemental fields

Post by Rich_B »

Hello,

You have probably already done this, but can you successfully restart the first solver? On the other hand, if you start with just the second solver and output a restart file, can you successfully restart the second solver?

Rich.
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Load (restart) elemental fields

Post by raback »

Hi

There are several different ways how to have fields presented:
- standard nodal field
- discontinuous galerkin field (each node separately in each element) (-dg)
- constant value in each elements (-elem)
- value in each integration point (-ip)

The last three are elemental in the sense that they do not share any info along elements. So to make things a little more confusing the "calculate elemental fields" actually generates the "-dg" type of field. That can then be saved as averaged cell info or if you choose VTU output to be "discontinuous galerkin" type you will actually get the each node presented multiple times. The "-ip" type of fields are treated on-the-fly either as everaged or by solving a small linear system in each element to save them as true dg fields.

All this confusion is necessary to always be able to choose the best presentation of the data for nonlinear analysis, multiphysical coupling and visualization.

To conclude. Try "Exported Variable 1 = -dg "joule heating e".

-Peter
Post Reply