On Thu, Jan 16, 2014 at 1:17 PM, Charles Reid <[email protected]> wrote:
> Hi there,
>
> I've managed to resolve the issues I was having. It came down to a problem
> with the type of the convection coefficient object. I was able to create a
> convection coefficient matrix by creating a list of size
> (1,Nvariables,Nvariables), and passing that as the coefficient. (Note that
> the same goes for diffusion coefficients in vector equations.)

Yes. This is correct. Glad that you've sorted that out.

> --------------------8<-------------------------
>

> species_eqn = ConvectionTerm(coeff=u_x,var=c_i) == 0.2

You need a transient term in this. This doesn't work as a steady state
equation, there isn't a steady state.

> species_eqn.solve(var=c_i)

> ---------------------8<----------------------------
>
> While the script still results in an error (RuntimeError: Factor is exactly
> singular), it is at least a solution to the problem of how to specify
> coefficients.

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

Reply via email to