Re: Convective term

2014-12-30 Thread Daniel Wheeler
On Mon, Dec 29, 2014 at 7:36 PM, Fausto Arinos de A. Barbuto fausto_barb...@yahoo.ca wrote: Hello, I want to implement the following term in the RHS of the equation below: \frac{1}{c}\frac{\partial u}{\partial t} = u \frac{\partial u}{\partial x} You should write the equation in the form

Convective term

2014-12-29 Thread Fausto Arinos de A. Barbuto
Hello, I want to implement the following term in the RHS of the equation below: \frac{1}{c}\frac{\partial u}{\partial t}  =  u \frac{\partial u}{\partial x} where c is a constant.  I wonder what convection/advection module shouldI use, and how.  The expression TransientTerm(coeff=1.0/c) ==

Re: Convective Term

2010-12-15 Thread Daniel Wheeler
Hi Ram, FiPy has no requirement for the position of the convection term. It can be on either the left or right hand side of the equation. Can you give an example (using a very small snippet of code) that shows the issue you are having if any? Cheers On Tue, Dec 14, 2010 at 4:24 PM, Ram

Re: Convective Term

2010-12-15 Thread Ram Balachandran
Thanks Daniel. I was more curious to know as to why Fipy decided to have the term on the right hand side of the equation (equation in section 5.1 of the fipy manual). Traditionally it is on the left hand side. I suppose the only thing that would change is the sign and one has to be careful about

Re: Convective Term

2010-12-15 Thread Ram Balachandran
Ok. I thought that you cannot move the terms on either side of the equation. I should have tested it out. Thanks for the clarification. Ram. On Wed, Dec 15, 2010 at 9:58 AM, Jonathan Guyer gu...@nist.gov wrote: On Dec 15, 2010, at 10:27 AM, Ram Balachandran wrote: I was more curious to

Convective Term

2010-12-14 Thread Ram Balachandran
Hello, The normal convection-diffusion equation that I have seen in textbooks is of the form d(rho*phi)/dt + grad(v*phi) = div(D*grad(phi)) + source. Why does fipy define the equation with the convection term on the right hand side of the equal to symbol. Am I missing something here? Thanks