IntegratorFEwInitialTest IntegratorFEwInitialTest Icon

Examples.IntegratorFEwInitialTest

Usage

DiscreteComponents.Examples.IntegratorFEwInitialTest()

Behavior

Behavior of this component cannot be rendered because it includes path variables.

Source

test component IntegratorFEwInitialTest
  integrator = DiscreteComponents.Examples.IntegratorFEwInitialSimpler(dt = 0.05) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 370, "y1": 450, "x2": 470, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  cosine = BlockComponents.Cosine(amplitude = 1, frequency = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -130, "y1": 450, "x2": -30, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  derivative = DiscreteComponents.Examples.DirectDerivative() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 40, "y1": 450, "x2": 140, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  terminator = BlockComponents.Terminator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 540, "y1": 450, "x2": 640, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  periodicsampler = DiscreteComponents.PeriodicSampler(dt = 0.05) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 200, "y1": 450, "x2": 300, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  constant1 = BlockComponents.Constant(k = 0) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 200, "y1": 290, "x2": 300, "y2": 390, "rot": 0}
      },
      "tags": []
    }
  }
  constant2 = BlockComponents.Constant(k = 0) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 200, "y1": 140, "x2": 300, "y2": 240, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(cosine.y, derivative.u) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(integrator.y, terminator.u) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(derivative.y, periodicsampler.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
  connect(periodicsampler.y, integrator.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
  connect(constant1.y, integrator.ic) {
    "Dyad": {
      "renderStyle": "standard",
      "edges": [{"S": 1, "M": [{"x": 337.5, "y": 340}, {"x": 337.5, "y": 475}], "E": 2}]
    }
  }
  connect(constant2.y, integrator.reset) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 350, "y": 190}, {"x": 350, "y": 457}], "E": 2}],
      "renderStyle": "standard"
    }
  }
metadata {"Dyad": {"doc": {"behavior": false}}}
end
Flattened Source
test component IntegratorFEwInitialTest
  integrator = DiscreteComponents.Examples.IntegratorFEwInitialSimpler(dt = 0.05) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 370, "y1": 450, "x2": 470, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  cosine = BlockComponents.Cosine(amplitude = 1, frequency = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -130, "y1": 450, "x2": -30, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  derivative = DiscreteComponents.Examples.DirectDerivative() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 40, "y1": 450, "x2": 140, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  terminator = BlockComponents.Terminator() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 540, "y1": 450, "x2": 640, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  periodicsampler = DiscreteComponents.PeriodicSampler(dt = 0.05) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 200, "y1": 450, "x2": 300, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  constant1 = BlockComponents.Constant(k = 0) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 200, "y1": 290, "x2": 300, "y2": 390, "rot": 0}
      },
      "tags": []
    }
  }
  constant2 = BlockComponents.Constant(k = 0) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 200, "y1": 140, "x2": 300, "y2": 240, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(cosine.y, derivative.u) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(integrator.y, terminator.u) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(derivative.y, periodicsampler.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
  connect(periodicsampler.y, integrator.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
  connect(constant1.y, integrator.ic) {
    "Dyad": {
      "renderStyle": "standard",
      "edges": [{"S": 1, "M": [{"x": 337.5, "y": 340}, {"x": 337.5, "y": 475}], "E": 2}]
    }
  }
  connect(constant2.y, integrator.reset) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 350, "y": 190}, {"x": 350, "y": 457}], "E": 2}],
      "renderStyle": "standard"
    }
  }
metadata {"Dyad": {"doc": {"behavior": false}}}
end


Test Cases

No test cases defined.