[deal.II] How to display displacements "in-plane" with paraview, not warp in the z-direction out of plane

2016-05-19 Thread David
Hi, all:

I am doing a plane stress problem and have already got the solution vection 
of x-y displacements, and I want to import it into
pavaview to display the displacements in the x-y plane. I tried to use the 
filter "warp by scalar/vector", but this would only show
displacements of the field in another z-direction, which is not what I 
want, since the displacements are in x-y plane, not in z-direction.

How can I achieve this in paraview, could anyone please give some 
suggestions? Thanks in advance!

Best,
David.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Help with interpretation of PETSc and SLEPc error message.

2016-05-19 Thread Wolfgang Bangerth



Thank you for your suggestions and sorry about late reply. I decided to
simplify the starting mesh and display the resulting matrix using
*MatrixOut*, so that I can check whether I went wrong in assembling the
matrix. But after using the following code to get the output matrix
data file, I don't know how to display the the matrix in gnuplot with their
values showing in the corresponding positions.

|
FullMatrix
M;

...// fill matrix M with some values
// now write out M:

MatrixOut 
matrix_out;

std::ofstream out("M.gnuplot");
matrix_out.build_patches
(M,"M");
matrix_out.write_gnuplot
(out);

|

I tried to use

|
plot 'M.gnuplot'matrix
|

but all I get is some point without values showing up. Opening this file with
Emacs, the values can be found, but their orderings are not convenient.
Do you know how to display this data file so that they can show the values in
correct order just like in MATLAB.


You can do this in gnuplot:
  set style data lines
  set hidden3d
  splot "M.gnuplot" using 1:2:3

Best
 W.

--

Wolfgang Bangerth   email:bange...@math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.