@@ -149,17 +149,11 @@ <h2 id="results"><a name="results"></a>Results</h2>
149
149
// Parse the mesh file first
150
150
const result = await importGmshQuadTri ( meshFile ) ;
151
151
152
+ console . log ( "GMSH Boundary Conditions:" , result . boundaryConditions ) ;
152
153
console . log ( "GMSH Boundary Elements:" , result . boundaryElements ) ;
153
-
154
- // Fix nodal numbering format for the solver
155
- if ( result . nodalNumbering . quadElements && result . nodalNumbering . quadElements . length > 0 ) {
156
- result . nodalNumbering = result . nodalNumbering . quadElements ;
157
- } else if (
158
- result . nodalNumbering . triangleElements &&
159
- result . nodalNumbering . triangleElements . length > 0
160
- ) {
161
- result . nodalNumbering = result . nodalNumbering . triangleElements ;
162
- }
154
+ console . log ( "GMSH Nodal Numbering:" , result . nodalNumbering ) ;
155
+ console . log ( "x Coordinates:" , result . nodesXCoordinates ) ;
156
+ console . log ( "y Coordinates:" , result . nodesYCoordinates ) ;
163
157
164
158
// Define mesh configuration with the parsed result
165
159
gmshModel . setMeshConfig ( {
@@ -169,10 +163,10 @@ <h2 id="results"><a name="results"></a>Results</h2>
169
163
} ) ;
170
164
171
165
// Define boundary conditions using Gmsh physical group tags
172
- gmshModel . addBoundaryCondition ( "1 " , [ "constantTemp" , 200 ] ) ; // bottom boundary
173
- gmshModel . addBoundaryCondition ( "4 " , [ "symmetry" ] ) ; // left boundary
174
- gmshModel . addBoundaryCondition ( "3 " , [ "convection " , 1 , 20 ] ) ; // top boundary
175
- gmshModel . addBoundaryCondition ( "2 " , [ "constantTemp" , 200 ] ) ; // right boundary
166
+ gmshModel . addBoundaryCondition ( "0 " , [ "constantTemp" , 200 ] ) ; // bottom boundary
167
+ gmshModel . addBoundaryCondition ( "1 " , [ "constantTemp" , 200 ] ) ; // right boundary
168
+ gmshModel . addBoundaryCondition ( "2 " , [ "constantTemp " , 100 ] ) ; // top boundary
169
+ gmshModel . addBoundaryCondition ( "3 " , [ "symmetry" ] ) ; // left boundary
176
170
177
171
console . log ( "GMSH Boundary Conditions:" , gmshModel . boundaryConditions ) ;
178
172
0 commit comments