cashocs.io.mesh#

Mesh input and output.

Functions

check_mesh_compatibility(mesh, ...)

Checks, whether the supplied mesh file is compatible with the mesh used.

convert(input_file[, output_file, mode, quiet])

Converts the input mesh file to a xdmf mesh file for cashocs to work with.

create_point_representation(dim, points, ...)

Creates the representation of the mesh coordinates for gmsh .msh file.

export_mesh(mesh, mesh_file[, subdomains, ...])

Exports a mesh (together with its subdomains and boundaries).

extract_mesh_from_xdmf(xdmffile[, ...])

Extracts a Gmsh mesh file from an XDMF state file.

gather_coordinates(mesh)

Gathers the mesh coordinates on process 0 to write out the mesh to a Gmsh file.

import_mesh(mesh_file[, comm])

Imports a mesh file for use with cashocs / FEniCS.

parse_file(original_msh_file, out_msh_file, ...)

Parses the mesh file and writes a new, corresponding one.

read_mesh_from_xdmf(filename[, step, comm])

Reads a mesh from a .xdmf file containing a checkpointed function.

write_out_mesh(mesh, original_msh_file, ...)

Writes out mesh as Gmsh .msh file.