diff --git a/framework/doc/content/media/meshgenerators/combiner_multi_translate.png b/framework/doc/content/media/meshgenerators/combiner_multi_translate.png deleted file mode 100644 index 5bc5c0e0b8e6..000000000000 Binary files a/framework/doc/content/media/meshgenerators/combiner_multi_translate.png and /dev/null differ diff --git a/framework/doc/content/source/meshgenerators/CombinerGenerator.md b/framework/doc/content/source/meshgenerators/CombinerGenerator.md index 96d5a644f008..580b2a660fa6 100644 --- a/framework/doc/content/source/meshgenerators/CombinerGenerator.md +++ b/framework/doc/content/source/meshgenerators/CombinerGenerator.md @@ -40,7 +40,7 @@ If you specify `positions` then the number of `positions` must match the number Will generate a mesh that looks like: -!media media/meshgenerators/combiner_multi_translate.png style=width:75%; +!media framework/meshgenerators/combiner_multi_translate.png style=width:75%; Alternatively, the same displacement vectors can be supplied in a file with the `positions_file` option. The above mesh can equivalently be generated with the following. diff --git a/framework/src/meshgenerators/CombinerGenerator.C b/framework/src/meshgenerators/CombinerGenerator.C index 02f7de235199..ccda45c94303 100644 --- a/framework/src/meshgenerators/CombinerGenerator.C +++ b/framework/src/meshgenerators/CombinerGenerator.C @@ -144,6 +144,13 @@ CombinerGenerator::generate() if (!mesh) paramError("inputs", _input_names[0], " is not a valid unstructured mesh"); + // Move the first input mesh if applicable + if (_positions.size()) + { + MeshTools::Modification::translate( + *mesh, _positions[0](0), _positions[0](1), _positions[0](2)); + } + // Read in all of the other meshes for (MooseIndex(_meshes) i = 1; i < _meshes.size(); ++i) { diff --git a/large_media b/large_media index fb009ce0b606..8dc9ab6699d0 160000 --- a/large_media +++ b/large_media @@ -1 +1 @@ -Subproject commit fb009ce0b606195537fb3bdb03e338c5c49f39b0 +Subproject commit 8dc9ab6699d0c9c5d9ae03665a2ece62eb339b49 diff --git a/test/tests/meshgenerators/combiner_generator/gold/combiner_multi_input_translate_from_file_in.e b/test/tests/meshgenerators/combiner_generator/gold/combiner_multi_input_translate_from_file_in.e index 43ecdb5694f3..60b9cc8b8b06 100644 Binary files a/test/tests/meshgenerators/combiner_generator/gold/combiner_multi_input_translate_from_file_in.e and b/test/tests/meshgenerators/combiner_generator/gold/combiner_multi_input_translate_from_file_in.e differ diff --git a/test/tests/meshgenerators/combiner_generator/gold/combiner_multi_input_translate_in.e b/test/tests/meshgenerators/combiner_generator/gold/combiner_multi_input_translate_in.e index 3617f4528c8d..7baf15a44bf2 100644 Binary files a/test/tests/meshgenerators/combiner_generator/gold/combiner_multi_input_translate_in.e and b/test/tests/meshgenerators/combiner_generator/gold/combiner_multi_input_translate_in.e differ