|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Two-field state for reaction-diffusion cellular automata. More...
#include <tpl_ca_continuous_rules.H>
Public Member Functions | |
| constexpr bool | operator== (const Reaction_Diffusion_Cell &rhs) const noexcept |
| Compare two cells exactly. | |
Public Attributes | |
| Real | u = Real{} |
| First concentration / activator field. | |
| Real | v = Real{} |
| Second concentration / inhibitor field. | |
Two-field state for reaction-diffusion cellular automata.
Gray-Scott and FitzHugh-Nagumo both evolve an activator-like u field and an inhibitor-like v field. The type is intentionally small, regular and equality-comparable so it satisfies CellState and can be stored in Dense_Cell_Storage.
| Real | float or double. |
Definition at line 273 of file tpl_ca_continuous_rules.H.
|
inlineconstexprnoexcept |
Compare two cells exactly.
| [in] | rhs | cell to compare with. |
| This | function does not throw. |
Definition at line 288 of file tpl_ca_continuous_rules.H.
References Aleph::and, Aleph::CA::Reaction_Diffusion_Cell< Real >::u, and Aleph::CA::Reaction_Diffusion_Cell< Real >::v.
First concentration / activator field.
Definition at line 278 of file tpl_ca_continuous_rules.H.
Referenced by Aleph::CA::Gray_Scott_Rule< Real, Kernel >::laplace_u(), Aleph::CA::FitzHugh_Nagumo_Rule< Real, Kernel >::laplace_u(), Aleph::CA::Gray_Scott_Rule< Real, Kernel >::operator()(), Aleph::CA::FitzHugh_Nagumo_Rule< Real, Kernel >::operator()(), and Aleph::CA::Reaction_Diffusion_Cell< Real >::operator==().
Second concentration / inhibitor field.
Definition at line 280 of file tpl_ca_continuous_rules.H.
Referenced by Aleph::CA::Gray_Scott_Rule< Real, Kernel >::laplace_v(), Aleph::CA::FitzHugh_Nagumo_Rule< Real, Kernel >::laplace_v(), Aleph::CA::Gray_Scott_Rule< Real, Kernel >::operator()(), Aleph::CA::FitzHugh_Nagumo_Rule< Real, Kernel >::operator()(), and Aleph::CA::Reaction_Diffusion_Cell< Real >::operator==().