Skip to content

Commit 1af81fa

Browse files
committed
Add creeping flow mesh error messages
1 parent fac66c6 commit 1af81fa

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎src/physics/creepingFlow.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,16 @@ export function assembleCreepingFlowMatrix(meshData, boundaryConditions) {
5858

5959
// Validate mesh configuration
6060
if (meshDimension !== "2D") {
61-
errorLog("Creeping flow solver requires a 2D mesh");
61+
errorLog(
62+
"Creeping flow requires a 2D mesh. For fully developed 1D channel flow (μ u″ = dp/dx), " +
63+
"use generalFormPDEScript or heatConductionScript.",
64+
);
6265
}
6366
if (elementOrder !== "quadratic") {
64-
errorLog("Creeping flow solver requires quadratic elements for Taylor-Hood (Q2-Q1 or P2-P1) formulation");
67+
errorLog(
68+
"Creeping flow requires quadratic elements (Taylor-Hood Q2-Q1 / P2-P1); set elementOrder: 'quadratic'. " +
69+
"Linear (equal-order) elements need stabilization, which is not yet supported.",
70+
);
6571
}
6672

6773
// Number of velocity nodes (Q2/P2) is the total number of nodes in the quadratic mesh

0 commit comments

Comments
 (0)