We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6104cc8 commit ec1427eCopy full SHA for ec1427e
src/mesh/meshGenerationScript.js
@@ -234,7 +234,11 @@ export class meshGeneration {
234
}
235
236
if (this.meshDimension === "1D") {
237
- console.log("Unsupported dimension or element order");
+ // Left boundary (element 0, side 0)
238
+ boundaryElements[0].push([0, 0]);
239
+
240
+ // Right boundary (last element, side 1)
241
+ boundaryElements[1].push([this.numElementsX - 1, 1]);
242
} else if (this.meshDimension === "2D") {
243
for (let elementIndexX = 0; elementIndexX < this.numElementsX; elementIndexX++) {
244
for (let elementIndexY = 0; elementIndexY < this.numElementsY; elementIndexY++) {
0 commit comments