plot of 3D eigenvalue solution

Asked by Houdong Hu

r,c,rx,cx = eigensolver.get_eigenpair(0)

file=File("a.xml")
file << rx
(error here, How can I fix it)

and after that I try to view a 2D plane of 3D results.

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
Houdong Hu (vincehouhou) said :
#1

I fixed the problem by transforming rx to vector space and then save it as a pvd file
u_u=Function(V)
u_u.vector()[:]=rx

Another question?
I try to plot a 2D plane of this 3D cubic. I use Paraview, but slice button is inactive. Does that mean I can not view a 2D plane of our output format by paraview? And suggestions?

Revision history for this message
Johannes Ring (johannr) said :
#2

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 Houdong Hu for more information if necessary.

To post a message you must log in.