Skip to main content
. 2022 Mar 2;19(188):20210824. doi: 10.1098/rsif.2021.0824
Algorithm 1. Placing the PGFs within the NRC.
1: Initialize: the user decides on the number of fibres (n) and the radius of the fibre (r) and the thickness of the stiffer area surrounding the fibres (α).
2: Taking the nodes (S) from the most proximal side.
3: Pre-process S so that it only includes nodes that are at a distances ≤ r from the edge of the geometry.
4: while i < n
5: A node siS is chosen at random.
6: All the nodes at a distance ≤ r from si are found and removed from S.
7: Then nodes at r < distance ≤ r + α are given a higher stiffness values to the remaining kα (see §2.2.2).
8: if there are no nodes left in S
9: break
10: end while
11: ‘Sweep’ the nodes that belong to the fibres and the stiffness area along all the whole geometry of the NRC.