How to get the mesh information like element, node
Dear all:
I want to ask a simple question. If I create a domain, how can I get the mesh information like node number and coordinates, element number and information, just like the description in Page 121 of user's guide. I wish to get a example of how to print these information.
For example, I create a simple domain.
from esys.escript import *
from esys.escript.
from esys.finley import Rectangle
import numpy
import matplotlib
import pylab
# generate domain:
mydomain = Rectangle(
I want the mesh information like below:
# node coordinates:
print("%dD-nodes %d\n"%(dim, numNodes))
for i in range(numNodes):
print("%d %d %d"%(Node_ref[i], Node_DOF[i], Node_tag[i]))
for j in range(dim): print(" %e"%Node[i][j])
print("\n")
# interior elements
print("%s %d\n"%(
for i in range(Element_Num):
print("%d %d"%(Element_
for j in range(Element_
print("\n")
Best regards,
Qingxiang
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: