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

[MGTL] Allow multiple bulk element ids in identify #2252

Merged
merged 3 commits into from
Nov 2, 2018
Merged

[MGTL] Allow multiple bulk element ids in identify #2252

merged 3 commits into from
Nov 2, 2018

Conversation

endJunction
Copy link
Member

Upon request for Dirichlet BCs inside of the domain defined along lines.

@Thomas-TK Could you provide an example?

@Thomas-TK
Copy link
Member

Of course, it's my pleasure !

@Thomas-TK
Copy link
Member

Here we go: an unstructured triangle mesh and a Y-line going through the domain (typical for river BCs). Additionally, an according prism mesh.
Thank you
Thomas

SimpleRiverExample.zip

PS: that's how it looks like
riverpointallocation

@@ -133,21 +133,8 @@ std::vector<std::size_t> identifySubdomainMeshElements(
OGS_FATAL(
"Expect exactly one element to be found in the bulk mesh.");
Copy link
Member

Choose a reason for hiding this comment

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

Is the error message still correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed: "exactly one" to at "least one".

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.

If the lower dimensional elements are inside the bulk mesh,
there is no unique bulk element associated with it, but
multiple elements.
In the case of unique elements, the behaviour didn't change.
In the case of multiple elements, the bulk element ids are
stored in the FieldData with accompanying CellData array
'number_bulk_elements'.
Meshes kindly provided by Thomas_TK @ github <thomas.kalbacher@ufz.de>
@Thomas-TK
Copy link
Member

Looks good with triangle mesh. . .will test it for prism meshes as well
riverpointallocationresult

@endJunction endJunction merged commit 4261f03 into ufz:master Nov 2, 2018
@endJunction endJunction deleted the AllowMultipleBulkElementsIdentification branch November 2, 2018 12:44
@Thomas-TK
Copy link
Member

I works for the 3D prism model as well. !!!!

@Thomas-TK
Copy link
Member

I tested triangles, line elements and individual points as elements on a triangle and prism mesh. Works very well as BCs inside the domain.
riverpointallocationresultprism

@endJunction
Copy link
Member Author

Put it in a ctest and add some docu on the benchmark page. Then, and only then, can you rely on these features being correct in the feature.

@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.

4 participants