This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fipy.tools.numerix as np | |
from fipy.terms import VanLeerConvectionTerm | |
import fipy as fp | |
import pylab as plt | |
# monkey patch VanLeerConvectionTerm so we can override | |
# __getGradient in the derived class | |
VanLeerConvectionTerm._getGradient = VanLeerConvectionTerm._VanLeerConvectionTerm__getGradient | |
VanLeerConvectionTerm._VanLeerConvectionTerm__getGradient = \ | |
lambda self, a, b: self._getGradient(a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar upgoer-five-keywords (split-string "a able about above accept across | |
act actually add admit afraid after afternoon again against age | |
ago agree ah ahead air all allow almost alone along already | |
alright also although always am amaze an and anger angry animal | |
annoy another answer any anymore anyone anything anyway apartment | |
apparently appear approach are area aren't arm around arrive as | |
ask asleep ass at attack attempt attention aunt avoid away baby | |
back bad bag ball band bar barely bathroom be beat beautiful | |
became because become bed bedroom been before began begin behind |
NewerOlder