--
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/71b29ea2-ceff-4957-bd0f-31f23adc6e52n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/ac1569b0-204e-4ea8-a8d9-deb09d55b352n%40googlegroups.com.
~~~~~~~~~
problem = d3.LBVP([u, p, tau_p], namespace=locals())
problem.add_equation("-grad(p) + lap(u) = f", condition = "(nx != 0) or (ny != 0)")
problem.add_equation("u = 0", condition = "(nx == 0) and (ny == 0)")
problem.add_equation("div(u) + tau_p = 0")
problem.add_equation("integ(p) = 0") # Pressure gauge
~~~~~~~~~~
Without any condition on the momentum equation, it gives the error, "RuntimeError: Factor is exactly singular".
When I apply the condition shown in the code, it gives the error, "NameError: name 'ny' is not defined. Did you mean: 'nx'?".
I wonder if anyone has faced a similar problem.
Thanks in advance for any help.
Best regards,
Manish Kumar
problem = d3.LBVP([u, p, tau_p, tau_u], namespace=locals())
problem.add_equation("-grad(p) + lap(u) + tau_u = f")
problem.add_equation(integ(u) = 0")
problem.add_equation("div(u) + tau_p = 0")
problem.add_equation("integ(p) = 0") # Pressure gauge