Assign material property to cells from gmsh

Asked by Praveen C


I want to generate a mesh in gmsh and assign a material property to each cell. Each cell would have some id. Can this cell id be used inside fenics to define subdomains ?

Alternately can I assign some id to each cell inside fenics and define subdomains based on these id ? The cells may then get deformed but the subdomain should be still defined in terms of the cell id. I cannot use a test on the cell coordinates to decide the subdomain since the deformation can be complicated.


Question information

English Edit question
DOLFIN Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :

FEniCS no longer uses Launchpad for Questions & Answers. Please consult the documentation on the FEniCS web page for where and how to (re)post your question:

Can you help with this problem?

Provide an answer of your own, or ask Praveen C for more information if necessary.

To post a message you must log in.