Closed guyer closed 9 years ago
Also encountered this issue. Solving: A.equation = TransientTerm() h2. DiffusionTerm() - A.getFaceGrad().getDivergence() returned the expected result of no change (transient = 0).
Solving what should be an identical equation: A.equation = TransientTerm() 1*DiffusionTerm() - A.getFaceGrad().getDivergence() and did not get an identical result.
I'm happy to provide the full script and results if they will be helpful. In summary, I started with a step function (1's, then 0's). At the step the second equation produces these results (compared with the expected result of no change):
Expected Observed 1 1 1 0.999999989 1 1.000001074 1 0.999894781 1 1.010310363 0 -0.010310363
Note also that similar behavior occurred with multiples other than 1* (2, B, etc).
Trac comment by gathrw@rpi.edu on 05-09-2010 at 12:42
Check that this is fixed???
Trac comment by wd15 on 04-27-2011 at 16:13
As highlighted in http://thread.gmane.org/gmane.comp.python.fipy/1711, multiplying terms by 1 seems to change their behavior. E.g.,
returns
Imported from trac ticket #291, created by guyer on 04-14-2010 at 14:52, last modified: 11-17-2011 at 14:34