I believe that the boundary conditions that you're describing should
be handled fine by PyAMG. If you end up only enforcing a condition on
the normal derivative over the domain boundary for Poisson's equation,
the matrix will be singular. But, you should be able to project out
the constant from the current solution guess during each solver
iteration.
With respect to constructing the matrix, PyAMG doesn't do that. PyAMG
only solves resulting linear systems. If you can construct the matrix
in Matlab, then you can save it as a .mat and use scipy.io.loadmat to
get it into Python. Also, you could just convert your Matlab script
to Python to construct your matrix using SciPy/NumPy. If you use
C/C++ to construct your matrix, I'd suggest using Swig to call your
C/C++ routine from Python.
Jacob
> --
> You received this message because you are subscribed to the Google Groups "pyamg-user" group.
> To post to this group, send email to pyamg...@googlegroups.com.
> To unsubscribe from this group, send email to pyamg-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pyamg-user?hl=en.
>
>
With respect to solving the matrix, I would suggest following some of
the examples and using the smoothed_aggregation_solver to generate an
AMG hierarchy. When you solve for a given right-hand-side though,
you'll need to set the callback parameter to a function that will
project out the constant (that is, if you only enforce Neumann style
boundary conditions everywhere when you discretize.)
Jacob