mesh_output file not created

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
daniele
Posts: 153
Joined: Wed Feb 01, 2017 11:42 am

mesh_output file not created

Post 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
Yvan Fournier
Posts: 4157
Joined: Mon Feb 20, 2012 3:25 pm

Re: mesh_output file not created

Post 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
Post Reply