Hi all.

I have already asked my question at http://math.stackexchange.com/questions/422928/modeling-gravity-field-with-finite-elements and http://stackoverflow.com/questions/17160835/modeling-gravity-field-with-finite-elements but seems there are no people there, who knows sfepy and finite elements, in particular.

I want to model the gravity field on 3D rectangular area. It can be described by the equation: div(G) = rho. Here G is vector unknown function, rho is scalar parameter, which is constant at the selected point and fully determined by material.

The weak form is: int( div(G) * g ) = int( rho * g ). Here g is vector test function.
Using sfepy syntax: {'Gravity' : """dw_div_grad.1.Omega( g, G ) = dw_volume_lvf.1.Omega( m.rho, g )"""}

I used gmsh to build .mesh file. My .geo, .mesh and .py files attached to this message.

When I try to run sfepy, it says that matrix is singular, so the solving process does not converge.

What I have to do to correct the model?

Thanks in advance.