Repository navigation
Commit c869cc0
committed
Allow setting the viscosity in the creeping flow model (#102)
The creeping flow model takes the dynamic viscosity as a coefficient,
coefficientFunctions: { viscosity }, a positive number or a function of
(x, y) evaluated at every integration point. It defaults to 1, so
existing models give the same results.
Tests: check that a viscosity (number and function) leaves the lid-driven
cavity velocity unchanged and scales the pressure, and that a varying
viscosity gives the same solution through the worker. Examples: set the
viscosity in the lid-driven cavity.
Closes #1021 parent 8c73335 commit c869cc0
14 files changed
Lines changed: 79 additions & 17 deletions
File tree
- dist
- examples/creepingFlowScript/lidDrivenCavity2DCreepingFlow
- src
- physics
- tests
- regression/lidDrivenCavity2DCreepingFlow
- unit
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 | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
| |||
0 commit comments