<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy">
    <title>gmane.comp.python.fipy</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1121"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1120"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1119"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1118"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1117"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1116"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1115"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1114"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1113"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1112"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1111"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1110"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1109"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1108"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1107"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1106"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1105"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1104"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1103"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.fipy/1102"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1121">
    <title>Re: bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1121</link>
    <description>

On Aug 20, 2008, at 4:10 PM, franck kalala wrote:


I don't understand what you're asking. Those have nothing to do with  
fipy. It's just Python and NumPy syntax. '&amp;' is correct. 'and' is not.



</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-20T20:24:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1120">
    <title>Re: bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1120</link>
    <description>Thanks that right

I have not subversion how can I deal with "&amp;" or "and" in fipy?

Regards




2008/8/20 Jonathan Guyer &lt;guyer-R3+/ord2DXQ&lt; at &gt;public.gmane.org&gt;



</description>
    <dc:creator>franck kalala</dc:creator>
    <dc:date>2008-08-20T20:10:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1119">
    <title>Re: bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1119</link>
    <description>

On Aug 20, 2008, at 2:57 PM, franck kalala wrote:


In an equation for phi?

PowerLawConvectionTerm(coeff=2 * p.getFaceGrad())

You've also got a p.getFaceGrad().getDivergence() term that isn't in  
your .pdf and the sign of your ImlicitDiffusionTerm is wrong in eqp.



</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-20T19:42:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1118">
    <title>Re: bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1118</link>
    <description>Thanks for this hint.

Did you not forgot a term in the second equation?
eqp=ImplicitDiffusionTerm(coeff=1)==_ExplicitSourceTerm(q1s+q2s)
eqphi=TransientTerm(coeff=2)==_ExplicitSourceTerm(q1s-q2s)

after subtracting the two equations of the problem I sent in the attached
file, there  a term which looks like 2\nabla(phi\nabla p), then how to
represent it?

Franck

Regards


2008/8/20 Jonathan Guyer &lt;guyer-R3+/ord2DXQ&lt; at &gt;public.gmane.org&gt;



</description>
    <dc:creator>franck kalala</dc:creator>
    <dc:date>2008-08-20T18:57:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1117">
    <title>Re: bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1117</link>
    <description>

On Aug 20, 2008, at 12:10 PM, franck kalala wrote:


I understood what you're trying to do, but this appears to be a bug in  
version 1.2. What you've written (using '&amp;') works on trunk/, but not  
on version 1.2.


As a workaround, you can do

     from fipy.terms.explicitSourceTerm import _ExplicitSourceTerm

     eqp=ImplicitDiffusionTerm(coeff=1)==_ExplicitSourceTerm(q1s+q2s)
     eqphi=TransientTerm(coeff=2)==_ExplicitSourceTerm(q1s-q2s)



</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-20T17:06:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1116">
    <title>Re: bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1116</link>
    <description/>
    <dc:creator>franck kalala</dc:creator>
    <dc:date>2008-08-20T16:10:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1115">
    <title>Re: bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1115</link>
    <description>

On Aug 20, 2008, at 6:19 AM, franck kalala wrote:


"&amp;" not "and"



</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-20T13:08:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1114">
    <title>bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1114</link>
    <description>Thanks to show me how to use characteristic function as a source. But I
still have a problem.
I am solving these equations
1)eqp=ImplicitDiffusionTerm(coeff=1)==source1, where
source1=q1s+q2s(pressure equation)
2)eqphi=TransientTerm(coeff=2)==source2  where source2=q1s-q2s(saturation
eqaution)
where:

qin=40*((phi&gt;=.1)and(phi&lt;=.3))+20*((phi&gt;=.7)and(phi&lt;=.9))
qout=60*((phi&gt;=.4)and(phi&lt;=.6))
sin=.8
q1s=sin*qin+s*qout
q2s=(1-sin)*qin+(1-phi)*qout

when I run the I program I have the following error:

Evaluating diphabis.py
Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;string&gt;
AttributeError: 'bool' object has no attribute 'solve'

I don't understand this error, could any one have an idea? see my code
below.

Regards,

Franck

*********************************************************************************************************************************************************************************************
nx=400
dx=L/nx
timeStepDuration=0.012
from fipy.meshes.grid1D import Grid1D
mesh</description>
    <dc:creator>franck kalala</dc:creator>
    <dc:date>2008-08-20T10:32:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1113">
    <title>bool source term</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1113</link>
    <description>Thanks to show me how to use characteristic function as a source. But I
still have a problem.
I am solving these equations
1)eqp=ImplicitDiffusionTerm(coeff=1)==source1, where source1=q1s+q2s
2)eqphi=TransientTerm(coeff=2)==source2  where source2=q1s-q2s
where:

qin=40*((phi&gt;=.1)and(phi&lt;=.3))+20*((phi&gt;=.7)and(phi&lt;=.9))
qout=60*((phi&gt;=.4)and(phi&lt;=.6))
sin=.8
q1s=sin*qin+s*qout
q2s=(1-sin)*qin+(1-phi)*qout

when I run the I program I have the following error:

Evaluating diphabis.py
Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;string&gt;
AttributeError: 'bool' object has no attribute 'solve'

I don't understand this error, could any one have an idea? see my code
below.

Regards,

Franck

*********************************************************************************************************************************************************************************************
nx=400
dx=L/nx
timeStepDuration=0.012
from fipy.meshes.grid1D import Grid1D
mesh=Grid1D(dx=dx, nx=nx)
from fipy.variable</description>
    <dc:creator>franck kalala</dc:creator>
    <dc:date>2008-08-20T10:19:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1112">
    <title>Re: matrix diffusive coefficient and characteristic source function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1112</link>
    <description>

On Aug 18, 2008, at 2:57 PM, franck kalala wrote:


(phi &gt;= 0.7) &amp; (phi &lt;= 0.9)



</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-18T19:14:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1111">
    <title>Re: matrix diffusive coefficient and characteristic source function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1111</link>
    <description>Thanks for this answer

1) \nabla(\nabla phi)=source=q(phi)
  where source=q(phi)=charactristic function of the intervall [0.3,.7]
  how do I set a characteristic function in fipy ie my given source.

Define the variable relationship and just add it as a source to the
equation with "+" or "-".

my source term for the above problem looks like

source=q(phi)=40*chi[0.1,.03](phi)+20*chi[0.7,0.9](phi)
where chi is the characteristic function of [0.1,0.3] which is 1 if phi
belongs to [0.1,0.3] and 0 otherwise.
how do I set such a function in fipy?

Regards


2008/8/18 Daniel Wheeler &lt;daniel.wheeler2-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org&gt;



</description>
    <dc:creator>franck kalala</dc:creator>
    <dc:date>2008-08-18T18:57:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1110">
    <title>Re: Plotting flux</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1110</link>
    <description>

On Aug 18, 2008, at 10:16 AM, Rashmi Ranjan Mohanty wrote:


You're right. Our vector variables don't support  
`getCellVolumeAverage()` (actually, on trunk/ the call doesn't fail,  
but the answer is meaningless).

It looks like you can calculate the average vector components like  
this, though:

     &gt;&gt;&gt; xave = vec.dot((1,0)).getCellVolumeAverage()
     &gt;&gt;&gt; yave = vec.dot((0,1)).getCellVolumeAverage()

You can the average magnitude (which is not the magnitude of the  
average vector) with:

     &gt;&gt;&gt; magave = vec.getMag().getCellVolumeAverage()



You'll want to normalize the values to the masked area, like we  
discussed in http://thread.gmane.org/gmane.comp.python.fipy/854


</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-18T18:58:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1109">
    <title>Re: matrix diffusive coefficient and characteristic source function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1109</link>
    <description>

On Aug 18, 2008, at 2:24 PM, franck kalala wrote:


Our svn installation instructions are at:

   http://www.ctcms.nist.gov/fipy/svn.html

We are not allowed to run Vista here, so we can't offer any specific  
help with that platform. Perhaps some of our other users have  
experience?



</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-18T18:43:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1108">
    <title>Re: matrix diffusive coefficient and characteristic source function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1108</link>
    <description>Many thanks for your message ans explanation. However I still have one
question.

I had many problems to fix my fipy on vista and honestly I don't know
exactly how to update the trunk you are talking about.
May you give me simple steps on how to update easly?

Franck,

Regards

2008/8/18 Daniel Wheeler &lt;daniel.wheeler2-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org&gt;



</description>
    <dc:creator>franck kalala</dc:creator>
    <dc:date>2008-08-18T18:24:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1107">
    <title>Re: matrix diffusive coefficient and characteristic source function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1107</link>
    <description>
On Mon, Aug 18, 2008 at 8:56 AM, franck kalala
&lt;franckkalala-gM/Ye1E23mwN+BqQ9rBEUg&lt; at &gt;public.gmane.org&gt; wrote:

As I said, you will need to update to trunk and place the matrix as
the first element and only element in a higher order iterable.


Define the variable relationship and just add it as a source to the
equation with "+" or "-".

Cheers

</description>
    <dc:creator>Daniel Wheeler</dc:creator>
    <dc:date>2008-08-18T15:36:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1106">
    <title>Re: the contaminant transport problem</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1106</link>
    <description>
On Wed, Aug 13, 2008 at 8:08 PM, franck kalala
&lt;franckkalala-gM/Ye1E23mwN+BqQ9rBEUg&lt; at &gt;public.gmane.org&gt; wrote:

Which version of fipy are you using?

You should be aware of two things.

1) If you write the coefficient as "((0,1),(2,3))". This will be
interpreted as a fourth order diffusion term. The first index refers
to the order of the term.

2) Released versions of fipy (1.2 and earlier) do not have anisotropic
diffusion (the diffusion term allows one to submit a matrix). You need
to update to trunk in order to use this.

To get what you want, you need to update to trunk (using subversion)
and change your diffusion coefficient to be "(((0,1),(2,3)),)" for
example. This will give you a second order diffusion term. If you miss
out the final "," you will have a fourth order diffusion term with
weird coefficients.

Cheers

</description>
    <dc:creator>Daniel Wheeler</dc:creator>
    <dc:date>2008-08-18T15:22:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1105">
    <title>Re: Detalization of the mesh</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1105</link>
    <description>

On Aug 17, 2008, at 7:22 PM, Igor Telezhinsky wrote:


Enough to get the accuracy you need.


I'm not aware of any simple formula to evaluate this (Daniel might  
know). Some problems are very tolerant of coarse meshes. Some are not.  
If the critical length scales of your problem are small, then you'll  
need an appropriately fine mesh. In this case, one might well wonder  
why you're even solving this problem on a domain of L=1000. Everything  
interesting happens in 0 &lt; x &lt; 1.




 &gt;&gt;&gt; mesh = Grid1D(nx=7) + (-3.5,)

will give you a mesh with cell centers ranging from -3. to +3.


One option might be to only have a fine grid at small x. You should be  
able to do:

 &gt;&gt;&gt; mesh = Grid1D(nx=1000, dx=0.001) + (Grid1D(nx=999, dx=1.) + (1.,))

but this is both extremely slow (Tony Yu has provided us a patch that  
should fix that) and it throws an error for some reason. Instead, you  
can do:

 &gt;&gt;&gt; Grid1D(dx=[0.001] * 1000 + [1.] * 999)

Alternatively, to make a logarithmic grid:

 &gt;&gt;&gt; mesh=Grid1D(dx=10**numeri</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-18T13:24:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1104">
    <title>Re: Mesh Problem</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1104</link>
    <description>

On Aug 15, 2008, at 3:17 PM, Tony S Yu wrote:


Thanks very much for offering the solution, Tony. Daniel and I were  
both out last week, so it's great when FiPy users can help each other  
out.



The array() shouldn't be necessary. `[[0.],[2.]]` or `((0.,),(2.,))`  
should do it.


We'll take a look at it. We presently don't do any work to determine  
what the offset "means". In FiPy 1.2 and earlier, the coordinates were  
specified as `(0,2)` the way Zhiwen was doing. One consequence of the  
array re-ordering we did since then was that the "correct" shape of  
the offset is now `((0,),(2,))`. I agree, though, that it's clumsy and  
that supporting its transpose doesn't seem likely to be ambiguous.



</description>
    <dc:creator>Jonathan Guyer</dc:creator>
    <dc:date>2008-08-18T13:10:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1103">
    <title>matrix diffusive coefficient and characteristic source function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1103</link>
    <description>Dear all,

How can solve this problem
1) \nabla(S.\nabla phi)=source
where S is a 2 by 2 matrice?
1) \nabla(\nabla phi)=source=q(phi)
where source=q(phi)=charactristic function of the intervall [0.3,.7]
how do I set a characteristic function in fipy ie my given source.

Franck

Regards.




</description>
    <dc:creator>franck kalala</dc:creator>
    <dc:date>2008-08-18T12:56:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1102">
    <title>Detalization of the mesh</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1102</link>
    <description>Dear all,  
Thank you for previous answers!  
  
Now I have a few tricky questions:  
  
Lets say I  have a mesh  
  
mesh = Grid1D(dx = dx, nx = nsteps)  
x = mesh.getCellCenters()[...,0]  
  
x is now a space variable of my problem.  
  
How many steps in space is it essential to use for the convection problem? (see PDE solution problem thread for details).  
In what way the number of steps in space changes the solution precision?  
  
I would like to have small steps in space at least near 0 (i.e. 0, 0.001, 0.002 ... ). This is needed for my further research.  
I experimented a bit and found that fipy slows down dramatically when number of steps in space increases (as N^2)! That's why I thought of logarithmic scale so that all space dependent functions would now depend on 10^x. I met a problem, however: ARE THERE NEGATIVE NUMBERS ON THE MESH? For example, I would like to have a range of x (-3,3) what would respond to the range (0.001,1000) with 1000000 steps if had to do this detalization in linear scale</description>
    <dc:creator>Igor  Telezhinsky</dc:creator>
    <dc:date>2008-08-17T23:22:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.fipy/1101">
    <title>Re: Mesh Problem</title>
    <link>http://permalink.gmane.org/gmane.comp.python.fipy/1101</link>
    <description>Hi Tony,
Thank you very much! Your solution works for me. You are a great help!

Regards,
Zhiwen

On Fri, Aug 15, 2008 at 3:17 PM, Tony S Yu &lt;tonyyu-3s7WtUTddSA&lt; at &gt;public.gmane.org&gt; wrote:

</description>
    <dc:creator>Zhiwen Liang</dc:creator>
    <dc:date>2008-08-15T20:16:07</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.fipy">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.fipy</link>
  </textinput>
</rdf:RDF>
