Thank you. Now it works it was just the type of the apostrophes I'm using.
Regards
>
> What error?
>
> What version of FiPy? (python -c "import fipy; print fipy.__version__")
>
> What version of Gmsh? (gmsh -version)
>
>
> On Jan 18, 2011, at 9:18 AM, Fadoua El Moustaid wrote:
>
>>
>> Hi,
>> I'm Fadoua and I wanted to use Fipy to solve the diffusion equation in
>> polar coordinates for that I need to use a circle mesh to present the
>> solution so I looked at Fipy documentation and I diffusion.circle
>> example,
>> but when I tried it in my computer it doesn't work.
>>
>> I'm using python in ubuntu 10.04. apparently I have a problem with using
>> GmshImporter2D. I used the same code given in the example just to try it
>> first if it works than implement my code, but it gave me an error.
>> the code I'm using is:
>>
>>
>> from __future__ import division
>> from fipy import *
>> cellSize = 0.05
>> radius = 1.
>>
>> mesh = GmshImporter2D(
>> cellSize = 0.05;
>> radius = 1.;
>> Point(1) = {0, 0, 0, cellSize};
>> Point(2) = {-radius, 0, 0, cellSize};
>> Point(3) = {0, radius, 0, cellSize};
>> Point(4) = {radius, 0, 0, cellSize};
>> Point(5) = {0, -radius, 0, cellSize};
>> Circle(6) = {2, 1, 3};
>> Circle(7) = {3, 1, 4};
>> Circle(8) = {4, 1, 5};
>> Circle(9) = {5, 1, 2};
>> Line Loop(10) = {6, 7, 8, 9};
>> Plane Surface(11) = {10};
>> % locals())
>>
>>
>> phi = CellVariable(name = "solution variable", mesh = mesh, value = 0.)
>> viewer = Viewer(vars=phi, datamin=-1, datamax=1.)
>> viewer.plotMesh()
>>
>>
>>
>>
>
>
>
>