Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
115 additions
and
149 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
framework/doc/content/source/meshgenerators/OverlappingMeshGenerator.md
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,18 @@ | ||
# OverlayMeshGenerator | ||
|
||
!syntax description /Mesh/OverlayMeshGenerator | ||
|
||
## Overview | ||
|
||
The `OverlayMeshGenerator` object is the built-in mesh generation capable of creating an overlaying mesh with the given mesh block. The overlay mesh uses DistributedRectilinearMeshGenerator(DistributedRectilinearMeshGenerator.md) as sub-generator. The input parameters for DistributedRectilinearMeshGenerator are all available for OverlayMeshGenerator. The required input parameters are [!param](/Mesh/OverlayMeshGenerator/dim) (the dimension of the domain) and [!param](/Mesh/OverlayMeshGenerator/input) (the base mesh we want to overlay). | ||
|
||
## Example Syntax | ||
|
||
!listing test/tests/meshgenerators/overlay_mesh_generator/overlay_mesh_generator.i | ||
block=Mesh | ||
|
||
!syntax parameters /Mesh/OverlayMeshGenerator | ||
|
||
!syntax inputs /Mesh/OverlayMeshGenerator | ||
|
||
!syntax children /Mesh/OverlayMeshGenerator |
65 changes: 0 additions & 65 deletions
65
framework/include/meshgenerators/BlockCartesianGenerator.h
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
#pragma once | ||
#include "MeshGenerator.h" | ||
#include "MooseEnum.h" | ||
/* | ||
* Mesh generator to create a Overlay mesh | ||
*/ | ||
class OverlayMeshGenerator : public MeshGenerator | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
OverlayMeshGenerator(const InputParameters & parameters); | ||
std::unique_ptr<MeshBase> generate() override; | ||
|
||
protected: | ||
/// The dimension of the mesh | ||
MooseEnum _dim; | ||
|
||
/// Name of the generated mesh | ||
std::unique_ptr<MeshBase> * _build_mesh; | ||
|
||
/// Name of the base mesh | ||
std::unique_ptr<MeshBase> & _mesh_input; | ||
}; |
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
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
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
Binary file added
BIN
+6.84 KB
test/tests/meshgenerators/overlay_mesh_generator/gold/overlay_mesh_generator_in.e
Binary file not shown.
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
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,15 @@ | ||
[Tests] | ||
[test] | ||
type = 'Exodiff' | ||
input = 'overlay_mesh_generator.i' | ||
cli_args = '--mesh-only' | ||
exodiff = 'overlay_mesh_generator_in.e' | ||
requirement = 'The system shall be able to create a distributedrectilinear mesh overlaying with the given mesh.' | ||
design = 'meshgenerators/OverlayMeshGenerator.md' | ||
issues = '#0' | ||
mesh_mode = 'REPLICATED' | ||
recover = false | ||
|
||
detail = 'The refinement of the generated mesh is different from the given mesh.' | ||
[] | ||
[] |