Scicos Block
fr - eng

##
Electrical variable resistor

### Contents

- Electrical variable resistor
  - Description
  - Default properties
  - Interfacing function
  - Modelica model

### Description

This component represents a variable ohmic resistor. The resistance ( ) is controlled via an explicit input port.

### Default properties

- always active: no
- direct-feedthrough: yes
- zero-crossing: no
- mode: no
- number/sizes of inputs: 2 / 1 1
- number/sizes of outputs: 1 / 1
- number/sizes of activation inputs: 0 /
- number/sizes of activation outputs: 0 /
- continuous-time state: no
- discrete-time state: no
- name of modelica function: VariableResistor

### Interfacing function

`VariableResistor.sci`

### Modelica model

    class VariableResistor
    	Pin p, n;
    	Real R "Resistance";
    equation
    	R*p.i = p.v - n.v;
    	p.i = -n.i;
    end VariableResistor;