Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
TIX_FILE=$(find .stack-work -name 'jbeam-edit-test.tix')
COVERAGE=$(stack hpc report "$TIX_FILE" 2>&1 | grep "expressions used" | awk '{print $1}' | sed 's/%//')
echo "Coverage: $COVERAGE"
if [[ $COVERAGE -lt 80 ]]; then
if [[ $COVERAGE -lt 70 ]]; then
echo "coverage too low"
exit 1
fi
Expand Down
196 changes: 99 additions & 97 deletions examples/transformed_jbeam/suspension.jbeam
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@
// Middle side
["rlm0", 0.053, -2.09, 0.269],
["rlm1", 0.053, -2.095, 0.319],
["rlm2", 0.053, -1.314, 0.382],
["rlm3", 0.053, 0.002, 0.182],
["rlm4", 0.053, 0.002, 0.233],
["rlm5", 0.053, -0.024, 0.578],
["rlm6", 0.053, 1.152, 0.565],
["rlm7", 0.053, 1.121, 0.628],
["rlm8", 0.053, 1.71, 0.565],
["rlm9", 0.053, 2.284, 0.37],
["rlm10", 0.053, 2.284, 0.441],
["rlm2", 0.053, 0.002, 0.182],
["rlm3", 0.053, 0.002, 0.233],
["rlm4", 0.053, 1.152, 0.565],
["rlm5", 0.053, 1.121, 0.628],
["rlm6", 0.053, 2.284, 0.37],
["rlm7", 0.053, 2.284, 0.441],

// Right side
["rlr0", -0.417, -2.093, 0.268],
Expand All @@ -67,7 +64,12 @@
["rlr18", -0.446, 1.654, 0.359],
["rlr19", -0.446, 1.679, 0.448],
["rlr20", -0.451, 2.284, 0.364],
["rlr21", -0.451, 2.284, 0.447]
["rlr21", -0.451, 2.284, 0.447],

// Support nodes
["rlsm", 0.053, -1.314, 0.382],
["rlsm1", 0.053, -0.024, 0.578],
["rlsm2", 0.053, 1.71, 0.565]
],

// --Beams--
Expand Down Expand Up @@ -113,23 +115,23 @@
["rlr6", "rlr8"],
["rlr9", "rlr6"],
["rlr7", "rlr11"],
["rlr9", "rlm3"],
["rlm4", "rlm3"],
["rlm4", "rlr11"],
["rlr9", "rlm2"],
["rlm3", "rlm2"],
["rlm3", "rlr11"],
["rll11", "rll7"],
["rll8", "rll6"],
["rll6", "rll9"],
["rlr10", "rlr11"],
["rlr8", "rlr12"],
["rlr10", "rlr7"],
["rll8", "rlm3"],
["rll8", "rlm2"],
["rll13", "rll11"],
["rlr8", "rlr10"],
["rlr12", "rlr13"],
["rll12", "rll13"],
["rlr13", "rlr10"],
["rll12", "rll8"],
["rlm4", "rll10"],
["rlm3", "rll10"],
["rlr12", "rlr9"],
["rll9", "rll11"],
["rll13", "rll10"],
Expand All @@ -149,29 +151,29 @@
["rll19", "rll17"],
["rll13", "rll15"],
["rll14", "rll12"],
["rll20", "rlm9"],
["rlm10", "rll21"],
["rll20", "rlm6"],
["rlm7", "rll21"],
["rll21", "rll19"],
["rll20", "rll21"],
["rll17", "rll15"],
["rll16", "rll18"],
["rll16", "rll17"],
["rlr16", "rlr18"],
["rlr14", "rlr15"],
["rlr15", "rlm7"],
["rlm6", "rlm7"],
["rlr15", "rlm5"],
["rlm4", "rlm5"],
["rlr20", "rlr21"],
["rlm10", "rlr21"],
["rlm9", "rlm10"],
["rlm7", "rlr21"],
["rlm6", "rlm7"],
["rlr18", "rlr20"],
["rlr21", "rlr19"],
["rlr17", "rlr15"],
["rlr20", "rlm9"],
["rll15", "rlm7"],
["rlm6", "rll14"],
["rlr20", "rlm6"],
["rll15", "rlm5"],
["rlm4", "rll14"],
["rlr18", "rlr19"],
["rlr16", "rlr17"],
["rlm6", "rlr14"],
["rlm4", "rlr14"],
["rlr14", "rlr12"],
["rlr19", "rlr17"],
["rll18", "rll20"],
Expand Down Expand Up @@ -205,21 +207,21 @@
["rlr7", "rlr8"],
["rlr7", "rlr9"],
["rlr6", "rlr11"],
["rlr11", "rlm3"],
["rlr9", "rlm4"],
["rlr11", "rlm2"],
["rlr9", "rlm3"],
["rll13", "rll9"],
["rll6", "rll11"],
["rll7", "rll8"],
["rlr12", "rlr10"],
["rll12", "rll11"],
["rll10", "rlm3"],
["rll10", "rlm2"],
["rlr12", "rlr11"],
["rlr6", "rlr10"],
["rlr13", "rlr8"],
["rlr10", "rlr9"],
["rll12", "rll10"],
["rlr13", "rlr9"],
["rll8", "rlm4"],
["rll8", "rlm3"],
["rll9", "rll10"],
["rlr8", "rlr11"],
["rll13", "rll8"],
Expand All @@ -230,7 +232,7 @@
["rlr21", "rlr18"],
["rlr12", "rlr15"],
["rlr15", "rlr16"],
["rll21", "rlm9"],
["rll21", "rlm6"],
["rll13", "rll14"],
["rll12", "rll15"],
["rll19", "rll16"],
Expand All @@ -239,77 +241,77 @@
["rll20", "rll19"],
["rll14", "rll17"],
["rll15", "rll16"],
["rll15", "rlm6"],
["rll15", "rlm4"],
["rlr13", "rlr14"],
["rlr14", "rlm7"],
["rlr15", "rlm6"],
["rlr20", "rlm10"],
["rlr21", "rlm9"],
["rlr14", "rlm5"],
["rlr15", "rlm4"],
["rlr20", "rlm7"],
["rlr21", "rlm6"],
["rlr18", "rlr17"],
["rlr19", "rlr16"],
["rlr14", "rlr17"],
["rll14", "rlm7"],
["rll20", "rlm10"],
["rll14", "rlm5"],
["rll20", "rlm7"],
["rll18", "rll17"],

// Support beams

// Front end
{"beamDeform" : 19000.0},
["rll2", "rlm2"],
["rlr2", "rlm2"],
["rlm2", "rll0"],
["rll4", "rlm2"],
["rlm2", "rlr5"],
["rlr1", "rlm2"],
["rll1", "rlm2"],
["rlr4", "rlm2"],
["rlm0", "rlm2"],
["rlm2", "rlr0"],
["rlm2", "rll3"],
["rlm2", "rlr3"],
["rlm2", "rlm1"],
["rlm2", "rll5"],
["rll2", "rlsm"],
["rlr2", "rlsm"],
["rlsm", "rll0"],
["rll4", "rlsm"],
["rlsm", "rlr5"],
["rlr1", "rlsm"],
["rll1", "rlsm"],
["rlr4", "rlsm"],
["rlm0", "rlsm"],
["rlsm", "rlr0"],
["rlsm", "rll3"],
["rlsm", "rlr3"],
["rlsm", "rlm1"],
["rlsm", "rll5"],

// Middle
{"beamDeform" : 11000.0},
["rlr11", "rlm5"],
["rlr9", "rlm5"],
["rlm3", "rlm5"],
["rll10", "rlm5"],
["rll9", "rlm5"],
["rlm5", "rll7"],
["rlm5", "rll6"],
["rll13", "rlm5"],
["rlr13", "rlm5"],
["rlr8", "rlm5"],
["rlm5", "rlm4"],
["rll11", "rlm5"],
["rll8", "rlm5"],
["rlm5", "rlr12"],
["rlr10", "rlm5"],
["rlm5", "rlr7"],
["rlm5", "rlr6"],
["rlm5", "rll12"],
["rlr11", "rlsm1"],
["rlr9", "rlsm1"],
["rlm2", "rlsm1"],
["rll10", "rlsm1"],
["rll9", "rlsm1"],
["rlsm1", "rll7"],
["rlsm1", "rll6"],
["rll13", "rlsm1"],
["rlr13", "rlsm1"],
["rlr8", "rlsm1"],
["rlsm1", "rlm3"],
["rll11", "rlsm1"],
["rll8", "rlsm1"],
["rlsm1", "rlr12"],
["rlr10", "rlsm1"],
["rlsm1", "rlr7"],
["rlsm1", "rlr6"],
["rlsm1", "rll12"],

// Rear end
{"beamDeform" : 19000.0},
["rlm8", "rlm9"],
["rlm8", "rlr21"],
["rlr18", "rlm8"],
["rlm8", "rll21"],
["rlm8", "rll17"],
["rlm8", "rlr19"],
["rll20", "rlm8"],
["rlm7", "rlm8"],
["rlm8", "rlr17"],
["rll18", "rlm8"],
["rlr20", "rlm8"],
["rlm10", "rlm8"],
["rll16", "rlm8"],
["rlm8", "rlm6"],
["rlr16", "rlm8"],
["rlm8", "rll19"],
["rlsm2", "rlm6"],
["rlsm2", "rlr21"],
["rlr18", "rlsm2"],
["rlsm2", "rll21"],
["rlsm2", "rll17"],
["rlsm2", "rlr19"],
["rll20", "rlsm2"],
["rlm5", "rlsm2"],
["rlsm2", "rlr17"],
["rll18", "rlsm2"],
["rlr20", "rlsm2"],
["rlm7", "rlsm2"],
["rll16", "rlsm2"],
["rlsm2", "rlm4"],
["rlr16", "rlsm2"],
["rlsm2", "rll19"],

// Front crush
{"beamDeform" : 8500.0},
Expand Down Expand Up @@ -352,20 +354,20 @@
["rlr19", "rlr18", "rlr17"],
["rlr20", "rlr18", "rlr19"],
["rlr21", "rlr20", "rlr19"],
["rlr21", "rlm9", "rlr20"],
["rlm9", "rlr21", "rlm10"],
["rlm10", "rll21", "rlm9"],
["rll21", "rll20", "rlm9"],
["rlr21", "rlm6", "rlr20"],
["rlm6", "rlr21", "rlm7"],
["rlm7", "rll21", "rlm6"],
["rll21", "rll20", "rlm6"],
["rll19", "rll18", "rll20"],
["rll21", "rll19", "rll20"],
["rll19", "rll17", "rll18"],
["rll18", "rll17", "rll16"],
["rll15", "rll14", "rll16"],
["rll17", "rll15", "rll16"],
["rll15", "rlm7", "rll14"],
["rlm7", "rlm6", "rll14"],
["rlm7", "rlr14", "rlm6"],
["rlr14", "rlm7", "rlr15"],
["rll15", "rlm5", "rll14"],
["rlm5", "rlm4", "rll14"],
["rlm5", "rlr14", "rlm4"],
["rlr14", "rlm5", "rlr15"],
["rll12", "rll14", "rll13"],
["rll14", "rll15", "rll13"],
["rll7", "rll6", "rll8"],
Expand All @@ -376,10 +378,10 @@
["rlr10", "rlr8", "rlr9"],
["rlr7", "rlr9", "rlr6"],
["rlr11", "rlr9", "rlr7"],
["rlm3", "rll8", "rll10"],
["rlr11", "rlr9", "rlm3"],
["rlm3", "rlm4", "rlr11"],
["rlm3", "rll10", "rlm4"],
["rlm2", "rll8", "rll10"],
["rlr11", "rlr9", "rlm2"],
["rlm2", "rlm3", "rlr11"],
["rlm2", "rll10", "rlm3"],
["rll12", "rll10", "rll8"],
["rll12", "rll13", "rll10"],
["rlr9", "rlr11", "rlr12"],
Expand Down
4 changes: 4 additions & 0 deletions jbeam-edit.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ library
other-modules:
Types
VertexExtraction
SupportVertex

build-depends: yaml

Expand Down Expand Up @@ -193,7 +194,10 @@ test-suite jbeam-edit-test
build-tool-depends: hspec-discover:hspec-discover
hs-source-dirs: test
other-modules:
Core.NodeCursorSpec
Core.NodePathSpec
Core.NodeSpec
Formatting.RulesSpec
FormattingSpec
Parsing.DSLSpec
Parsing.JbeamSpec
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ library:
- condition: flag(transformation)
source-dirs: [src-extra/transformation]
exposed-modules: [Transformation, Config]
other-modules: [Types, VertexExtraction]
other-modules: [Types, VertexExtraction, SupportVertex]
dependencies: [yaml]
- condition: os(windows) && flag(windows-example-paths)
cpp-options: -DWINDOWS_EXAMPLE_PATHS
Expand Down
Loading
Loading