Plot boundary conditions
Hi,
I would like to plot the boundary conditions in my problem. The boundary condition is a DirichletBC using a generic function as part of the Expression (class MyFunc : public Expression ....) I have tried the following:
Let "bc" be the DirichletBC and "be" the Expression used to describe the BC.
1. plot(bc, mesh = mesh, element=
=> "RuntimeError: Don't know how to plot given object and projection failed: <DOLFIN object x (unnamed data)"
2. plot(be, mesh = BoundaryMesh(mesh), element=
=> "RuntimeError: *** Error: Current facet is unknown"
Am I missing something?
Something that might be related and possibly a bug, when I try to plot "be" as follows:
pts = array([
plot(be, mesh=mesh, element=
=> TypeError: in method 'MyFunc_eval', argument 3 of type 'dolfin::Data const &'
I assume that the data sent to MyFunc_eval should be of a different type, but this would be inconsistent with the general way of plotting arbitrary points.
Thank you
Renier
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Renier Marchand
- Solved:
- Last query:
- Last reply: