We have
Then with definition (see Section New Optimized assembly algorithm (OptV2 version)) , we obtain
We represent in figure 13 the corresponding row-wise operations.
So the vectorized algorithm for computation is simple and given in Algorithm 14.
Algorithm 14
Note
Computes all the element Mass matrices for
Parameters: | areas (![]() |
---|---|
Returns: | a one dimensional numpy array of size ![]() |
We have
Using vectorized algorithm function given in Algorithm 12, we obtain
the vectorized algorithm 15 for
computation for the Stiffness matrix in 2d.
Algorithm 15
Note
Computes all the element stiffness matrices for
Parameters: |
|
---|---|
Returns: | a one dimensional numpy array of size |
We define on the local alternate basis
by
where With notations of Presentation, we have
with,
(1)
For example, we can explicitly compute the first two terms in the first column of which are given by
and
Using vectorized algorithm function given in Algorithm 12, we obtain
the vectorized algorithm 15 for
computation for the Elastic Stiffness matrix in 2d.
Algorithm 16
Note
Computes all the element elastic stiffness matrices for
in local alternate basis.
Parameters: | |
---|---|
Returns: | a (36*nme,) numpy array of floats. |
We define on the local block basis
by
where
For example, using formula (1), we can explicitly compute the first two terms in the first column of which are given by
and
Using vectorized algorithm function given in Algorithm 12, we obtain
the vectorized algorithm 17 for
computation for the Elastic Stiffness matrix in 2d.
Algorithm 17
Note
Computes all the element elastic stiffness matrices
for
in local block basis.
Parameters: | |
---|---|
Returns: | a (36*nme,) numpy array of floats. |