Hi there,
Firstly, thank you very much for having this software open-source.
I’m working on a two dimensional (k,t) NLBVP with NCC’s and
periodic boundary conditions in k. See the equations below. 
When adding the second equation to the problem.
Best,
Brian
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/dcc41801-fc98-4a07-ba91-f389b9a50cd6n%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/e06c8973-38ae-47a7-b238-766b50729094n%40googlegroups.com.
<Screenshot_3.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/D22FADFC-CFD6-4D5F-874D-C9A6E57A8B03%40northwestern.edu.
Thank you both for your quick answers. Breaking the problem into real and imaginary parts brings me to the following equations.

Preferably the k-basis should be periodic, because the solution in k-space is periodic. E.g. Fourier? However, then I cannot have NCC’s in k-space. Thus I need to use e.g. a Chebyshev basis, am I right? Using a Chebyshev basis for both the k and t mesh leads to a numerical unstable problem. The solutions explode rather quickly after a few perturbations. Moreover, I would like to impose periodic boundary conditions in k-space.
problem.add_bc("left(pR) - right(pR) = 0")
problem.add_bc("left(pI) - right(pI) = 0")
problem.add_bc("left(fe) - right(fe) = 0")
problem.add_bc("left(fh) - right(fh) = 0")
This causes a nan matrix as a solution. What am I missing? Relevant parts of the code are found below. Note that I substituted some variables k->x, t->y and d_k -> Dk. I'd attach a PDF but for some reason, I cannot find a way to do that.
It would be really great if this problem could be solved with Dedalus.
Best,
Brian




As for the commented out bc’s, left(variable)=right(variable) should be the actual boundary condition. Having either side (preferably the same) real number should also converge.

Initial conditions are all zero.

To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/470f210d-a640-48dd-b6a7-942070b156f2n%40googlegroups.com.
Hi Brian,It looks like you’re trying to do a 2D Chebyshev problem, which unfortunately Dedalus does not yet support for NLBVPs (it looks like you’re hitting some syntax errors regarding general functions first, but that is a less fundamental issue). Dedalus also does not currently support 2D NLBVPs using Fourier / NCCs in Fourier directions, although we plan to add this capability soon.Best,-Keaton
On June 18, 2021 at 3:23:49 PM, Brian de Keijzer (briande...@gmail.com) wrote:
Hi Daniel and Geoffrey.Thank you both for your quick answers. Breaking the problem into real and imaginary parts brings me to the following equations.
<1.png>
Preferably the k-basis should be periodic, because the solution in k-space is periodic. E.g. Fourier? However, then I cannot have NCC’s in k-space. Thus I need to use e.g. a Chebyshev basis, am I right? Using a Chebyshev basis for both the k and t mesh leads to a numerical unstable problem. The solutions explode rather quickly after a few perturbations. Moreover, I would like to impose periodic boundary conditions in k-space.
problem.add_bc("left(pR) - right(pR) = 0")
problem.add_bc("left(pI) - right(pI) = 0")
problem.add_bc("left(fe) - right(fe) = 0")
problem.add_bc("left(fh) - right(fh) = 0")
This causes a nan matrix as a solution. What am I missing? Relevant parts of the code are found below. Note that I substituted some variables k->x, t->y and d_k -> Dk. I'd attach a PDF but for some reason, I cannot find a way to do that.
It would be really great if this problem could be solved with Dedalus.
Best,
Brian
<2.png><3.png><4.png>
<5.png>As for the commented out bc’s, left(variable)=right(variable) should be the actual boundary condition. Having either side (preferably the same) real number should also converge.
<6.png>
Initial conditions are all zero.
<7.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/CADZXxBgQwF3csWEfntpqKoiWu%3DjMP-tq3J9O9eaU8wiJ7isO2A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/e72ef34d-1a43-4136-82b9-0360057e782cn%40googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/a746bdf7-744e-4f66-9c59-d08caedc0524n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/86d4b7a4-2e77-4cb8-a684-d042a8d78161n%40googlegroups.com.