-
Notifications
You must be signed in to change notification settings - Fork 472
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
Fix the value at one dof #35
Comments
Here is my mesh file. MFEM mesh v1.0 MFEM Geometry Types (see mesh/geom.hpp):POINT = 0SEGMENT = 1TRIANGLE = 2SQUARE = 3TETRAHEDRON = 4CUBE = 5dimension format: <vertex 0> <vertex 1> ...elements boundary vertices nodes -1.000000 -1.000000 -1.000000 -0.333333 -1.000000 -1.000000 0.333333 -1.000000 -1.000000 -1.000000 -0.333333 -1.000000 -0.333333 -0.333333 -1.000000 0.333333 -0.333333 -1.000000 -1.000000 0.333333 -1.000000 -0.333333 0.333333 -1.000000 0.333333 0.333333 -1.000000 -1.000000 -1.000000 -0.333333 -0.333333 -1.000000 -0.333333 0.333333 -1.000000 -0.333333 -1.000000 -0.333333 -0.333333 -0.333333 -0.333333 -0.333333 0.333333 -0.333333 -0.333333 -1.000000 0.333333 -0.333333 -0.333333 0.333333 -0.333333 0.333333 0.333333 -0.333333 -1.000000 -1.000000 0.333333 -0.333333 -1.000000 0.333333 0.333333 -1.000000 0.333333 -1.000000 -0.333333 0.333333 -0.333333 -0.333333 0.333333 0.333333 -0.333333 0.333333 -1.000000 0.333333 0.333333 -0.333333 0.333333 0.333333 0.333333 0.333333 0.333333 |
I solved this problem now. Thank you :) |
Hi Frank, I'm glad to hear you got it working. Do you want to share the solution so we can refer to it in the future? Cheers, |
Hi, Tzanio, I used the following code to eliminate 1 dof, which increases the rank of discritized Laplace by one. Array pdofs(1); Vector pfix(1); I should not test this with -\Delta u=1 for periodic plane channel, as the analytic solution does not exist. I am constructing other cases to test this. Thank you, |
Hi,
I am trying to solve \Delta u=1, with u=0 imposed at one point. This is commonly used in CFD for the Poisson equation of pressure.
I modified "periodic-cube.mesh" to make it only periodic in x and y directions. I want to fix the first dof in process 0 to 0.0. Here is how I tried to do this:
Array pdofs(1); Vector pfix(1);
pdofs=0; pfix=0.0;
if(myid==0) a->EliminateVDofs( pdofs, pfix,*b);
Here is the result.
![snapshot4](https://cloud.githubusercontent.com/assets/16857800/12699667/0883d7e6-c789-11e5-8035-9a23d8356ae7.png)
Could you please explain to me where I did wrong?
Thank you very much,
Frank
The text was updated successfully, but these errors were encountered: