moose icon indicating copy to clipboard operation
moose copied to clipboard

Improve Moving Boundary in `ElementSubdomainModifier`

Open Wendy-Ji opened this issue 1 year ago • 1 comments

This pull request addresses several problems with the moving_boundary_name in ElementSubdomainModifier. The biggest changes in this PR are:

  • The creation of the ElementSubdomainModifierBase
  • The removal of the complement_moving_boundary_name and the creation of the new moving_boundary_subdomain_pairs.

This fixes:

  • The moving_boundary_name was not updating correctly and the complement_moving_boundary_name was being used instead. This redundancy has been removed, and the ability to choose which 'side' of the moving boundary to use is still retained.
  • moving_boundary_subdomain_pairs now gives control over the inclusion of new elements in the boundary. This is based on which pairs of subdomains the new elements are between. A notable extra capability here is the ability to include or exclude external surfaces in the moving boundary.
  • Segmentation fault for particular scenarios when running in parallel

This PR also fixes the issue of an adaptivity file (*-s0*.e) file being output at every time step. meshChanged() is now only called when at least one element changes its subdomain.

refs https://github.com/idaholab/moose/discussions/25736

@hugary1995

Wendy-Ji avatar Jun 21 '24 21:06 Wendy-Ji

Job Documentation on 352a2d3 wanted to post the following:

View the site here

This comment will be updated on new commits.

moosebuild avatar Jul 22 '24 16:07 moosebuild

Job Coverage on 352a2d3 wanted to post the following:

Framework coverage

0ef472 #27965 352a2d
Total Total +/- New
Rate 85.03% 85.05% +0.02% 96.32%
Hits 105219 105254 +35 314
Misses 18526 18506 -20 12

Diff coverage report

Full coverage report

Modules coverage

Coverage did not change

Full coverage reports

Reports

This comment will be updated on new commits.

moosebuild avatar Jul 26 '24 00:07 moosebuild

Hello, this PR will cause some errors when testing malamute and racoon as the parameters have been changed for CoupledVarThresholdElementSubdomainModifier. I have made PRs to patch these. Thank you.

https://github.com/idaholab/malamute/pull/160 https://github.com/hugary1995/raccoon/pull/171

Wendy-Ji avatar Jul 26 '24 20:07 Wendy-Ji

#28314 resulted in some conflicts in this PR. I resolved the conflicts (hopefully correctly) and force pushed to your branch. @Wendy-Ji let me know if I missed anything. I'm still reviewing this PR.

hugary1995 avatar Aug 21 '24 13:08 hugary1995

Since I am not an independent reviewer as I authored part of ElementSubdomainModifierBase.h/.C, we will need at least one approval from either @dewenyushu or @GiudGiud .

hugary1995 avatar Aug 21 '24 15:08 hugary1995

with regards to that last commit deleting the images, it s not enough to add a commit to delete the images. they are sitll in the commit history of the PR. you need to git rebase then edit the commit adding the images to truly remove them and the memory they take

GiudGiud avatar Aug 22 '24 21:08 GiudGiud

with regards to that last commit deleting the images, it s not enough to add a commit to delete the images. they are sitll in the commit history of the PR. you need to git rebase then edit the commit adding the images to truly remove them and the memory they take

I believe this is resolved since all commits are squashed into one. Let me know otherwise.

hugary1995 avatar Aug 27 '24 18:08 hugary1995

I can do the independent CCB review tonight or tomorrow

GiudGiud avatar Aug 27 '24 19:08 GiudGiud

I can do the independent CCB review tonight or tomorrow

That'd be great. Thanks!

hugary1995 avatar Aug 28 '24 02:08 hugary1995

Will be tomorrow, got too busy

GiudGiud avatar Aug 28 '24 02:08 GiudGiud

@Wendy-Ji if you could update your malamute patch please. If you don't have time please just give me write access and I'll finish it up

GiudGiud avatar Sep 12 '24 03:09 GiudGiud

@Wendy-Ji if you could update your malamute patch please. If you don't have time please just give me write access and I'll finish it up

The PR is still under review, but I think everything in the patch is up to date now. I've given you write access in case there's something else I've missed

Wendy-Ji avatar Sep 12 '24 05:09 Wendy-Ji