Datapostprocessor first derivative based on what?

31 views
Skip to first unread message

Jaekwang Kim

unread,
Jul 27, 2017, 12:28:44 PM7/27/17
to deal.II User Group
Hi, all 
I have asked specific implementation of Datapostprocessor Class a week ago. 

Adding to that.. I suddenly become curious how this class take 'the first derivative' form the solution vector. 

For example, if I solve flow problem with Taylor hood element as step-22 tutorial program, and take the first derivatives of the acquired solution velocity using Datapostprocessor Class, 
I could easily get my target quantities (derivatives) for all same dof points. 

However, I come up with the fact that my finite elements is only C0-continuous...at the vertex where two different elements meet. 
(My taylor element is degree 2 for velocity and degree 1 for pressure. )
If then, on those vertexes, how the Datapostprocessor decides which element to refer for the first, or second derivatives on that dof? 

Thank you

Jaekwang Kim 




Daniel Arndt

unread,
Jul 27, 2017, 6:06:18 PM7/27/17
to deal.II User Group
Jaekwang,

DataOut creates data at each corner of each cell. However, DataOutFilter[1] allows to reduce the number of data to just one value for each vertex.
Answering your question: DataPostprocessor doesn't choose a value but the output includes all of them.

Best,
Daniel

Wolfgang Bangerth

unread,
Jul 29, 2017, 7:49:06 AM7/29/17
to dea...@googlegroups.com

> For example, if I solve flow problem with Taylor hood element as step-22
> tutorial program, and take the first derivatives of the acquired solution
> velocity using Datapostprocessor Class,
> I could easily get my target quantities (derivatives) for all same dof points.
>
> However, I come up with the fact that my finite elements is only
> C0-continuous...at the vertex where two different elements meet.

Correct. That means that there are multiple values of the gradient at
vertices, and indeed we put multiple values into the output file.


> (My taylor element is degree 2 for velocity and degree 1 for pressure. )
> If then, on those vertexes, how the Datapostprocessor decides which element to
> refer for the first, or second derivatives on that dof?

It doesn't use locations of DoFs but the vertices of cells. And it outputs the
same vertex as many times as there are adjacent cells, if necessary with
different values. This is the same as if you had, for example, a piecewise
constant field -- every cell is shown in graphical output as a horizontal
plane, and at vertices several of these planes come together.

Best
W.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages