<< Chapter < Page | Chapter >> Page > |
Many of the concepts from the single-string case carry over to networks.
We begin by describing the notation of the information represented by our data structures. We denote the th node to have position vector . For each node at , there is an associated set of the indices of connected neighbor nodes and a set containing the physical constants pertaining to the connection between nodes and . Since we can divide through by on both sides of the network wave equation, we can assume without loss of generality that the constant , and that any data carried by the density is now contained in .
Assuming we are given a set of nodes, along with the positions of each node (the positions are assumed to be 0, such that the web is planar in the plane at rest), our first goal is to compute our step sizes and orientation vectors for connections between two nodes and . To account for Dirichlet boundary conditions, we also create an anchored node for each endpoint. In this implementation, if a node has only one neighbor, we assume it is connected to a pinned endpoint whose position is in the opposite direction but the same distance away as the only neighbor (this is required to calculate an inner product). For a node connected to an endpoint, we append the index 0 to .
Given , , , we proceed as follows
In practice, we normalize the positions of our nodes such that the web lies within a box of a desired arbitrary size . We do this by calculating the maximum distance between the anchored endpoints of a web, then scaling the positions of every node by the factor . Since the absolute positions of the nodes don't affect our discretization, we don't need to worry about subtracting off the centroid of all the node positions.
With all our variables now in place, we can now proceed to the actual construction of our discretization matrices. This requires knowing , , and . We deal first with constructing the matrix, which requires only knowledge of . Just as in the case of finite element on the single string, most of the basis functions and don't share support and their inner products are zero. However, in addition to calculating inner products of regular hat functions, we need to compute the inner products with joint, generalized and nonsymmetric hat functions as well.
Starting with our matrix, we only need to calculate the inner product for and . For the diagonal case , we note that our inner product needs only be calculated on the support of . For given ,
The last part is a generalization of our inner product for a uniform grid on a single string. For the off-diagonal case , , the inner product is analogous to the single-string case.
Notification Switch
Would you like to follow the 'The art of the pfug' conversation and receive update notifications?