Template Class InductionMotor
Defined in File InductionMotor.hpp
Inheritance Relationships
Base Type
public GridKit::CircuitComponent< ScalarT, IdxT >(Template Class CircuitComponent)
Class Documentation
-
template<class ScalarT, typename IdxT>
class InductionMotor : public GridKit::CircuitComponent<ScalarT, IdxT> Declaration of a InductionMotor class.
Public Functions
-
InductionMotor(IdxT id, RealT Lls, RealT Rs, RealT Llr, RealT Rr, RealT Lms, RealT RJ, RealT P)
Constructor for a constant InductionMotor model.
Calls default ModelEvaluatorImpl constructor.
- Todo:
create a test case utilizing the component.
create a unit test to check correctness of component
- Template Parameters:
ScalarT – - data type for scalar variables in the model
IdxT – - integer index type for the model
- Parameters:
id – [in] - unique identifier for the component
Lls – [in] - stator leakage inductance
-
virtual int initialize()
Initialization of the grid model
-
virtual int evaluateInternalResidual() final
Contributes to the resisdual.
-
virtual int evaluateExternalResidual() final
Evaluate all of the residuals of external variables of the component, modifying f_.
- Returns:
An error code, or 0 if successful.
-
InductionMotor(IdxT id, RealT Lls, RealT Rs, RealT Llr, RealT Rr, RealT Lms, RealT RJ, RealT P)