-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two questions in the demo MixedPoisson.py #91
Comments
Hi |
Thanks! |
It should work now. Following code runs fine for me:
|
Yes, it works for me. |
@mikaem Hi Mikael and other question about all periodic bcs, I don't quite understand the choice of solver, if I want to solve the biharmonic2D problem with all periodic bcs in (x, y) directions, I modified part of the code according to the above, but got the error prompt again. So may other examples (such as Poisson and biharmonic equations with all periodic bcs) be provided here? Thanks! |
Hi
|
OK, thank you! |
Dear Mikael,
In the MixedPoisson.py, I have two questions:
1 . How to modify it to periodic boundary conditions in both x- and y-directions. I tried to change
SD = FunctionSpace(N, family, bc =(0, 0))
toSD = FunctionSpace(N, family)
, but an error occurred.2 . For the mixed formulation
$$
g - \nabla(u) &= 0 \
\nabla \cdot g &= f \
$$
g
is a vector denoted byg=(g0, g1)
,g
andu
are trial functions, letp=(p0, p1)
andq
are test functions.If I don't want to use the
VT = VectorSpace(TT)
to get the spaceg
belongs to, and thenM = BlockMatrix(A00+A01+A10)
to generate the final matrix, I want to get the final matrix (by myself) like this:where
A0=(p0, g0)
,A1=(p1, g1)
,O
is zero matrix,B0=(q, g1_x)
,B1=(q, g2_y)
.Is this possible, and if so, can a complete code or demo be provided?
Thank you very much!
The text was updated successfully, but these errors were encountered: