20 Jun 01:19
Re: Mixed Boundary Conditions
From: Daniel Wheeler <daniel.wheeler2@...>
Subject: Re: Mixed Boundary Conditions
Newsgroups: gmane.comp.python.fipy
Date: 2008-06-19 23:19:00 GMT
Subject: Re: Mixed Boundary Conditions
Newsgroups: gmane.comp.python.fipy
Date: 2008-06-19 23:19:00 GMT
On Thu, Jun 19, 2008 at 10:10 AM, Daniel Wheeler <daniel.wheeler2@...> wrote: > On Thu, Jun 19, 2008 at 8:57 AM, Recif <recif@...> wrote: >> >> >> Hi, >> I have listed below the values of -Pe*C + grad C at faces 1 and 2 and >> the values of grad C at faces n-1 and n for Pe=5. > > How did you evaluate "-Pe*C + grad C"? If you are using C.getGrad() be > aware that getGrad always returns zero on the exterior faces. This was a little misleading. getGrad() always assumes that the exterior face value is equal to the adjacent cell value. Thus boundary conditions are not taken into account. getGrad() is in fact a CellVariable if it is invoked by a Cellvariable. I was thinking of getFaceGrad() when I answered your question, but the idea is the same. -- -- Daniel Wheeler
RSS Feed