Adds mooseWarning for when a moving OpenMC problem is detected, but the moose mesh is fixed. - #1436
Conversation
|
I wasn't sure whether the |
|
Job Documentation, step Sync to remote on d99cd79 wanted to post the following: View the site here This comment will be updated on new commits. |
|
Thank you for the PR. the "skinner" refers to MoabSkinner UserObject in Cardinal. it's another example where we can encounter a displaced problem (for example transferring displacements to Cardinal app following thermomechanics solve and update OpenMC geometry with these). so that's what I had in mind when I opened this issue. However thinking more about this now, I think leaving this out of the new condition is correct because the skinning operates on the [Mesh] block and I don't think there's a scenario where the skinner can make the updated OpenMC geometry mismatch the mapping with the [Mesh]. We have a few tests that should now show this new warning such as NekRS tests failures are unrelated and are being handled separately |
|
Hi @cvoorhees15, I've just sent you an invite to join |
meltawila
left a comment
There was a problem hiding this comment.
the below is my main concern since hasCellTransform() is just:
bool
OpenMCProblemBase::hasCellTransform() const
{
return !_cell_transform_uos.empty();
}
you could maybe add a new bool OpenMCProblemBase::movesOpenMCGeometry() const that combines this with the criticality search scenario I was writing inline below
| "OpenMCCellTransform user object (both of which move the OpenMC geometry). The " | ||
| "[Mesh] will move, but the underlying OpenMC geometry will remain unchanged. " | ||
| "Unexpected behavior may occur."); | ||
| else if (!_use_displaced && hasCellTransform()) |
There was a problem hiding this comment.
I think this should be else if (!_use_displaced && (hasCellTransform() || (_criticality_search && _criticality_search->changingGeometry()))) to show the warning when a criticality search object uses OpenMCCellTransformBase and changes the geometry. feel free to rewrite this if you think there's a better way to catch this scenario
There was a problem hiding this comment.
the corresponding opposite case should be added here
804fed4 to
90b0b16
Compare
|
Job Precheck, step Clang format on 90b0b16 wanted to post the following: Your code requires style changes. A patch was auto generated and copied here
Alternatively, with your repository up to date and in the top level of your repository:
|
…he moose mesh is fixed. closes neams-th-coe#1335
90b0b16 to
d99cd79
Compare
| _need_to_reinit_coupling |= hasCellTransform(); | ||
| // The criticality search may modify the geometry. | ||
| if (_criticality_search) | ||
| _need_to_reinit_coupling |= _criticality_search->changingGeometry(); |
There was a problem hiding this comment.
Should this now be collapsed to just:
_need_to_reinit_coupling |= movesOpenMCGeometry();
closes #1335