I want to make the mesh created by ToElementMesh has a node at my specified position. For example, in the following code, I discretize a disk to element meshes with ToElementMesh, and I want to a point, say (0.2,0.3), is coincident with a node. I have no idea on how to do it. Now I use the following code
domain = Disk[];
loc = {0.2, 0.3}
mesh = ToElementMesh[domain,
MeshRefinementFunction ->
Function[{vertices, area}, Block[{x, y}, {x, y} = Mean[vertices];
If[Norm@({x, y} - loc) < 0.2, area > 0.002, area > 1]]]
];
I use MeshRefinementFunction to make the elements near the target point dense and find the nearest node. I think it is not a good and elegant idea.
Is there any simple and built-in options for it, and how can I obtain the node number of it?