DCMotor
Direct Current Motor. See https://en.wikipedia.org/wiki/DC_motor
Note: this model is in beta. Please contact us if you find any unusual behavior.
Example usage
flux.simulationModel = { type: "DCMotor", inductance: 0.5, resistance: 1, K: 0.15, Kb: 0.15, J: 0.02, b: 0.05, map_output_to_terminal_uid: "your-terminal-element-uid", map_input_to_terminal_uid: "your-terminal-element-uid"}Fields
| Name | Type | Default | Description |
|---|---|---|---|
type | "DCMotor" | The type of this object, always the string literal "DCMotor" | |
inductance | number | 0.5 | Armature inductance (H) |
resistance | number | 1 | Armature Resistance (ohms) |
K | number | 0.15 | Torque constant (Nm/A) |
Kb | number | 0.15 | Back emf constant (Vs/rad) |
J | number | 0.02 | Moment of inertia (Kg.m^2 |
b | number | 0.05 | Friction coefficient (Nms/rad) |
map_output_to_terminal_uid | string | The terminal ID corresponding to the output. | |
map_input_to_terminal_uid | string | The terminal ID corresponding to the output. |
Was this page helpful?