PS: I played a bit to find out if it matters to have same term instances but didn't see any difference at least in my script. But I will definitely change to what you advised and will avoid using same term instances in my future scripts.
Thanks again! On Sun, Aug 25, 2013 at 12:24 PM, Igor <[email protected]> wrote: > Dear Daniel, > > Thanks a lot for your help. I made this change in my other scripts and > they work now as expected. It's seems that either I missed this point or > it's not covered in the manual. > > Best regards, > Igor. > > > > On Fri, Aug 23, 2013 at 6:31 PM, Daniel Wheeler <[email protected] > > wrote: > >> On Wed, Aug 21, 2013 at 5:00 PM, Igor <[email protected]>wrote: >> >> Could you please help me understand the problem? >>> >> >> Igor, >> >> The following changes will get it working with FiPy 3.0.1: >> >> 83,85c84,86 >> < >> < eqBr = tranTerm == convTerm_r - convTerm_v - implSource0 - >> implSource1x2 + implSource2 >> < eqBt = tranTerm == convTerm_r - convTerm_v - implSource0 - implSource1 >> --- >> > >> > eqBr = TransientTerm() == PowerLawConvectionTerm(convCoeff_r - >> convCoeff_v) - ImplicitSourceTerm(implSourceCoeff0 + implSourceCoeff1x2 - >> implSourceCoeff2) >> > eqBt = TransientTerm() == PowerLawConvectionTerm(convCoeff_r - >> convCoeff_v) - ImplicitSourceTerm(implSourceCoeff0 + implSourceCoeff1) >> >> Basically, only have one ImplicitSourceTerm and one >> PowerLawConvectionTerm in each equation. Also, it might not be a good idea >> to use the same term instance in two equations. >> >> Igor, thanks for sharing this, it has definitely highlighted an issue. >> FiPy should really throw an informative error when multiple terms of the >> same kind are used in an equation (or just work properly as in 2.1.3). >> >> -- >> Daniel Wheeler >> >> _______________________________________________ >> fipy mailing list >> [email protected] >> http://www.ctcms.nist.gov/fipy >> [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] >> >> >
_______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
