Integral in DG convection problem

More
6 years 3 months ago #663 by ddrake
Hi,

I'm trying to solve a DG convection problem with a nonlinear convection term that includes the integral of the function I'm solving for. The problem is essentially something like this:

Solve for u: du/dt - (c*u*u*w)' = 0, where w is the integral of u (i.e. u = w') and c is a constant

I was thinking I might be able to create a custom CoefficientFunction for w, which would integrate the function u over the mesh at each time step and store values so they could be returned by calls to Evaluate().

I have a feeling there is a more clever way to accomplish this sort of thing in Ngsolve. Any suggestions?

Thanks!
Dow
More
6 years 3 months ago #677 by joachim
Hi Dow,

you can make a system of equations.
Let w be another field variable, and add the equation w' = u (plus some boundary condition) via a DG method.

You can solve the coupled system via an implicit time-stepping, or play with some combinations of implicit/explicit methods.

Best, Joachim
The following user(s) said Thank You: ddrake
Time to create page: 0.092 seconds