Computing divergence the (x, y) vector field using faceValues from a CellVariable

2015-01-02 Thread Kyle Briton Lawlor
Hi FiPy, I am toying around with the following problem, suppose there is a vector field v=(x,y) and I am looking to compute div(v)=2 with FiPy. I know that the .divergence property is for FaceVariables but suppose we need to build the vector field from a CellVariable. As far as I know, from the

Re: Gmsh2D() error -- Gmsh version must be >=2.0

2015-01-02 Thread Jason Furtney
I get this from time to time also. If I don't actually need gmsh to be called I just monkey patch the function that checks for gmsh like so: import fipy fipy.meshes.gmshMesh._gmshVersion = lambda **kwargs : 2.0 which makes the error go away. On Fri, Jan 2, 2015 at 9:32 AM, Daniel Wheeler wrote:

Re: Gmsh2D() error -- Gmsh version must be >=2.0

2015-01-02 Thread Daniel Wheeler
On Thu, Jan 1, 2015 at 10:00 PM, Kyle Lawlor wrote: > To start the error crops up running the following lines of code: > > from fipy import * > file_path="C:\path\square.msh" > mesh=Gmsh2D(file_path) > > The error I get is: > > line 3, in > mesh=Gmsh2D(file_path) > File "C:\Python27\lib\si