ssmodels

buzz.ssmodels

Functions

addSS([namespace, dt, sub, outSufx])

Create a state space model for an adder.

delayDrive([namespace, Sp, delay, order, ...])

delaySS([namespace, delay, order, numins, ...])

Create a state space model for the delay block.

nullSS([namespace, gain])

Create a state space model for the null block.

Details

addSS(namespace='T', dt=0.0001, sub=False, outSufx=None)[source]

Create a state space model for an adder. It has two inputs and one output.

Parameters:
  • namespace (string) – The namespace to use for the model i.e. the letter that comes at the beginning of the input and output names. Defaults to ‘T’.

  • dt (float, optional) – The time step. Defaults to 1e-4.

  • sub (bool, optional) – If true, the model will be a subtractor. Defaults to False.

Returns:

Returns the local name space for the function including the state space model as mod, input output dictionary as iod, and namespace.

Return type:

wield.bunch

delayDrive(namespace='D', Sp=None, delay=0.001, order=1, numins=1, dt=0.0001)[source]
delaySS(namespace='D', delay=0.001, order=1, numins=1, dt=0.0001, asZPK=False)[source]

Create a state space model for the delay block. It has one input and one output.

Parameters:
  • namespace (str, optional) – The namespace for the delay block. Defaults to ‘D’.

  • delay (_type_, optional) – The delay in seconds. Defaults to 1e-3.

  • order (int, optional) – Order of the filter. Defaults to 1.

  • numins (int, optional) – Number of inputs. Defaults to 1.

  • dt (_type_, optional) – The discretization time step. Defaults to 1e-4.

  • asZPK (bool, optional) – If true, the function will return the wield SISO ZPK representation of the delay block. Defaults to False.

Returns:

Returns the local name space for the function including the state space model as mod, input output dictionary as iod, and namespace.

Return type:

wield.bunch

nullSS(namespace='N', gain=1)[source]

Create a state space model for the null block. It has one input and one output.

Parameters:
  • namespace (str, optional) – The namespace to use for the model i.e. the letter that comes at the beginning of the input and output names. Defaults to ‘N’.

  • gain (float, optional) – The gain of the null block. Defaults to 1.

Returns:

Returns Wield MIMO statespace

Return type:

MIMO Statespace