Template Class Capacitor
Defined in File Capacitor.hpp
Inheritance Relationships
Base Type
public GridKit::CircuitComponent< ScalarT, IdxT >(Template Class CircuitComponent)
Class Documentation
-
template<class ScalarT, typename IdxT>
class Capacitor : public GridKit::CircuitComponent<ScalarT, IdxT> Declaration of a Capacitor class.
Public Functions
-
Capacitor(IdxT id, RealT C)
Constructor for Capacitor.
- Todo:
this needs to be tested on some circuit
Calls default ModelEvaluatorImpl constructor.
-
virtual int initialize()
Initialization of the grid model
-
virtual int evaluateInternalResidual() final
Evaluate the resisdual of the Capcitor.
-
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.
-
virtual int evaluateJacobian()
Compute the Jacobian dF/dy - a dF/dy’.
- Template Parameters:
ScalarT –
IdxT –
- Returns:
int
-
Capacitor(IdxT id, RealT C)