Skip to content

Failed to create HDF5 file #102

@wnstss

Description

@wnstss

Hello, Everyone,

I am new to dolfinx. When I excuted the diffusion_code.py in chapter2, I found there were some problems about xdmf as follows.
And the Diffusion_Gaussian_function_error.md is also attached.

RuntimeError Traceback (most recent call last)
Cell In [1], line 31
28 boundary_facets = mesh.locate_entities_boundary(
29 domain, fdim, lambda x: np.full(x.shape[1], True, dtype=bool))
30 bc = fem.dirichletbc(PETSc.ScalarType(0), fem.locate_dofs_topological(V, fdim, boundary_facets), V)
---> 31 xdmf = io.XDMFFile(domain.comm, "diffusion.xdmf", "w")
32 xdmf.write_mesh(domain)
34 # Define solution variable, and interpolate initial solution for visualization in Paraview

Could anyone give me some help?

Best regards,

Lei

Diffusion_Gaussian_function_error.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions