Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichardsMechanics; Update mass lumping procedure. #2921

Merged
merged 3 commits into from
Apr 27, 2020

Conversation

endJunction
Copy link
Member

  1. Feature description was added to the changelog
  2. Tests covering your feature were added? updated.
  3. Any new feature or behavior change was documented?

nagelt and others added 3 commits April 26, 2020 21:42
This allows for mass lumping.
Part of the pressure-pressure jacobian block is now also
diagnalized if mass lumping is used.
@nagelt
Copy link
Member

nagelt commented Apr 26, 2020

looks good

Copy link
Member

@TomFischer TomFischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not understand the formula. PR looks technical okay. ⏩

@nagelt
Copy link
Member

nagelt commented Apr 27, 2020

Did not understand the formula. PR looks technical okay. fast_forward

It replaces S' with S/Delta p N p'_nodes, in order to turn a nodal vector into the product of a "mass" matrix (still don't like this term) and a nodal vector. This way, we can apply mass lumping. In contrast to a \partial S/\partial p formulation we maintain the good mass conservation properties of the S' formulation.

storage_p_a_S.noalias() += N_p.transpose() * rho_LR *
specific_storage_a_S * (S_L - S_L_prev) /
dt * w;
if (p_cap_dot_ip != 0) // prevent division by zero.
Copy link
Member

@wenqing wenqing Apr 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If p_cap_dot_ip is very small, this condition would cause a problem.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If p_cap_dot_ip is very small, this condition would cause a problem.

Yeah. In the saturated range p_cap_dot_ip = -p_L_dot_ip, and the potentially small pressure rate goes along with S_L = S_L_prev. So this case should be fine, I guess.
In the unsaturated case, the ratio of both depends on the shape of the SWCC, but in many cases it should work.

@endJunction if none of the benchmarks nor our additional tests run into any problems of this kind, then I'd be fine with this for now and only address it if an actual problem occurs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far I didn't come across a case where it would produce anything strange.

@TomFischer
Copy link
Member

It replaces S' with S/Delta p N p'_nodes, in order to turn a nodal vector into the product of a "mass" matrix (still don't like this term) and a nodal vector. This way, we can apply mass lumping. In contrast to a \partial S/\partial p formulation we maintain the good mass conservation properties of the S' formulation.

Thanks for the explanation.

@TomFischer TomFischer merged commit b35e627 into ufz:master Apr 27, 2020
@endJunction endJunction deleted the secand_mb branch April 27, 2020 10:29
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

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.

5 participants