Re: variable convection term

2010-10-13 Thread BIN ZHANG
Hi, guys: Thanks a lot for all the suggestions. It really kind of you! As a start, I tried to add a source and a sink term in the equation to mimic the boundary condition with the following script: c_source = 0 c_sink = 1 source_value = CellVariable(mesh=mesh, value=1e+10 * ((x-0.5)**2+ (y-

Re: variable convection term

2010-10-13 Thread Jonathan Guyer
On Oct 13, 2010, at 10:25 AM, Benny Malengier wrote: > Another way to indicate a class inheriting from DiffusionTerm may not be > added to that class should be found in my opinion. Eg, one can have a class > membervalue (like class.ADDITIONTERM) indicating with what term the class can > be ad

Re: variable convection term

2010-10-13 Thread Benny Malengier
2010/10/13 Daniel Wheeler > > > On Tue, Oct 12, 2010 at 5:26 PM, BIN ZHANG wrote: > >> Dear Daniel: >> >> Thanks a lot for your suggestions. Now I'm actually able to solve the >> problem with normal boundary conditions. But I still have one extra >> question, is it possible for me to use complic

Re: variable convection term

2010-10-13 Thread Daniel Wheeler
On Tue, Oct 12, 2010 at 5:26 PM, BIN ZHANG wrote: > Dear Daniel: > > Thanks a lot for your suggestions. Now I'm actually able to solve the > problem with normal boundary conditions. But I still have one extra > question, is it possible for me to use complicated boundaries like the one > shown in