LIBRARY
Examples.Integrator.IntegratorFEwInitialTest ​
Usage ​
DiscreteComponents.Examples.Integrator.IntegratorFEwInitialTest()
Behavior ​
Behavior of this component cannot be rendered because it includes path variables.
Source ​
dyad
test component IntegratorFEwInitialTest
integrator = DiscreteComponents.Examples.Integrator.IntegratorFEwInitialSimpler(dt = 0.05) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 370, "y1": 450, "x2": 470, "y2": 550, "rot": 0}
},
"tags": []
}
}
cosine = BlockComponents.Sources.Cosine(amplitude = 1, frequency = 1) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -130, "y1": 450, "x2": -30, "y2": 550, "rot": 0}
},
"tags": []
}
}
derivative = DiscreteComponents.Examples.Integrator.DirectDerivative() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 40, "y1": 450, "x2": 140, "y2": 550, "rot": 0}
},
"tags": []
}
}
terminator = BlockComponents.Routing.Terminator() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 540, "y1": 450, "x2": 640, "y2": 550, "rot": 0}
},
"tags": []
}
}
sampler = DiscreteComponents.Sampler() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 200, "y1": 450, "x2": 300, "y2": 550, "rot": 0}
},
"tags": []
}
}
periodicclock = DiscreteComponents.PeriodicClock(dt = 0.05) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 200, "y1": 600, "x2": 300, "y2": 700, "rot": 0}
},
"tags": []
}
}
constant1 = BlockComponents.Sources.Constant(k = 0) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 200, "y1": 290, "x2": 300, "y2": 390, "rot": 0}
},
"tags": []
}
}
constant2 = BlockComponents.Sources.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, sampler.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
connect(sampler.y, integrator.u, periodicclock.y) {"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}}}
endFlattened Source
dyad
test component IntegratorFEwInitialTest
integrator = DiscreteComponents.Examples.Integrator.IntegratorFEwInitialSimpler(dt = 0.05) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 370, "y1": 450, "x2": 470, "y2": 550, "rot": 0}
},
"tags": []
}
}
cosine = BlockComponents.Sources.Cosine(amplitude = 1, frequency = 1) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": -130, "y1": 450, "x2": -30, "y2": 550, "rot": 0}
},
"tags": []
}
}
derivative = DiscreteComponents.Examples.Integrator.DirectDerivative() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 40, "y1": 450, "x2": 140, "y2": 550, "rot": 0}
},
"tags": []
}
}
terminator = BlockComponents.Routing.Terminator() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 540, "y1": 450, "x2": 640, "y2": 550, "rot": 0}
},
"tags": []
}
}
sampler = DiscreteComponents.Sampler() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 200, "y1": 450, "x2": 300, "y2": 550, "rot": 0}
},
"tags": []
}
}
periodicclock = DiscreteComponents.PeriodicClock(dt = 0.05) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 200, "y1": 600, "x2": 300, "y2": 700, "rot": 0}
},
"tags": []
}
}
constant1 = BlockComponents.Sources.Constant(k = 0) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 200, "y1": 290, "x2": 300, "y2": 390, "rot": 0}
},
"tags": []
}
}
constant2 = BlockComponents.Sources.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, sampler.u) {"Dyad": {"renderStyle": "standard", "edges": [{"S": 1, "E": 2, "M": []}]}}
connect(sampler.y, integrator.u, periodicclock.y) {"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}}}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses
Tests