Function Repository Resource:

BoundaryElementMeshTranslate

Source Notebook

Translate a boundary element mesh

Contributed by: Oliver Rübenkönig

ResourceFunction["BoundaryElementMeshTranslate"][bmesh,vector]

returns a boundary ElementMesh object bmesh translated by translation vector vector.

Details and Options

BoundaryElementMesh takes the same options as BoundaryMesh.

Examples

Basic Examples (4) 

Load the Finite Element Method package:

In[1]:=
<< NDSolve`FEM`

Create a boundary ElementMesh:

In[2]:=
bmesh1 = ToBoundaryMesh[Rectangle[]];

Translate the boundary mesh:

In[3]:=
bmesh = ResourceFunction["BoundaryElementMeshTranslate"][
  bmesh1, {1, Sqrt[2]}]
Out[3]=

Visualize the input and resulting boundary ElementMesh objects:

In[4]:=
Show[bmesh["Wireframe"], bmesh1["Wireframe"]]
Out[4]=

Scope (3) 

Create a 3D boundary ElementMesh:

In[5]:=
bmesh1 = ToBoundaryMesh[Cuboid[]];

Translate the boundary mesh:

In[6]:=
bmesh = ResourceFunction["BoundaryElementMeshTranslate"][
  bmesh1, {1, 2, 3}]
Out[6]=

Visualize the input and resulting boundary ElementMesh objects:

In[7]:=
Show[bmesh["Wireframe"], bmesh1["Wireframe"]]
Out[7]=

Publisher

OliverRubenkonig

Version History

  • 1.0.0 – 03 January 2022

License Information