20 resistance <= std::numeric_limits<Real>::epsilon())
21 throw std::invalid_argument(
22 "DC resistance must be finite and safely greater than zero.");
29 Matrix::Constant(1, 1, 1.0 / resistance));
void setParameters(Real resistance)
const Attribute< Real >::Ptr mResistance
Resistance [ohm].
Resistor(String uid, String name, Logger::Level logLevel=Logger::Level::off)
SimPowerComp< Real >::Ptr clone(String name) override final
Returns a modified copy of the component with the given suffix added to the name and without.
TwoTerminalVTypeSSNComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)
void setParameters(const Matrix &A, const Matrix &B, const Matrix &C, const Matrix &D)
String uid()
Returns unique id.
AttributeList::Ptr mAttributes
Attribute List.
spdlog::level::level_enum Level
static bool isFinite(Real value)
std::shared_ptr< SimPowerComp< VarType > > Ptr
Logger::Level mLogLevel
Component logger control for internal variables.
static std::shared_ptr< Resistor > make(Args &&...args)