eisgenerator 2.1.x
eis::Warburg Class Reference

Warburg element (semi-infinite linear diffusion), model character w. More...

#include <warburg.h>

Inherits eis::Componant.

Collaboration diagram for eis::Warburg:
Collaboration graph

Public Member Functions

 Warburg (std::string paramStr, size_t count=10, bool defaultToRange=false)
 Warburg (fvalue a=2e4)
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

Warburg element (semi-infinite linear diffusion), model character w.

Z(omega) = A (1 - j) / sqrt(omega)
= A / sqrt(omega) - j A / sqrt(omega)
Re(Z) = Im(-Z) a straight line of slope 1 in the Nyquist plot
phase exactly -45 degrees at every frequency

Parameters: w{A}

  • A : Warburg coefficient in Ohm s^-1/2

This is the diffusion impedance alone: it carries no charge-transfer resistance and no double-layer capacitance, so a finite-length diffusion arc needs a w in parallel with an r, and a finite-length (Warburg short/long) element needs a transmission line t or o.

Convention note: A here is the coefficient sigma used by most texts, Z = sigma omega^-1/2 (1 - j). Tools that fold the (1 - j) into the coefficient or that use 2 sigma instead will disagree with A by a factor of 2 or sqrt(2); compare the printed spectrum rather than the number when moving a fit between programs.

Equivalent to a CPE with alpha = 0.5 and Q = 1 / (A sqrt(2)), so the two are interchangeable in a circuit; see eis::Model::getEquivalentParameterPermutations().

Member Function Documentation

◆ componantName()

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

Implements eis::Componant.

◆ execute()

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

Reimplemented from eis::Componant.

◆ getCode()

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

Reimplemented from eis::Componant.

◆ getComponantChar()

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

Implements eis::Componant.

◆ getDefaultParameters()

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

Reimplemented from eis::Componant.

◆ getTorchScript()

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

Reimplemented from eis::Componant.

◆ paramCount()

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

Reimplemented from eis::Componant.