
modelElectricChargeConservationLaw
System amount of electric charge (=number of elementary charges) conservation law
Extends from Interfaces.SteadyStateSystem (Global abstract class, for additional global state equations), Icons.ConservationLaw.
Parameters
| Type | Name | Default | Description |
| Integer | n | | Number of mass/energy fragments |
| Types.ElectricCharge | Total | 1 | Total mass/energy if useTotalAsInput=false |
| Simulation › Simulation type |
| Types.SimulationType | Simulation (from SteadyStateSystem) | | Dynamic with Initialization or Steady State |
| Simulation › Equilibrium |
| Integer | NumberOfDependentStates (from SteadyStateSystem) | 1 | Number of additional steady state equation of the system |
| External inputs/outputs |
| Boolean | useTotalInput | false | =true, if total mass/energy is used as an input |
Components
| Type | Name | Default | Description |
| Real[NumberOfDependentStates] | normalizedState (from SteadyStateSystem) | | Normalized independent masses of the system/Normalized independent energies of the system/... This variables must always equals to ones. |
| Types.ElectricCharge | t | | Current Mass/Energy |