print out that the border area is zero. Of course it is zero, I have not defined it and that is the issue. I do not know how to define/label the borders.
So my question:
How do I define/label borders when the mesh is imported from gmsh?
Should I modify the gmsh file? In that case, do you have an idea how?
The file is generated by some python script. The workflow is as follows:
The original data is written in Abaqus ODB file. From that data, geometry somehow needs to be extracted and the only way I found reasonable to do that was by writing a python script that reads the ODB and saves relevant geometry data to MSH.
So I guess:
Either there is something missing in the MSH or
I am missing to see a way to assign label to specific nodes within the FreeFem++
Because all I actually need is to just assign some label at the bottom nodes, so I can fix their displacement to 0.
However, when I wanted to print out the vertices with label 5:
int NbVertices = Th.nv;
cout << "Number of verticesssssss = " << NbVertices << endl;
for (int i = 0; i < NbVertices; i++){
if (Th(i).label != 1){
cout << "hello" << endl;
cout << "Th(" << i << ") : " << Th(i).x << " " << Th(i).y << " " << Th(i).z << " " << Th(i).label << endl;
}
}
There is no output, nothing is printed. Which makes me seriously doubt if the labels were actually changed. Am I getting this wrong or better said, how can I be sure the labels were actually modified?