Page 1 of 1

mesh_output file not created

Posted: Wed Sep 04, 2024 11:46 am
by daniele
Hello,

I would like to use a mesh deformed by a previous simulation, as input for a new one.
However, I cannot manage to get the mesh_output file (at the end of the deformable mesh simulation) created inside the checkpoint directory.
I have ticked "Save mesh if modified by preprocessing" (even if not sure it applies since the deformation is done by the calculation), and I activated "Transient coordinates" in Time-dependency in the writer.

Any suggestion about possible mistakes I may do?

Thank you very much in advance.
Kind regards,
Daniele

Re: mesh_output file not created

Posted: Mon Sep 09, 2024 10:09 am
by Yvan Fournier
Hello,

In ALE, the mesh deformation is not stored in the mesh_output, but in the auxiliary restart file. So what you need in this case is to restart from a different mesh, in which case the deformation from the first case will be interpolated to the new one. You may want to reset other fields to 0 in cs_user_initialization depending on the case.

If you really need to save the deformed mesh as an initial mesh, you could read the deformation from a restart file in cs^user_mesh^modify and overwrite the mesh coordinates with the deformed ones.
This requires opening the auxiliary restart files, reading the deformation, and closing it. You can list the sections in a restart file using "code_saturne bdump" to find the correct section name.

Best regards,

Yvan