We have
Then with definition (see Section New Optimized assembling algorithm (version OptV2)) , we obtain
So the vectorized algorithm for computation is simple and given in Algorithm 149.
Algorithm 149
Note
Compute all the elementaries Mass matrices, for
Parameters: | volumes (![]() |
---|---|
Returns: | a one dimensional numpy array of size ![]() |
We have
Using vectorized algorithm function given in Algorithm 148, we obtain
the vectorized algorithm 150 for
computation of the Stiffness matrix in 3d.
Algorithm 150
Note
Compute all the elementaries Stiff matrices, for
Parameters: |
|
---|---|
Returns: | a one dimensional numpy array of size |
We define on tetrahedra the local alternate basis
by
where With notations of Presentation,
we have
with,
by
where and
are the Lame coefficients, and
For example, we can compute explicitely the first two terms in the first column of which are given by
and
Using vectorized algorithm function given in Algorithm 148, we obtain
the vectorized algorithm 151 for
computation of the Elasticity Stiffness matrix in 3d.
Algorithm 151
Note
Compute all the elementaries Stiffness elasticity matrices, for
in local alternate basis.
Parameters: | |
---|---|
Returns: | a (144*nme,) numpy array of floats. |
We define on the local block basis
by
where
For example, using formula (?), 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 148, we obtain
the vectorized algorithm 152 for
computation of the Elasticity Stiffness matrix in 3d.
Algorithm 152
Note
Compute all the elementaries Stiffness elasticity matrices, for
in local block basis.
Parameters: | |
---|---|
Returns: | a (144*nme,) numpy array of floats. |