Gmsh Errors:“could not add or create line”

I am trying to create a line between two points in Gmesh software. And it comes to an error with “Could not add line” when the distance between two points is only about 50nm. It is ok when the distance is very large. I am wondering if any one knows how to solve this problem ?

It may be best to assume micron or nanometers as the size in Gmsh, and then apply a scale factor in the .geo file for the final mesh. For example to convert from nm to cm, use:

Mesh.ScalingFactor = 1e-7;

so that the coordinates in the saved mesh are in the right scale:
https://gmsh.info/doc/texinfo/gmsh.html

Their online forum may be able to help if you have any meshing related issues.

@Juan ,Thanks,it will be helpful for me. :grinning: