Repository navigation
Commit 9ca5d48
authored
Linear elements used a 1-point Gauss rule per direction, which under-integrates the stiffness matrix of bilinear quadrilaterals (and the convection terms on their sides), so results converged slowly; on the NAFEMS T4 benchmark a 6 × 10 linear mesh gave 28.27 °C instead of 18.25 °C. Linear elements now use a 2-point rule per direction (exact up to degree 3), giving 17.95 °C on the same mesh.
Tests: the quadrature unit test checks exactness up to degree 3 for linear quadrilaterals, and the regression values of the linear cases (advection-diffusion 1D, heat conduction 2D fin, nonlinear reaction-diffusion 1D, solidification front 2D) are updated, with the reason in each README.
Closes #105
Add NAFEMS T4, Couette flow and cantilever beam examples
Node.js examples based on the verification tests, each printing the result next to its reference value:
- heatConduction2DNafemsT4: NAFEMS T4 benchmark (heat conduction with convection), temperature at point E against the 18.3 °C target (18.25 °C converged)
- couetteFlow2DCreepingFlow: Couette flow, against the exact linear velocity profile with zero pressure
- cantileverBeam1D: cantilever with a tip load, against the closed-form tip deflection and rotation
1 parent b1ab4f9 commit 9ca5d48
85 files changed
Lines changed: 330 additions & 108 deletions
File tree
- dist
- examples
- creepingFlowScript
- couetteFlow2DCreepingFlow
- lidDrivenCavity2DCreepingFlow
- eulerBernoulliBeamScript
- cantileverBeam1D
- clampedSpringSupportedBeam1D
- frontPropagationScript/solidificationFront2D
- generalFormPDEScript
- advectionDiffusion1D
- nonlinearReactionDiffusion1D
- heatConductionScript
- heatConduction1DWall
- heatConduction2DFin
- heatConduction2DNafemsT4
- src
- elements
- io
- linalg
- mesh
- physics
- solvers
- utilities
- visualization
- workers
- tests
- regression
- advectionDiffusion1D
- eulerBernoulliBeam
- heatConduction1DWall
- heatConduction2DFin
- lidDrivenCavity2DCreepingFlow
- nonlinearReactionDiffusion1D
- solidificationFront2D
- unit
- verification
- analytical
- creepingFlow2DCouette
- eulerBernoulliBeam1DCantilever
- frontPropagation1DPlanarFront
- frontPropagation2DPlanarFront
- heatConduction1DVaryingCoefficients
- heatConduction2DVaryingCoefficients
- benchmark/heatConduction2DNafemsT4
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| 49 | + | |
| 50 | + | |
42 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments