File size: 1,880 Bytes
b95e413
 
 
 
2bb444a
 
 
 
b95e413
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
    "States": {
        "format": "ModECI MDF v0.4",
        "generating_application": "Python modeci-mdf v0.4.11",
        "metadata": {
            "preferred_duration": 10,
            "preferred_dt": 0.01
        },
        "graphs": {
            "state_example": {
                "nodes": {
                    "counter_node": {
                        "parameters": {
                            "increment": {
                                "value": 1
                            },
                            "count": {
                                "value": "count + increment"
                            }
                        },
                        "output_ports": {
                            "out_port": {
                                "value": "count"
                            }
                        }
                    },
                    "sine_node": {
                        "parameters": {
                            "amp": {
                                "value": 3
                            },
                            "period": {
                                "value": 0.4
                            },
                            "level": {
                                "default_initial_value": 0,
                                "time_derivative": "6.283185 * rate / period"
                            },
                            "rate": {
                                "default_initial_value": 1,
                                "time_derivative": "-1 * 6.283185 * level / period"
                            }
                        },
                        "output_ports": {
                            "out_port": {
                                "value": "amp * level"
                            }
                        }
                    }
                }
            }
        }
    }
}