I would like to implement the following term in Dedalus, for a 1+1PDE, with $u(x,t)$:
$$f(x,t) = \int_{-\infty}^x u(y,t) dy, $$
which can be seen as a convolution of u with the Heavyside step function.
I could not find such an operation, as 'integ' does an integration over the entire space, and I don't know how to implement a Heavyside function which needs to depend on two variables, $x$ and $y$.
Thanks in advance for your help!
Alexis Arnaudon
--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/997fd49e-da9b-4425-97f1-4a7926d9b39b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Keaton,
this is a really good idea! I tried but I failed so far... When I use what you sugested I obtain the following error after the first timestep:
/python3.5/site-packages/scipy/sparse/linalg/dsolve/linsolve.py:145: MatrixRankWarning: Matrix is exactly singular
warn("Matrix is exactly singular", MatrixRankWarning)
Also, I am using periodic boundary conditions, which may be the issue here. I don't see how to solve this problem, which seems to be coming from the fact that I define f via its derivative (if I remove the derivative on f, the code does not crash).
Thanks a lot for your help!
On Monday, March 6, 2017 at 3:11:41 PM UTC, Keaton Burns wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-users+unsubscribe@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/04db919f-7bad-4eb7-b977-1a11b4abd20e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/CAJoYf%3DjK%3DnWFQ-w%3DnGKCo4RTQco02hhNo-FXx_6%2BGmRFScWoAA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/04db919f-7bad-4eb7-b977-1a11b4abd20e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.