I cant find 'FacetFunction' anywhere
1.
from __future__ import print_function
from fenics import *
from boxfield import *
import numpy as np
...
boundary_markers = FacetFunction(
...
Then it failed with message below:
from boxfield import *
ModuleNotFoundE
I dont know what is "boxfield".So I just remove the line.
2.
from __future__ import print_function
from fenics import *
#from boxfield import *
import numpy as np
...
boundary_markers = FacetFunction(
...
Then it failed with message below:
boundary_markers = FacetFunction(
NameError: name 'FacetFunction' is not defined
3.
In documentation of Fenics/Dolfin, i found that there is a'FacetFunction' at ' dolfin.
But when I try to import it,it failed .
>>> import dolfin.cpp.mesh as ms
>>> ms.FacetFunction
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'dolfin.cpp.mesh' has no attribute 'FacetFunction'
Then I look into the reault of "dir(dolfin.
>>> dir(dolfin.
['BoundaryMesh', 'Cell', 'CellIterator', 'CellType', 'DomainBoundary', 'Edge', 'EdgeIterator', 'Face', 'FaceIterator', 'Facet', 'FacetIterator', 'Mesh', 'MeshColoring', 'MeshConnectivity', 'MeshData', 'MeshDomains', 'MeshEditor', 'MeshEntity', 'MeshEntityIter
Many Functions and classes are missing. For example,
But they are descripted in documentation and used in Demos of Fenics Tutorials.
What should I do?
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: