# Unable to specify BC on the mesh in .inp format

**URL:** <https://fenicsproject.discourse.group/t/unable-to-specify-bc-on-the-mesh-in-inp-format/6115>\
**Category:** mesh\
**Created:** [June 30, 2021, 11:24am UTC](https://fenicsproject.discourse.group/t/unable-to-specify-bc-on-the-mesh-in-inp-format/6115 "2021-06-30T11:24:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Pratik](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@Pratik](https://fenicsproject.discourse.group/u/Pratik)\
**Post date:** [July 1, 2021, 5:30am UTC](https://fenicsproject.discourse.group/t/unable-to-specify-bc-on-the-mesh-in-inp-format/6115/3 "2021-07-01T05:30:15Z")

</div>

I am not getting the solution from the above posts you have given.  
The reason why I commented out the cell\_data field because there is no `Cell data: gmsh:physical, gmsh:geometrical` in my `mesh_from_file` because it is the Abaqus file, that data will be present in the GMSH mesh file.  
The other thing which I am not able to follow from the given post [Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio - #104 by dokken](https://fenicsproject.discourse.group/t/transitioning-from-mesh-xml-to-mesh-xdmf-from-dolfin-convert-to-meshio/412/104)  
is `facet_data = mesh.cell_data_dict["gmsh:physical"]["line"]`, because this dictionary is empty in my case.  
I request you to please provide me the code if you have it in which the Abaqua mesh file is deal with and following line is worked successfully.

```auto
with XDMFFile("facet_mesh.xdmf") as infile:
    infile.read(mvc, "name_to_read")
mf = cpp.mesh.MeshFunctionSizet(mesh, mvc)

ds = Measure("ds", domain=mesh, subdomain_data=mf)

```

So that, I will be able to apply boundary conditions.  
Thanks in advance

---

_[View the full topic](https://fenicsproject.discourse.group/t/unable-to-specify-bc-on-the-mesh-in-inp-format/6115)._
