Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] IdentifySubdomains with example.
- Loading branch information
1 parent
582a0f1
commit 6cfbccf
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.../docs/tools/model-preparation/identifySubdomains/disc_with_hole_and_bondary.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
web/content/docs/tools/model-preparation/identifySubdomains/index.pandoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
+++ | ||
date = "2018-10-02T15:56:57+01:00" | ||
title = "Identitfy subdomains in bulk mesh." | ||
author = "Dmitri Naumov" | ||
|
||
[menu] | ||
[menu.tools] | ||
parent = "model-preparation" | ||
+++ | ||
|
||
## General | ||
|
||
`identifySubdomains` is a creation and check tool for the `bulk_node_ids` and | ||
`bulk_element_ids` mesh properties. These properties are needed for the boundary | ||
conditions and source terms application, defined on the subdomains of a "bulk" | ||
mesh. | ||
|
||
## Example | ||
|
||
Given a "bulk" mesh (Tests/Data/Mechanics/Linear/disc_with_hole.vtu) and a | ||
[quater cirle mesh](../quater_circle.vtu) extracted manually we want to use the | ||
quater circle mesh for heterogeneous boundary condition. OGS requires two | ||
mappings into the "bulk" mesh, one for the nodes and one for the elements. | ||
|
||
<center> | ||
![The figure shows a part of the "bulk" mesh with boundary element numbers, and | ||
the quater circle mesh shown as white line with green | ||
points.](disc_with_hole_and_bondary.png){width=50%} | ||
</center> | ||
|
||
To create this mappings we run | ||
``` | ||
identifySubdomains -m Tests/Data/Mechanics/Linear/disc_with_hole.vtu -s 1e-6 -o | ||
new_ -- quater_circle.vtu | ||
``` | ||
The tool will first try to find all unique nodes in the "bulk" mesh using search | ||
radius 1e-6, and create the `bulk_node_ids` mapping upon success. Then the | ||
`bulk_element_ids` mapping is created by finding a unique element containing all | ||
the nodes of the subdomain element. The output file | ||
[`new_quater_circle.vtu`](../new_quater_cirle.vtu) will now contain both | ||
mappings and is prepared for usage as a boundary condition mesh. | ||
|
||
## Notes | ||
|
||
- The double dash is separating the subdomain meshes, so the input can have | ||
multiple subdomain inputs: | ||
``` | ||
identifySubdomains -m bulk.vtu -- bc1.vtu bc2.vtu source_term_meshes*.vtu | ||
``` | ||
- The output prefix `-o` can contain a path too and is relative to the current | ||
working directory. |
3 changes: 3 additions & 0 deletions
3
web/content/docs/tools/model-preparation/identifySubdomains/new_quater_circle.vtu
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
web/content/docs/tools/model-preparation/identifySubdomains/quater_circle.vtu
Git LFS file not shown