On 12/23/18 12:11 PM, Loylick wrote:
> 
> I solve elasticity equations where I have a vector-valued eigen functions. 
> I've encountered such a problem when I output my solution to a vtk file. Each 
> eigen function is output as 3 scalar arrays: eigenfunction_n_0, 
> eingenfunction_n_1, eingenfunction_n_2. Where 0,1,2 stand for x,y,z component 
> of the eingenfuction n. I'd like it to be a vector  eingenvector_n = 
> i*eigenfunction_n_0 + j*eigenfunction_n_1 + k*eigenfunction_n_2 (i,j,k - unit 
> vectors for x,y,z axis) so that when I import this file to Paraview program I 
> would see one picture per one eingenfunction rather than having 3 scalar 
> pictires per 1 function. Tell me please if it is possible to generate such a 
> vtk file with dealii?

You need to tell DataOut which components of the output together form a 
vector. Take a look at step-22, for example, to see how to do that. (As do 
step-20, 31, 32, 33, 42, 43, 44, 45, 46, 51, 55, 56, and 57 ;-) The code in 
question is typically in the output_results() function.

Best
  W.


-- 
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                            www: http://www.math.colostate.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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to