Loading Numpy Arrays into Dolfin function

Asked by Matthew Commin

I have a 2D numpy array with the same number of cells as the number of vertices in my Dolfin Mesh. Is there a way to load this numpy array into a Dolfin function so i can then use it as normal? I can't find a logical way to link the cells of the numpy array to the mesh vertices.

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anders Logg (logg) said :
#1

FEniCS no longer uses Launchapd 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/

Revision history for this message
Anders Logg (logg) said :
#2

FEniCS no longer uses Launchapd 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 Matthew Commin for more information if necessary.

To post a message you must log in.