Qucs-core  0.0.19
Data Structures | Variables
tswitch.cpp File Reference

time controlled switch class implementation More...

#include <iostream>
#include <cmath>
#include "component.h"
#include "tswitch.h"
Include dependency graph for tswitch.cpp:

Go to the source code of this file.

Data Structures

class  tswitch

Variables

 PROP_REQ []
 PROP_OPT []

Detailed Description

time controlled switch class implementation

Todo:
add a property to allow choosing the resistance profile (cubic spline, linear, abrupt)

Definition in file tswitch.cpp.


Variable Documentation

Initial value:
 {
  { "Ron", PROP_REAL, { 0, PROP_NO_STR }, PROP_POS_RANGE },
  { "Roff", PROP_REAL, { 1e12, PROP_NO_STR }, PROP_POS_RANGE },
  { "Temp", PROP_REAL, { 26.85, PROP_NO_STR }, PROP_MIN_VAL (K) },
  { "MaxDuration", PROP_REAL, { 1e-6, PROP_NO_STR }, PROP_MIN_VAL (10*NR_TINY) },
  { "Transition", PROP_STR, { PROP_NO_VAL, "spline" }, PROP_RNG_STR3 ("abrupt", "linear", "spline") },
  PROP_NO_PROP }

Definition at line 207 of file tswitch.cpp.

Initial value:
 {
  { "init", PROP_STR, { PROP_NO_VAL, "off" }, PROP_RNG_STR2 ("on", "off") },
  { "time", PROP_LIST, { 1e-9, PROP_NO_STR }, PROP_POS_RANGE },
  PROP_NO_PROP }

Definition at line 203 of file tswitch.cpp.