Assign material property to cells from gmsh

Asked by Praveen C on 2013-08-27

Hello

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.

Thanks
praveen

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
2013-08-27
Last reply:
2013-08-28
Johannes Ring (johannr) said : #1

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: http://fenicsproject.org/support/

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.