In a meshed cylinder Cylinder[{{0,0,0},{0,0,1}},1]
I need to specify DirichletConditions
along x=y=0
.
How to define such a 3D mesh with additional inner boundary?
Thanks!
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityToBoundaryMesh[..., "IncludePoints" -> myAdditionnalPoints] seems to be the solution :
myAdditionnalPoints = Table[{0, 0, h}, {h, 0, 1, 1/50}];
boundaryMesh =
ToBoundaryMesh[Cylinder[{{0, 0, 0}, {0, 0, 1}}, 1],
"IncludePoints" -> myAdditionnalPoints]
boundaryMesh["Wireframe"["MeshElement" -> "PointElements"]]
Checking that the points are still there after full-meshing :
fullMesh = ToElementMesh[boundaryMesh]
fullMesh["Wireframe"["MeshElement" -> "PointElements"]]
Cases[boundaryMesh["BoundaryElements"], Line[p_] :> p, -1] (*{}*)
$\endgroup$
21 hours ago
Cases[boundaryMesh["BoundaryElements"], Point[p_] :> p, -1]
gives {}
too
$\endgroup$
21 hours ago
ToElementMesh[Line[...]]
$\endgroup$