On 8/26/22 10:31, Simon wrote:
>
>
> To this end, I think I need a finite element with piecewise constant
> shape functions. Each shape function is '1' at one quarter of the
> reference domain and '0' at the remaining three quarters.
> Or is there an easier way to do this?
> If not, I probably would have to write my own finite element class,
> given that such an element does not exist in dealii?
It is possible to implement such an element, but like Daniel already
said, it's maybe more work than you want to do.
I *assume* that your goal is to visualize the data at the actual
quadrature points, not on quarters of the elements. In that case, may I
suggest that you create a ParticleHandler with particles located at
quadrature points (for which there is already a generator function).
Each particle would then carry one "property" and you'd just have to
assign that property the value of your solution at that point (or
whatever other quantity you want visualized at this point). The final
step is to use the particles::DataOut class to output the information at
the particle locations.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/