Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::Reaction_Diffusion_Cell< Real > Struct Template Reference

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.
 

Detailed Description

template<typename Real = double>
struct Aleph::CA::Reaction_Diffusion_Cell< Real >

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.

Template Parameters
Realfloat or double.

Definition at line 273 of file tpl_ca_continuous_rules.H.

Member Function Documentation

◆ operator==()

template<typename Real = double>
constexpr bool Aleph::CA::Reaction_Diffusion_Cell< Real >::operator== ( const Reaction_Diffusion_Cell< Real > &  rhs) const
inlineconstexprnoexcept

Compare two cells exactly.

Parameters
[in]rhscell to compare with.
Returns
true when both fields match exactly.
Exceptions
Thisfunction 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.

Member Data Documentation

◆ u

◆ v


The documentation for this struct was generated from the following file: