File zero_current.hxx#
Defines
-
ZERO_CURRENT#
-
struct ZeroCurrent : public NamedComponent<ZeroCurrent>#
- #include <zero_current.hxx>
Set the velocity of a species so that there is no net current, by summing the current from other species.
This is most often used in the electron species, but does not need to be.
Public Functions
-
ZeroCurrent(std::string name, Options &alloptions, Solver*)#
Inputs
- Parameters:
name – Short name for species e.g. “e”
alloptions – Component configuration options
<name>
charge (must not be zero)
-
inline virtual void finally(const Options &state) override#
Use the final simulation state to update internal state (e.g. time derivatives)
-
virtual void outputVars(Options &state) override#
Add extra fields for output, or set attributes e.g docstrings.
Public Static Attributes
-
static constexpr auto type = "zero_current"#
Private Functions
-
virtual void transform_impl(GuardedOptions &state) override#
Required inputs
species
<name>
density
charge
<one or more other species>
density
velocityg
charge
Sets in the state
species
<name>
velocity
-
ZeroCurrent(std::string name, Options &alloptions, Solver*)#