eisgenerator 2.1.x
eis::Inductor Class Reference

Ideal inductor, model character l. More...

#include <inductor.h>

Inherits eis::Componant.

Collaboration diagram for eis::Inductor:
Collaboration graph

Public Member Functions

 Inductor (std::string paramStr, size_t count=10, bool defaultToRange=false)
 Inductor (fvalue L=1e-6)
virtual std::complex< fvalue > execute (fvalue omega) override
virtual size_t paramCount () const override
virtual char getComponantChar () const override
virtual std::string componantName () const override
virtual std::string getCode (std::vector< std::string > &parameters) override
virtual std::vector< eis::Range > getDefaultParameters (bool range=true) const override
virtual std::string getTorchScript (std::vector< std::string > &parameters) override
Public Member Functions inherited from eis::Componant
virtual void setParamRanges (const std::vector< eis::Range > &ranges)
virtual std::vector< eis::Range > & getParamRanges ()
virtual std::vector< eis::Range > getParamRanges () const
virtual std::string getComponantString (bool currentValue=true, bool withCount=false) const
 Gets this componant as a model string.
virtual bool compileable ()
std::string getUniqueName ()
bool hasDefaultedParameters () const
 Checks if this componant had to use default parameters.

Static Public Member Functions

static constexpr char staticGetComponantChar ()
Static Public Member Functions inherited from eis::Componant
static Componant * copy (Componant *componant)
static Componant * createNewComponant (char componant, std::string paramStr="", size_t count=1, bool defaultToRange=false)
static bool isValidComponantChar (char componant)

Additional Inherited Members

Protected Member Functions inherited from eis::Componant
void initRanges (const std::string &paramStr, size_t count, bool defaultToRange)
Protected Attributes inherited from eis::Componant
std::vector< eis::Range > ranges
std::string uniqueName
bool defaultedParameters = false

Detailed Description

Ideal inductor, model character l.

Z(omega) = j omega L
Re(Z) = 0
Im(Z) = omega L always positive

Parameters: l{L}

  • L : inductance in Henry

Ideal: the real part is exactly zero, so there is no winding resistance. In a Nyquist plot this is a straight line through the origin with positive slope, which is why the linearity filter (skip-linear) discards models consisting of nothing but one l.

Equivalent to a CPE with alpha = -1 and Q = 1/L, an exponent outside the usual 0..1 range, so in practice l is only interchangeable with another l.

Member Function Documentation

◆ componantName()

virtual std::string eis::Inductor::componantName ( ) const
inlineoverridevirtual

Implements eis::Componant.

◆ execute()

virtual std::complex< fvalue > eis::Inductor::execute ( fvalue omega)
overridevirtual

Reimplemented from eis::Componant.

◆ getCode()

virtual std::string eis::Inductor::getCode ( std::vector< std::string > & parameters)
overridevirtual

Reimplemented from eis::Componant.

◆ getComponantChar()

virtual char eis::Inductor::getComponantChar ( ) const
overridevirtual

Implements eis::Componant.

◆ getDefaultParameters()

virtual std::vector< eis::Range > eis::Inductor::getDefaultParameters ( bool range = true) const
overridevirtual

Reimplemented from eis::Componant.

◆ getTorchScript()

virtual std::string eis::Inductor::getTorchScript ( std::vector< std::string > & parameters)
overridevirtual

Reimplemented from eis::Componant.

◆ paramCount()

virtual size_t eis::Inductor::paramCount ( ) const
overridevirtual

Reimplemented from eis::Componant.