So I applied the Crank Nicolson discretisation first before  multiplying by test functions and integrating. But then I am however confused how to handle a term like *(T_{n}^3 * T_{n+1} , w_i)_omega* (where *(A,B)_omega* is the usual notation for the integral over the spatial region omega of the product A*B and *w_i* is my test function).

If I write *T_{n}* and *T_{n+1}* as a finite linear combinaison of w_i such that (*T_{n} = sum_i([T_{n}]_i * w_i)*) then *T_{n}^3* is monstruous unless I

You're thinking of T_n^3 as a polynomial of particular high degree, but we don't actually care about that. We just need to evaluate it at quadrature points, and to do that you evaluate
  T_n(x_q) = \sum [T_n]_j \varphi_j(x_q)
and then take whatever value that gives you to the third power. You never need T_n^3 as a *function*, you just need to be able to evaluate it at quadrature points, and so questions such as whether functions are orthogonal don't actually matter.


1- Is this even mathematically sound ? I should be able to choose my basis orthogonal as far as I can think. Can I then do that with deal.II ?

Think about it this way: You want to compute an integral
  \int c(x) w_i(x) w_j(x)
where c(x) is a coefficient that in your case involves T_n^3. You won't in general be able to find orthogonal basis functions w_k for these kind of weights c(x). You just have to approximate the integral by quadrature.


2 - Is this the approach I should be following for handling such term or should I rethink the time discretisation scheme ?

No. Just think of the old solution as a coefficient. You probably want to take a look at step-15, which shares many of the characteristics of what you want to do.

Best
 W.

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

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/adc77838-097a-5206-8a64-b1e30a433ccf%40colostate.edu.

Reply via email to