Repository navigation
Commit 8c73335
authored
solve() now also returns `fields` for models with more than one unknown per node, each a Float64Array with one value per mesh node:
- creeping flow: velocityMagnitude, u, v, p (the pressure, solved at the corner nodes, is interpolated linearly to the mid-side and centre nodes)
- Euler–Bernoulli beam: w, theta
The plotting functions take a `field` option (plotSolution and plotInterpolatedSolution in the options argument, the vtk.js functions in renderOptions) and default to velocityMagnitude and w, so the result of solve() can be plotted directly. solutionVector is unchanged, and FEAScriptWorker.solve() passes the fields through.
The private _creepingFlowMetadata and _eulerBernoulliBeamMetadata properties are removed.
Tests: check the fields against the solution vector in the creeping flow
and beam regression tests. Examples: use the fields.
Closes #106
1 parent 83f2917 commit 8c73335
19 files changed
Lines changed: 223 additions & 50 deletions
File tree
- dist
- examples
- creepingFlowScript/lidDrivenCavity2DCreepingFlow
- eulerBernoulliBeamScript/clampedSpringSupportedBeam1D
- src
- physics
- visualization
- workers
- tests/regression
- eulerBernoulliBeam
- lidDrivenCavity2DCreepingFlow
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 | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 48 | + | |
53 | 49 | | |
54 | | - | |
| 50 | + | |
55 | 51 | | |
56 | | - | |
| 52 | + | |
57 | 53 | | |
58 | 54 | | |
0 commit comments