Skip to content

Commit afc067f

Browse files
committed
Add if statement for 1D mesh dimension in thermal boundary conditions
1 parent a82167d commit afc067f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/methods/thermalBoundaryConditionsScript.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ export class ThermalBoundaryConditions {
146146
convectionHeatTranfCoeff,
147147
convectionExtTemp
148148
) {
149-
if (this.meshDimension === "2D") {
149+
if (this.meshDimension === "1D") {
150+
// 1D code
151+
} else if (this.meshDimension === "2D") {
150152
Object.keys(this.boundaryConditions).forEach((boundaryKey) => {
151153
if (this.boundaryConditions[boundaryKey][0] === "convection") {
152154
const convectionCoeff = convectionHeatTranfCoeff[boundaryKey];

0 commit comments

Comments
 (0)