How to include the restart in python

From KratosWiki
Jump to: navigation, search

Save

With these sentences the model is saved in each step while you print the results


       serializer = Serializer("cantilever3d" + str(step))
       serializer.Save("StructureModelPart", model_part);
       serializer = 0

Load

You need to put these sentences before to read a model


       serializer = Serializer("cantilever3d" + str(step))
       serializer.Load("StructureModelPart", model_part);
Personal tools
Categories