File size: 3,982 Bytes
9410134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{   
    "SwitchedRLC_Circuit": {
        
        "format": "ModECI MDF v0.4",
        "generating_application": "Python modeci-mdf v0.4.10",
        "metadata": {
            "preferred_duration": 2,
            "preferred_dt": 0.001
        },
        "graphs": {
         
            "SwitchedRLC_Circuit": {
                "nodes": {
                   
                    "V": {
                        "parameters": {
                            "Vs": {
                                "conditions": [
                                    {
                                        "id": "off",
                                        "test": "time<0.5",
                                        "value": "0"
                                    },
                                    {
                                        "id": "on",
                                        "test": "time>=0.5",
                                        "value": 0.1
                                    }
                                ]
                            },
                            "R": {
                                "metadata": {
                                    "description": "Resistance in Ohms"
                                },
                                "value": 100
                            },
                            "L": {
                                "metadata": {
                                    "description": "Inductance in Henrys"
                                },
                                "value": 1
                            },
                            "C": {
                                "metadata": {
                                    "description": "Capacitance in Farads"
                                },
                                "value": 0.001
                            },
                            "time": {
                                "default_initial_value": 0,
                                "time_derivative": "1"
                            },
                            "V": {
                                "metadata": {
                                    "description": "Voltage across the circuit",
                                    "plot":"True"
                                },
                                "default_initial_value": 0,
                                "time_derivative": "i_C /C"
                            },
                            "i_R": {
                                "metadata": {
                                    "description": "Current through the resistor",
                                    "plot":"True"
                                },
                                "value": "V / R"
                            },
                            "i_L": {
                                "metadata": {
                                    "description": "Current through the inductor",
                                    "plot":"True"
                                },
                                "default_initial_value": 0,
                                "time_derivative": "(Vs - V)/L"
                            },
                            "i_C": {
                                "metadata": {
                                    "description": "Current through the capacitor",
                                    "plot":"True"
                                },
                                "value": "i_L-i_R"
                            }
                        },
                        "output_ports": {
                            "V_out": {
                                "value": "V"
                            },
                            "i_L_out": {
                                "value": "i_L"
                            }
                            
                        }
                    }
                }
                
            }
            
            
        }
    }
}