@@ -92,15 +92,24 @@ namespace WorldBuilder
9292 *
9393 * Composition is identified by 2. This produces one
9494 * value in the output. The second entry identifies the composition number and the third
95- * number is not used. So a commposition query asking about composition 1 looks like this:
95+ * number is not used. So a composition query asking about composition 1 looks like this:
9696 * {2,1,0}. A composition query prodoces one entry in the output vector.
9797 *
98- * Grains are identified by 2 . The second entry is the grain composition number and the third
98+ * Grains are identified by 3 . The second entry is the grain composition number and the third
9999 * entry is the number of grains. A query about the grains, where it asks about composition 1
100- * (for example enstatite) and 500 grains, looks like this: {2 ,1,500}.
100+ * (for example enstatite) and 500 grains, looks like this: {3 ,1,500}.
101101 * A composition query prodoces n_grains*10 entries in the output vector. The first n_grains
102102 * entries are the sizes of all the grains, and the other 9 entries are sets of rotation
103103 * matrices. The rotation matrix entries are ordered [0][0],[0][1],[0][2],[1][0],[1][1],etc.
104+ *
105+ * The tag is identified by 4 and no extra information is needed. So the tag
106+ * input usually looks like {4,0,0}. A tag query produces one entry in the output
107+ * vector, representing the index of the tag of the last/dominant feature.
108+ *
109+ * The velocity is identified by 5 and no extra information is needed. So the tag
110+ * input usually looks like {5,0,0}. A tag query produces three entry in the output
111+ * vector, representing the x, y and z velocity, even in 2D. In 2D the velocies are
112+ * projected on the 2D plane, and the 3rd velocity element will be zero.
104113 */
105114 std::vector<double > properties (const std::array<double , 2 > &point,
106115 const double depth,
@@ -131,8 +140,13 @@ namespace WorldBuilder
131140 * matrices. The rotation matrix entries are ordered [0][0],[0][1],[0][2],[1][0],[1][1],etc.
132141 *
133142 * The tag is identified by 4 and no extra information is needed. So the tag
134- * input usually looks like {4,0,0}. A tag query prodoces one entry in the output
143+ * input usually looks like {4,0,0}. A tag query produces one entry in the output
135144 * vector, representing the index of the tag of the last/dominant feature.
145+ *
146+ * The velocity is identified by 5 and no extra information is needed. So the tag
147+ * input usually looks like {5,0,0}. A tag query produces three entry in the output
148+ * vector, representing the x, y and z velocity, even in 2D. In 2D the velocies are
149+ * projected on the 2D plane, and the 3rd velocity element will be zero.
136150 */
137151 std::vector<double > properties (const std::array<double , 3 > &point,
138152 const double depth,
0 commit comments