fedoo.Problem.add_output

Problem.add_output(filename, assembly, output_list=None, output_type=None, file_format='fdh5', compressed=False, position=1, element_set=None, save_mesh=True, include_static_obstacles=False)

Add output requirement for automatic saving during nlsolve.

optionnaly, the add_output can be used without specifying the assembly with the arguments:

>>> problem.add_output(filename, output_list, **kargs)

In this case, the Assembly defined in problem.assembly will be used.

Parameters:
  • filename (str) – name of the file used to save data to disk.

  • assembly (Assembly, optional) – Assembly object used to extract the results.

  • output_list (list[str]) – list of result labels.

  • output_type ('Node', 'Element' or 'GaussPoint', optional) – Type of results. If None, the type of output is not converted. Scalar results are not concerned by this parameter.

  • file_format ("fdh5", "fdz", "vtk", "msh", "npz", "csv", "xlsx") – file format used to save the results. The default file format and recommanding one is “fdh5”.

  • compressed (bool, default = False) – if True, the fdz data are compressed.

  • position (float in [-1, 1], optional) – Normalized position in the section for shell output. For instance, 1 is top face define by the local z direction, -1 is the bottom face and 0 is the midplane

  • element_set (str or list[int], optional) – set of element indices or name of an element set associated to the mesh. If specified, only the results restriced to the set of elements are extracted.

  • save_mesh (bool, default = True) – If True the mesh is saved.

  • include_static_obstacles (bool, default = False) – If True, static meshes registered by fedoo.constraint.RigidBody.set_static_obstacle() are added to the output mesh. The same obstacle mesh shared by several rigid bodies is included only once. This option requires the fdh5 file format, which preserves the MultiMesh structure.