How to model a honeycomb matrix
Posted Apr 8, 2021, 7:00 AM EDT Interfacing, Geometry, Parameters, Variables, & Functions Version 5.4 2 Replies
Please login with a confirmed email address before reporting spam
I'm trying to model a honeycomb (HC) pattern by combining/mixing two identical matrixes into one (the HC).
Let's say that the "first" matrix is the reference and that the "second" matrix (copy/paste of the "first") will have a shift, aka displacement, in the x and y axis given by two variables (parameters) so that the two combined/mixed present the HC pattern.
I've build my substrate and a cylinder on its surface. I'm using that cylinder for the array in the x and y axis (being z = 1). This "first" matrix works like a charm. I change all the parameters of the cylinder, including the pitch between them, and it already appears to start wrongly since my initial coordinates (x0, y0, z0) and set to (0, 0, parameter) but the bottom left cylinder appears on coordinates (1, 1, 1) as explained in the next paragraph).
First, and for some reason, COMSOL does not let me choose the same cylinder as I have for the "first" matrix as input object for this "second" matrix (so that I'd have the exact same reference for both matrixes). I've tried by clicking said cylinder with the mouse, copy/pasting and naming it on the input objects window and nothing. So, because of that, I have to click on a cylinder (from the "first" matrix) which is on the same position as mentioned reference cylinder and I get as input object "arr4(1, 1, 1)".
Just as the first test the value I input as x displacement is a parameter dst_x (distance in the x axis) which is equal to the pitch + 2 * radius of the reference cylinder times sqrt(3)/2. And this new matrix (only one line on the x axis is actually changinging) is drawn in such a way that I do not understand (I should mention that all the units are the same).
The bottom left most cylinder of the "second" matrix is drawn on the exact same place as in the "first" matrix meaning that the bottom left most cylinder is also in coordinates (1, 1, 1) so, obviously, I will not have any actual x axis displacement between the 2 matrixes since the bottom left most cylinders are on the same x axis position therefore I will never have a HC pattern.
See pictures I've attached.
What's happening? I thought this would be the "simplest" way to model a HC pattern. I don't know if there's a "better" way to model it but if there's please advise on that.