File size: 2,108 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
{
    "NewtonCoolingModel": {
        "format": "ModECI MDF v0.4",
        "generating_application": "Python modeci-mdf v0.4.11",
        "metadata": {
            "preferred_duration": 100,
            "preferred_dt": 0.01
        },
        "graphs": {
            "NewtonCoolingModel": { 
                "nodes": {
                    "cool_node": {
                        "parameters": {
                            "cooling_coeff": {
                                "metadata": {
                                    "description": "Cooling coefficient in 1/s"
                                },
                                "value": 0.1
                            },
                            "T_a": {
                                "metadata": {
                                    "description": "Ambient temperature in degrees C"
                                },
                                "value": 20
                            },
                            "T_curr": {
                                "metadata": {
                                    "description": "Current temperature in degrees C"
                                },
                                "default_initial_value": 90,
                                "time_derivative": "dT_dt"
                            },
                            "dT_dt": {
                                "metadata": {
                                    "description": "Rate of change of temperature in degrees C/s"
                                },
                                "value": "-cooling_coeff*(T_curr - T_a)",
                                "default_initial_value": 0
                            }
                        },
                        "output_ports": {
                            "out_port": {
                                "value": "T_curr"
                            },
                            "out_port2": {
                                "value": "dT_dt"
                            }
                        }
                    }
                }
            }
        }
    }
}