General Conservation Equation¶
The equations that model the evolution of physical, chemical and biological systems often have a remarkably universal form. Indeed, PDEs have proven necessary to model complex physical systems and processes that involve variations in both space and time. In general, given a variable of interest such as species concentration, pH, or temperature, there exists an evolution equation of the form
where is a function of , other state variables , and higher order derivatives of all of these variables. Examples of such systems are wide ranging, but include problems that exhibit a combination of diffusing and reacting species, as well as such diverse problems as determination of the electric potential in heart tissue, of fluid flow, stress evolution, and even the Schroedinger equation.
A general conservation equation, solved using FiPy, can include any combination of the following terms,
where , and represent coefficients in the transient, convection and diffusion terms, respectively. These coefficients can be arbitrary functions of any parameters or variables in the system. The variable represents the unknown quantity in the equation. The diffusion term can represent any higher order diffusion-like term, where the order is given by the exponent . For example, the diffusion term can represent conventional Fickean diffusion [i.e., ] when the exponent or a Cahn-Hilliard term [i.e.,   ] when , or a phase field crystal term [i.e., ] when , although spectral methods are probably a better approach. Higher order terms () are also possible, but the matrix condition number becomes quite poor.
Enter search terms or a module, class or function name.