Skip to content

Optional valve-state freezing for piecewise valves to prevent Newton cycling with 3D-0D coupling #228

Description

@dseyler

Problem

The current piecewise valve implementation allows the valve state to flip between 3D newton iterations, leading to Newton cycling and divergence. For GenBC, we fixed this by freezing the valve state at the beginning of each 3D timestep according to the previous timestep's pressure state. While this does lead to occasional pressure/flow spikes at transitions, this is avoidable with a sufficiently small time step and seems to be the simplest solution to the valve cycling problem.

Solution

I have been implementing the feature in this branch. Let me know your thoughts if there would be a better way to solve this problem.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions