# mass_matrices_trace.py¶

⭕ To access the source code, click on the [source] button at the right side or click on [mass_matrices_trace.py]. Dependence may exist. In case of error, check import and install required packages or download required scripts. © mathischeap.com

The mass matrices of trace spaces , and .

Parameters:
• bf (MimeticBasisPolynomials) – A MimeticBasisPolynomials (not MimeticBasisPolynomials2D) instance.

• ct (CoordinateTransformation) – A CoordinateTransformation instance that represents the mapping .

• quad_degree (list, tuple) – (default: None) The degree used for the numerical integral. It should be a list or tuple of three positive integers. If it is None, a suitable degree will be obtained from bf.

Example:

>>> from coordinate_transformation import CoordinateTransformation
>>> from coordinate_transformation import Phi, d_Phi
>>> from mimetic_basis_polynomials import MimeticBasisPolynomials
>>> ct = CoordinateTransformation(Phi, d_Phi)
>>> bf = MimeticBasisPolynomials('Lobatto-4', 'Lobatto-3', 'Lobatto-2')
>>> MMT = MassMatricesTrace(bf, ct)
>>> MMT.TF
<52x52 sparse matrix of type '<class 'numpy.float64'>'...

property TE

The mass matrix .

Returns:

Return a csc_matrix representing the mass matrix.

property TF

The mass matrix .

Returns:

Return a csc_matrix representing the mass matrix.

property TN

The mass matrix .

Returns:

Return a csc_matrix representing the mass matrix.

↩️ Back to Ph.D. thesis complements (ptc).