Re: Thermal Diffusion with Source

2016-04-25 Thread Daniel Wheeler
On Tue, Apr 19, 2016 at 11:10 PM, John Leeman  wrote:
>
> I was just worried I didn’t grasp the way I needed to interact with FiPy. An 
> example along this vein could be a useful addition in the docs possibly?

John, an example would be very welcome. If you would like to just make
it an IPython notebook (rather than doctest/restructured text script)
then please do that and we'll try and link to it from the
documentation.

-- 
Daniel Wheeler

___
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]


Re: squared partial derivatives

2016-04-25 Thread Daniel Wheeler
On Tue, Apr 19, 2016 at 11:22 AM, Francisco Vega Reyes  wrote:
> Hello,
>
> I am trying to solve a compressible flow problem (Navier Stokes
> equations for a gas).
>
> Can a term like:
>
>  (\partial(f(x,y))/\partial y) * (\partial(f(x,y))/\partial y)
>
> be represented in FiPy ?

Hi Francisco,

You can represent any term explicitly in FiPy, including (f_y)^2.
However, that sort of term might arise from a conservation law of the
form (f f_y)_y. If that is the case, it is good to try and implement
terms in their conservative form. In the case of (f f_y)_y, "f" will
be a coefficient in a diffusion term.

Cheers,

Daniel

-- 
Daniel Wheeler
___
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]