Skip to content

Commit 19d114a

Browse files
Merge pull request #100 from festim-dev/refactoring
Refactoring backend (handle names and logic simplification)
2 parents 6340971 + ba69b35 commit 19d114a

File tree

7 files changed

+578
-364
lines changed

7 files changed

+578
-364
lines changed
Lines changed: 395 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,395 @@
1+
{
2+
"nodes": [
3+
{
4+
"id": "4",
5+
"type": "wall",
6+
"position": {
7+
"x": 358,
8+
"y": 240
9+
},
10+
"data": {
11+
"label": "wall 4",
12+
"D_0": "0.1",
13+
"E_D": "0",
14+
"n_vertices": "10",
15+
"surface_area": "",
16+
"temperature": "300",
17+
"thickness": "2"
18+
},
19+
"measured": {
20+
"width": 70,
21+
"height": 200
22+
},
23+
"selected": false,
24+
"dragging": false
25+
},
26+
{
27+
"id": "19",
28+
"type": "integrator",
29+
"position": {
30+
"x": 506,
31+
"y": 417
32+
},
33+
"data": {
34+
"label": "presure",
35+
"initial_value": "0",
36+
"reset_times": ""
37+
},
38+
"measured": {
39+
"width": 200,
40+
"height": 48
41+
},
42+
"selected": false,
43+
"dragging": false
44+
},
45+
{
46+
"id": "20",
47+
"type": "wall",
48+
"position": {
49+
"x": 797,
50+
"y": 244
51+
},
52+
"data": {
53+
"label": "wall 20",
54+
"D_0": "0.1",
55+
"E_D": "0",
56+
"n_vertices": "100",
57+
"surface_area": "",
58+
"temperature": "300",
59+
"thickness": "2"
60+
},
61+
"measured": {
62+
"width": 70,
63+
"height": 200
64+
},
65+
"selected": false,
66+
"dragging": false
67+
},
68+
{
69+
"id": "21",
70+
"type": "constant",
71+
"position": {
72+
"x": 867.040214603105,
73+
"y": 119.34307354934961
74+
},
75+
"data": {
76+
"label": "constant 21",
77+
"value": "0"
78+
},
79+
"measured": {
80+
"width": 206,
81+
"height": 54
82+
},
83+
"selected": false,
84+
"dragging": false
85+
},
86+
{
87+
"id": "22",
88+
"type": "scope",
89+
"position": {
90+
"x": 857.819281205265,
91+
"y": 634.6385624105301
92+
},
93+
"data": {
94+
"label": "Pressure scope",
95+
"labels": "",
96+
"sampling_rate": "",
97+
"t_wait": ""
98+
},
99+
"measured": {
100+
"width": 120,
101+
"height": 140
102+
},
103+
"selected": false,
104+
"dragging": false
105+
},
106+
{
107+
"id": "23",
108+
"type": "stepsource",
109+
"position": {
110+
"x": 214,
111+
"y": 121
112+
},
113+
"data": {
114+
"label": "stepsource 23",
115+
"amplitude": "1",
116+
"tau": "0.5"
117+
},
118+
"measured": {
119+
"width": 120,
120+
"height": 120
121+
},
122+
"selected": false,
123+
"dragging": false
124+
},
125+
{
126+
"id": "24",
127+
"type": "scope",
128+
"position": {
129+
"x": 983,
130+
"y": 351
131+
},
132+
"data": {
133+
"label": "scope 24",
134+
"labels": "",
135+
"sampling_rate": "",
136+
"t_wait": ""
137+
},
138+
"measured": {
139+
"width": 120,
140+
"height": 140
141+
},
142+
"selected": false,
143+
"dragging": false
144+
},
145+
{
146+
"id": "25",
147+
"type": "scope",
148+
"position": {
149+
"x": 470.81928120526504,
150+
"y": 512.6385624105301
151+
},
152+
"data": {
153+
"label": "Wall 1 scope",
154+
"labels": "",
155+
"sampling_rate": "",
156+
"t_wait": ""
157+
},
158+
"measured": {
159+
"width": 120,
160+
"height": 140
161+
},
162+
"selected": false,
163+
"dragging": false
164+
}
165+
],
166+
"edges": [
167+
{
168+
"id": "e4-19-from_flux_L",
169+
"source": "4",
170+
"target": "19",
171+
"sourceHandle": "flux_L",
172+
"targetHandle": null,
173+
"type": "smoothstep",
174+
"data": {},
175+
"style": {
176+
"strokeWidth": 2,
177+
"stroke": "#ECDFCC"
178+
},
179+
"markerEnd": {
180+
"type": "arrowclosed",
181+
"width": 20,
182+
"height": 20,
183+
"color": "#ECDFCC"
184+
},
185+
"selected": false
186+
},
187+
{
188+
"id": "e19-20-to_c_0",
189+
"source": "19",
190+
"target": "20",
191+
"sourceHandle": null,
192+
"targetHandle": "c_0",
193+
"type": "smoothstep",
194+
"data": {},
195+
"style": {
196+
"strokeWidth": 2,
197+
"stroke": "#ECDFCC"
198+
},
199+
"markerEnd": {
200+
"type": "arrowclosed",
201+
"width": 20,
202+
"height": 20,
203+
"color": "#ECDFCC"
204+
},
205+
"selected": false
206+
},
207+
{
208+
"id": "e20-19-from_flux_0",
209+
"source": "20",
210+
"target": "19",
211+
"sourceHandle": "flux_0",
212+
"targetHandle": null,
213+
"type": "smoothstep",
214+
"data": {},
215+
"style": {
216+
"strokeWidth": 2,
217+
"stroke": "#ECDFCC"
218+
},
219+
"markerEnd": {
220+
"type": "arrowclosed",
221+
"width": 20,
222+
"height": 20,
223+
"color": "#ECDFCC"
224+
},
225+
"selected": false
226+
},
227+
{
228+
"id": "e19-22",
229+
"source": "19",
230+
"target": "22",
231+
"sourceHandle": null,
232+
"targetHandle": null,
233+
"type": "smoothstep",
234+
"data": {},
235+
"style": {
236+
"strokeWidth": 2,
237+
"stroke": "#ECDFCC"
238+
},
239+
"markerEnd": {
240+
"type": "arrowclosed",
241+
"width": 20,
242+
"height": 20,
243+
"color": "#ECDFCC"
244+
},
245+
"selected": false
246+
},
247+
{
248+
"id": "e21-20-to_c_L",
249+
"source": "21",
250+
"target": "20",
251+
"sourceHandle": null,
252+
"targetHandle": "c_L",
253+
"type": "smoothstep",
254+
"data": {},
255+
"style": {
256+
"strokeWidth": 2,
257+
"stroke": "#ECDFCC"
258+
},
259+
"markerEnd": {
260+
"type": "arrowclosed",
261+
"width": 20,
262+
"height": 20,
263+
"color": "#ECDFCC"
264+
}
265+
},
266+
{
267+
"id": "e19-4-to_c_L",
268+
"source": "19",
269+
"target": "4",
270+
"sourceHandle": null,
271+
"targetHandle": "c_L",
272+
"type": "smoothstep",
273+
"data": {},
274+
"style": {
275+
"strokeWidth": 2,
276+
"stroke": "#ECDFCC"
277+
},
278+
"markerEnd": {
279+
"type": "arrowclosed",
280+
"width": 20,
281+
"height": 20,
282+
"color": "#ECDFCC"
283+
}
284+
},
285+
{
286+
"id": "e23-4-to_c_0",
287+
"source": "23",
288+
"target": "4",
289+
"sourceHandle": null,
290+
"targetHandle": "c_0",
291+
"type": "smoothstep",
292+
"data": {},
293+
"style": {
294+
"strokeWidth": 2,
295+
"stroke": "#ECDFCC"
296+
},
297+
"markerEnd": {
298+
"type": "arrowclosed",
299+
"width": 20,
300+
"height": 20,
301+
"color": "#ECDFCC"
302+
}
303+
},
304+
{
305+
"id": "e23-22",
306+
"source": "23",
307+
"target": "22",
308+
"sourceHandle": null,
309+
"targetHandle": null,
310+
"type": "smoothstep",
311+
"data": {},
312+
"style": {
313+
"strokeWidth": 2,
314+
"stroke": "#ECDFCC"
315+
},
316+
"markerEnd": {
317+
"type": "arrowclosed",
318+
"width": 20,
319+
"height": 20,
320+
"color": "#ECDFCC"
321+
},
322+
"selected": false
323+
},
324+
{
325+
"id": "e20-24-from_flux_L",
326+
"source": "20",
327+
"target": "24",
328+
"sourceHandle": "flux_L",
329+
"targetHandle": null,
330+
"type": "smoothstep",
331+
"data": {},
332+
"style": {
333+
"strokeWidth": 2,
334+
"stroke": "#ECDFCC"
335+
},
336+
"markerEnd": {
337+
"type": "arrowclosed",
338+
"width": 20,
339+
"height": 20,
340+
"color": "#ECDFCC"
341+
}
342+
},
343+
{
344+
"id": "e23-25",
345+
"source": "23",
346+
"target": "25",
347+
"sourceHandle": null,
348+
"targetHandle": null,
349+
"type": "smoothstep",
350+
"data": {},
351+
"style": {
352+
"strokeWidth": 2,
353+
"stroke": "#ECDFCC"
354+
},
355+
"markerEnd": {
356+
"type": "arrowclosed",
357+
"width": 20,
358+
"height": 20,
359+
"color": "#ECDFCC"
360+
}
361+
},
362+
{
363+
"id": "e4-25-from_flux_L",
364+
"source": "4",
365+
"target": "25",
366+
"sourceHandle": "flux_L",
367+
"targetHandle": null,
368+
"type": "smoothstep",
369+
"data": {},
370+
"style": {
371+
"strokeWidth": 2,
372+
"stroke": "#ECDFCC"
373+
},
374+
"markerEnd": {
375+
"type": "arrowclosed",
376+
"width": 20,
377+
"height": 20,
378+
"color": "#ECDFCC"
379+
}
380+
}
381+
],
382+
"nodeCounter": 26,
383+
"solverParams": {
384+
"dt": "0.1",
385+
"dt_min": "1e-6",
386+
"dt_max": "1.0",
387+
"Solver": "SSPRK22",
388+
"tolerance_fpi": "1e-6",
389+
"iterations_max": "100",
390+
"log": "true",
391+
"simulation_duration": "3",
392+
"extra_params": "{}"
393+
},
394+
"globalVariables": []
395+
}

0 commit comments

Comments
 (0)