Skip to content

Commit 691eeb6

Browse files
committed
Update thermalBoundaryConditionsScript to adjust node indexing for boundary conditions
1 parent 6508eb1 commit 691eeb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/methods/thermalBoundaryConditionsScript.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,28 +118,28 @@ export class ThermalBoundaryConditions {
118118
gaussPoint1 = gaussPoints[0];
119119
gaussPoint2 = 0;
120120
firstNodeIndex = 0;
121-
lastNodeIndex = 2;
121+
lastNodeIndex = 3;
122122
nodeIncrement = 2;
123123
} else if (side === 1) {
124124
// Nodes at the left side of the reference element
125125
gaussPoint1 = 0;
126126
gaussPoint2 = gaussPoints[0];
127127
firstNodeIndex = 0;
128-
lastNodeIndex = 1;
128+
lastNodeIndex = 2;
129129
nodeIncrement = 1;
130130
} else if (side === 2) {
131131
// Nodes at the top side of the reference element
132132
gaussPoint1 = gaussPoints[0];
133133
gaussPoint2 = 1;
134134
firstNodeIndex = 1;
135-
lastNodeIndex = 3;
135+
lastNodeIndex = 4;
136136
nodeIncrement = 2;
137137
} else if (side === 3) {
138138
// Nodes at the right side of the reference element
139139
gaussPoint1 = 1;
140140
gaussPoint2 = gaussPoints[0];
141141
firstNodeIndex = 2;
142-
lastNodeIndex = 3;
142+
lastNodeIndex = 4;
143143
nodeIncrement = 1;
144144
}
145145
let basisFunctionsAndDerivatives = basisFunctionsData.getBasisFunctions(

0 commit comments

Comments
 (0)