pyoomph.output.meshio module

class pyoomph.output.meshio.MeshFileOutput(filetrunk=None, tesselate_tri=False, file_ext='vtu', eigenvector=None, eigenmode='abs', nondimensional=False, hide_lagrangian=True, hide_underscore=True, history_index=0, operator=None, discontinuous=False, add_eigen_to_mesh_positions=True)[source]

Bases: GenericOutput

A class for writing the solution at the current time step to a mesh file. Will be invoked whenever Problem.output is called.

Parameters:
  • filetrunk (Optional[str]) – The file trunk name. If not set, it will take the filename from the domain we added this equation to.

  • tesselate_tri (bool) – Flag indicating whether the output should be split into first order triangles/tetrahedrons. Default is False. file_ext (str): The file extension. Default is “vtu”.

  • eigenvector (Optional[int]) – The eigenvector index. If set, we write the eigenvector at this index instead of the solution. Only writing output when the eigenvector at this index is calculated. Default is None.

  • eigenmode (MeshDataEigenModes) – The eigenmode type (“abs”,”real”,”imag”). Default is “abs”.

  • nondimensional (bool) – Flag indicating whether the output should be nondimensional. Default is False.

  • hide_underscore (bool) – Flag indicating whether to hide variables starting with an underscore. Default is True.

  • hide_lagrangian (bool) – Flag indicating whether to hide Lagrangian coordinates. Default is True. history_index (int): The history index to output. Default is 0. operator (Optional[MeshDataCacheOperatorBase]): An operator to apply to the mesh data before outputting, see e.g. MeshDataCombineWithEigenfunction or MeshDataRotationalExtrusion from pyoomph.meshes.meshdatacache. Default is None.

  • discontinuous (bool) – Flag indicating whether discontinuous output should be written. In that case, each node can be written multiple times, potential with different values. Default is False.

  • add_eigen_to_mesh_positions (bool) – When outputting an eigenvector on a moving mesh, do we want to add the original mesh coordinates to the eigensolution or not. Default is True.