Re: [deal.II] Separate components from the solution vector

2019-05-16 Thread llf m
Thanks Wolfgang, I get the point! Best M. Wolfgang Bangerth 于2019年5月17日周五 上午1:21写道: > On 5/13/19 8:45 PM, llf m wrote: > > I want to output the strain tensor and I use the > *DataPostprocessorTensor > > *which described in > > >

Re: [deal.II] Separate components from the solution vector

2019-05-16 Thread Wolfgang Bangerth
On 5/13/19 8:45 PM, llf m wrote: > I want to output the strain tensor and I use the *DataPostprocessorTensor > *which described in > https://dealii.org/developer/doxygen/deal.II/classDataPostprocessorTensor.html >  . > But as I am dealing with a vector-valued problem, > how can I pass the

Re: [deal.II] Separate components from the solution vector

2019-05-13 Thread llf m
Dear Wolfgang, I meet almost the same situation but a little different: As I am dealing with a vector-valued problem like (disp_x,disp_y,another_quantitied), I want to output the strain tensor and I use the *DataPostprocessorTensor *which described in

Re: [deal.II] Separate components from the solution vector

2017-04-17 Thread Alberto Salvadori
Thanks Wolfgang, step-22 is exactly what I was looking for. It works just fine, now. Alberto Il giorno lunedì 17 aprile 2017 10:43:56 UTC-4, Wolfgang Bangerth ha scritto: > > On 04/17/2017 08:37 AM, Alberto Salvadori wrote: > > Thanks Wolfgang. > > What you surmised is exactly what it is

Re: [deal.II] Separate components from the solution vector

2017-04-17 Thread Wolfgang Bangerth
On 04/17/2017 08:37 AM, Alberto Salvadori wrote: Thanks Wolfgang. What you surmised is exactly what it is happening, see the error message below. I have no run-time errors in running this code conststd::vector data_component_interpretation(dim+2,

Re: [deal.II] Separate components from the solution vector

2017-04-17 Thread Wolfgang Bangerth
On 04/17/2017 08:09 AM, Alberto Salvadori wrote: DataOut data_out; data_out.attach_dof_handler(dof_handler); // displacement output conststd::vector data_component_interpretation(dim, DataComponentInterpretation::component_is_part_of_vector);

[deal.II] Separate components from the solution vector

2017-04-17 Thread Alberto Salvadori
Hi, thanks in advance for your suggestions. I have been working on a small strain version of the three-fields formulation proposed in step 44. To this aim, I have been extended step 18, including some non linear material models. It is my understanding that there are two ways of assembling and