-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement GET DIRECT CONSTANTS for CSV (#86)
Fixes #83 Co-authored-by: Chris Campbell <[email protected]>
- Loading branch information
1 parent
b40e738
commit beedd4f
Showing
10 changed files
with
287 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
a, | ||
,2050 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
b, | ||
A1,1 | ||
A2,2 | ||
A3,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
c,C1,C2 | ||
B1,1,2 | ||
B2,3,4 | ||
B3,5,6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
a | ||
0 2050 | ||
b[B1] | ||
0 1 | ||
b[B2] | ||
0 2 | ||
b[B3] | ||
0 3 | ||
c[B1,C1] | ||
0 1 | ||
c[B1,C2] | ||
0 2 | ||
c[B2,C1] | ||
0 3 | ||
c[B2,C2] | ||
0 4 | ||
c[B3,C1] | ||
0 5 | ||
c[B3,C2] | ||
0 6 | ||
d[D1,B1,C1] | ||
0 1 | ||
d[D1,B1,C2] | ||
0 2 | ||
d[D1,B2,C1] | ||
0 3 | ||
d[D1,B2,C2] | ||
0 4 | ||
d[D1,B3,C1] | ||
0 5 | ||
d[D1,B3,C2] | ||
0 6 | ||
e[C1,B1] | ||
0 1 | ||
e[C1,B2] | ||
0 3 | ||
e[C1,B3] | ||
0 5 | ||
e[C2,B1] | ||
0 2 | ||
e[C2,B2] | ||
0 4 | ||
e[C2,B3] | ||
0 6 | ||
FINAL TIME | ||
0 1 | ||
INITIAL TIME | ||
0 0 | ||
SAVEPER | ||
0 1 | ||
1 1 | ||
TIME STEP | ||
0 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{UTF-8} | ||
DimB: B1, B2, B3 ~~| | ||
DimC: C1, C2 ~~| | ||
DimD: D1, D2 ~~| | ||
|
||
a = | ||
GET DIRECT CONSTANTS( | ||
'data/a.csv', | ||
',', | ||
'B2' | ||
) ~~~:SUPPLEMENTARY| | ||
|
||
b[DimB] = | ||
GET DIRECT CONSTANTS( | ||
'data/b.csv', | ||
',', | ||
'B2*' | ||
) ~~~:SUPPLEMENTARY| | ||
|
||
c[DimB, DimC] = | ||
GET DIRECT CONSTANTS( | ||
'data/c.csv', | ||
',', | ||
'B2' | ||
) ~~~:SUPPLEMENTARY| | ||
|
||
d[D1, DimB, DimC] = | ||
GET DIRECT CONSTANTS( | ||
'data/c.csv', | ||
',', | ||
'B2' | ||
) ~~~:SUPPLEMENTARY| | ||
|
||
e[DimC, DimB] = | ||
GET DIRECT CONSTANTS( | ||
'data/c.csv', | ||
',', | ||
'B2*' | ||
) ~~~:SUPPLEMENTARY| | ||
|
||
******************************************************** | ||
.Control | ||
********************************************************~ | ||
Simulation Control Parameters | ||
| | ||
|
||
INITIAL TIME = 0 ~~| | ||
FINAL TIME = 1 ~~| | ||
TIME STEP = 1 ~~| | ||
SAVEPER = TIME STEP ~~| | ||
|
||
\\\---/// Sketch information - do not modify anything except names | ||
V300 Do not put anything below this section - it will be ignored | ||
*View 1 | ||
$0-0-0,0,|0||0-0-0|0-0-0|0-0-0|0-0-0|0-0-0|0,0,100,0 | ||
///---\\\ | ||
:L<%^E!@ | ||
1: | ||
directconst.vdfx | ||
4:Tim | ||
e | ||
5:a[DimA] | ||
|
||
6 | ||
:A1 | ||
9:directconst | ||
19:100,0 | ||
24:0 | ||
25:1 | ||
26:1 | ||
15:0,0,0,0,0,0 | ||
27:0, | ||
34:0, | ||
42:0 | ||
72:0 | ||
3:0 95:0 | ||
96:0 77:0 78:0 93:0 | ||
94:0 | ||
92:0 | ||
91:0 | ||
90:0 | ||
87:0 | ||
75: | ||
43: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.