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: Thermal Diffusion with Source

2016-04-19 Thread Guyer, Jonathan E. Dr. (Fed)
I don't see anything obviously wrong with the way you've posed the source. Why 
do you think you have a problem?

> On Apr 18, 2016, at 4:44 PM, John Leeman  wrote:
> 
> Hi all,
> 
> I’m working on implementing a rather simple thermal diffusion model with 
> FiPy, but haven’t been able to find any examples or things in the docs to get 
> me over the last challenge. 
> 
> The model represents a stack of several materials. One of them is a granular 
> substance that is sheared and generates some heat. The shear heating 
> generation is just the product of the shear stress and velocity. The velocity 
> will vary with time in the model (in the end). Basically I’m solving 
> equations 2,3 from 
> http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.211.384=rep1=pdf
> 
> I was able to build the model and solve a simple diffusion problem, but I’m 
> having trouble figuring out how to get the heat generation term into FiPy. 
> You can see the simple notebook and a notebook in which I tried to add the 
> heating terms on this gist: 
> https://gist.github.com/jrleeman/8bcafffd512feaa77ec2946dc92460ae
> I’m probably missing something, but after looking through the source term 
> docs I was unclear how to proceed.
> 
> Many Thanks,
> John 
> ___
> fipy mailing list
> fipy@nist.gov
> http://www.ctcms.nist.gov/fipy
>  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]


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


Thermal Diffusion with Source

2016-04-18 Thread John Leeman
Hi all,

I’m working on implementing a rather simple thermal diffusion model with FiPy, 
but haven’t been able to find any examples or things in the docs to get me over 
the last challenge. 

The model represents a stack of several materials. One of them is a granular 
substance that is sheared and generates some heat. The shear heating generation 
is just the product of the shear stress and velocity. The velocity will vary 
with time in the model (in the end). Basically I’m solving equations 2,3 from 
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.211.384=rep1=pdf
 


I was able to build the model and solve a simple diffusion problem, but I’m 
having trouble figuring out how to get the heat generation term into FiPy. You 
can see the simple notebook and a notebook in which I tried to add the heating 
terms on this gist: 
https://gist.github.com/jrleeman/8bcafffd512feaa77ec2946dc92460ae 

I’m probably missing something, but after looking through the source term docs 
I was unclear how to proceed.

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