Initial temperature ascii data model

I am running 2D spherical shell models and I’m trying to figure out the best way to output data (specifically the temperature field) of an already completed model to then use as input for the initial temperature field of a new 2D spherical shell model. I’ve done this before in a box model by saving the data from Paraview and organizing it into a .txt file with just the points and temperature columns which I then use as input.
The issue with the 2D spherical seems to be that the data is outputted in Cartesian x,y,z format but wants to read in spherical coordinates. I’m also having a hard time figuring out the necessary number of points for the header of the input file in a 2D shell. Is there a simpler way to do this?

Hi Erin,

Thanks for posting to the forum!

First, a question - is there a reason why using the checkpointing files as an initial condition simulation would not work? You can always make a new folder with the correct sub-directory structure (output, output/solution, etc, etc) and put the checkpointing files in the correct place within the new folder.

I do this frequently for models where the initial phase of deformation is used as the starting condition for a new series of models with different boundary conditions.

If for some reason the checkpointing files won’t work, my advice would be to use the same method ASPECT uses for converting cartesian to spherical coordinates:

As to what is going wrong with format of the .txt file, can you provide an error message?

I imagine you have seen the various examples:


Ah I didn’t realize just putting the checkpoint/restart files in a new directory would still work. That’s way simpler than what I was trying to do. Thanks John!

Sure thing, let us know if you run into any trouble getting this to work!

  • John