feat: add xml-cst package and pscad microgrid example with associated… · modelscript/modelscript@e2e5aba · GitHub
Skip to content

Commit e2e5aba

Browse files
committed
feat: add xml-cst package and pscad microgrid example with associated analysis and solver modules
1 parent eef9e3c commit e2e5aba

65 files changed

Lines changed: 175094 additions & 203 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 223 additions & 0 deletions

‎apps/ide/src/build-static.ts‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,15 @@ const landingHtml = `<!DOCTYPE html>
336336
border-color: rgba(16, 185, 129, 0.9);
337337
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 28px rgba(16, 185, 129, 0.28);
338338
}
339+
.workspace-tile.pscad-tile {
340+
background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(59, 130, 246, 0.1) 100%);
341+
border-color: rgba(245, 158, 11, 0.45);
342+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(245, 158, 11, 0.12);
343+
}
344+
.workspace-tile.pscad-tile:hover {
345+
border-color: rgba(245, 158, 11, 0.9);
346+
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 28px rgba(245, 158, 11, 0.28);
347+
}
339348
.workspace-tile.bouncing-ball-tile {
340349
background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(168, 85, 247, 0.1) 100%);
341350
border-color: rgba(236, 72, 153, 0.4);
@@ -374,6 +383,15 @@ const landingHtml = `<!DOCTYPE html>
374383
background-color: #10b981;
375384
box-shadow: 0 0 8px #10b981;
376385
}
386+
.workspace-badge.pscad-badge {
387+
background: rgba(245, 158, 11, 0.15);
388+
color: #fbbf24;
389+
border-color: rgba(245, 158, 11, 0.35);
390+
}
391+
.badge-dot.pscad-dot {
392+
background-color: #fbbf24;
393+
box-shadow: 0 0 8px #fbbf24;
394+
}
377395
.workspace-badge.ball-badge {
378396
background: rgba(236, 72, 153, 0.15);
379397
color: #f43f5e;
@@ -418,6 +436,11 @@ const landingHtml = `<!DOCTYPE html>
418436
border-color: rgba(16, 185, 129, 0.25);
419437
color: #10b981;
420438
}
439+
.workspace-icon.pscad-icon {
440+
background: rgba(245, 158, 11, 0.1);
441+
border-color: rgba(245, 158, 11, 0.25);
442+
color: #fbbf24;
443+
}
421444
.workspace-icon.ball-icon {
422445
background: rgba(236, 72, 153, 0.1);
423446
border-color: rgba(236, 72, 153, 0.25);
@@ -455,6 +478,10 @@ const landingHtml = `<!DOCTYPE html>
455478
background: linear-gradient(135deg, #059669, #0284c7);
456479
box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
457480
}
481+
.workspace-btn.pscad-btn {
482+
background: linear-gradient(135deg, #d97706, #2563eb);
483+
box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
484+
}
458485
.workspace-btn.ball-btn {
459486
background: linear-gradient(135deg, #e11d48, #9333ea);
460487
box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
@@ -618,6 +645,27 @@ const landingHtml = `<!DOCTYPE html>
618645
</div>
619646
</a>
620647
648+
<a href="/vscode/workbench/#memfs:pscad-microgrid" class="workspace-tile pscad-tile">
649+
<div class="workspace-header">
650+
<span class="workspace-badge pscad-badge"><span class="badge-dot pscad-dot"></span> Power Grid &amp; EMT</span>
651+
<span class="workspace-tag">PSCAD &bull; IEEE 2800-2022 &bull; COMTRADE &bull; Modelica</span>
652+
</div>
653+
<div class="workspace-body">
654+
<div class="workspace-icon pscad-icon">
655+
<svg viewBox="0 0 24 24" width="32" height="32" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
656+
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>
657+
</svg>
658+
</div>
659+
<div class="workspace-text">
660+
<div class="workspace-title">PSCAD Microgrid &amp; IBR Workspace</div>
661+
<div class="workspace-desc">230 kV transmission microgrid with Inverter-Based Resource (IBR) solar interconnection, Dommel companion EMT simulation, automated IEEE 2800-2022 grid-code auditing, COMTRADE waveforms, and Modelica/SSP co-simulation.</div>
662+
</div>
663+
</div>
664+
<div class="workspace-footer">
665+
<span class="workspace-btn pscad-btn">Launch PSCAD Microgrid &rarr;</span>
666+
</div>
667+
</a>
668+
621669
<a href="/vscode/workbench/#memfs:bouncing-ball" class="workspace-tile bouncing-ball-tile">
622670
<div class="workspace-header">
623671
<span class="workspace-badge ball-badge"><span class="badge-dot ball-dot"></span> Dynamic Simulation</span>

‎apps/ide/src/server.ts‎

Lines changed: 48 additions & 0 deletions

0 commit comments

Comments
 (0)