Using FEInterfaceValues with FESystems?

48 views
Skip to first unread message

blais...@gmail.com

unread,
Mar 11, 2021, 4:14:09 PM3/11/21
to deal.II User Group
Dear all,
I hope you are well.
I am currently trying to solve an advection-diffusion equation at very, very high Péclet number. I first implemented a GLS-stabilized continuous Galerkin solution, it works well, but clearly I think a DG approach would be immensely better here.

The issue is that the velocity field for my advection-diffusion stems from a Continuous Galerkin solution with another dof handler, formulated using a FESystem. Everything work well until them. The issue I have is that the FEInterfaceValues does not seem to want to work with FEValuesExtractors? It seems like it cannot use the [] operator to extract my velocity values out of my 4 components (velocity + pressure).

I am sure i'm forgetting something stupid here, but how should I proceed for vector valued problem using DG?
Best
Bruno

Wolfgang Bangerth

unread,
Mar 11, 2021, 4:29:04 PM3/11/21
to dea...@googlegroups.com
No, you're not forgetting anything. FEInterfaceValues is still a pretty new
class and nobody has ever written the equivalent of the FEValuesViews classes
that you get from FEValues when you apply an extractor.

I suspect that the effort would not be huge, and that one could just
copy-paste a lot of code from the existing views classes. If you were
interested in doing that, I'd be happy to discuss what I think is going to be
necessary. But the short answer is really that FEInterfaceValues isn't ready
for vector-valued problems at the moment.

Best
Wolfgang

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

blais...@gmail.com

unread,
Mar 11, 2021, 5:10:27 PM3/11/21
to deal.II User Group
Good to know.
Let me read the documentation a bit and I  could try to come up with a PR. Maybe this is something we could discuss? I'd be glad to help in improving DG methods :)

Wolfgang Bangerth

unread,
Mar 12, 2021, 12:25:38 PM3/12/21
to dea...@googlegroups.com
On 3/11/21 11:10 PM, blais...@gmail.com wrote:
> Let me read the documentation a bit and I  could try to come up with a PR.
> Maybe this is something we could discuss? I'd be glad to help in improving DG
> methods :)

Happy to discuss in whatever venue you propose!

Start by looking at the FEValuesViews::Scalar class. We'd need a corresponding
FEInterfaceValuesViews::Scalar class. Once you know how the former operates,
you will probably be able to see how the latter needs to be implemented. I
foresee a lot of copy-paste of small functions where the only change is in the
2-3 line bodies.

Timo Heister

unread,
Mar 14, 2021, 1:07:49 PM3/14/21
to dea...@googlegroups.com
Bruno, I already have a working implementation of the extractors on my
machine. I just didn't get the time to clean up, write tests, and
submit the PR. Sorry. I will try to pick this up again in the next few
days.
> --
> 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+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/5882752f-4530-16b6-41d4-b8b6c9d746f9%40colostate.edu.



--
Timo Heister
http://www.math.clemson.edu/~heister/

blais...@gmail.com

unread,
Mar 14, 2021, 7:16:58 PM3/14/21
to deal.II User Group
Timo,
Don't worry about that. I can't complain if someone else does the work no? :) 
Reply all
Reply to author
Forward
0 new messages