Skip to content

Allow setting the viscosity in the creeping flow model (#102) - #109

Merged
nikoscham merged 1 commit into
mainfrom
feature/allow-setting-the-viscosity-in-the-creeping-flow-model
Oct 30, 2026
Merged

nikoscham merged 1 commit into
mainfrom
feature/allow-setting-the-viscosity-in-the-creeping-flow-model

Conversation

@nikoscham

Copy link
Copy Markdown
Member

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 #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 #102
@nikoscham nikoscham added this to the 0.3.0 milestone Oct 30, 2026
@nikoscham nikoscham self-assigned this Oct 30, 2026
@nikoscham nikoscham linked an issue Oct 30, 2026 that may be closed by this pull request
@nikoscham
nikoscham merged commit b1ab4f9 into main Oct 30, 2026
2 checks passed
@nikoscham
nikoscham deleted the feature/allow-setting-the-viscosity-in-the-creeping-flow-model branch October 30, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow setting the viscosity in the creeping flow model

1 participant