How to find easily dimension of functionspace
Dear All What is an easy way to find the dimension. in FEniCS there is a dim attribute for the function space. Regards Moritz -- Prof M Braun Tel.:27-12-4298006/8027 Physics Department Fax.: 27-12-4293643 University of South Africa (UNISA) moritz.braun@gmail.com P.O. Box 392 0003 UNISA South Africa http://moritz-braun.blogspot.com
.dim or .shape For example: In [1]: from firedrake import * In [2]: m = UnitSquareMesh(2, 2, quadrilateral=True) In [3]: V = TensorFunctionSpace(m, 'CG', 1) In [4]: V.dim Out[4]: 4 In [5]: V.shape Out[5]: (2, 2) ________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of moritz braun <moritz.braun@gmail.com> Sent: 13 July 2016 16:57:12 To: firedrake Subject: [firedrake] How to find easily dimension of functionspace Dear All What is an easy way to find the dimension. in FEniCS there is a dim attribute for the function space. Regards Moritz -- Prof M Braun Tel.:27-12-4298006/8027 Physics Department Fax.: 27-12-4293643 University of South Africa (UNISA) moritz.braun@gmail.com<mailto:moritz.braun@gmail.com> P.O. Box 392 0003 UNISA South Africa http://moritz-braun.blogspot.com
participants (2)
-
Homolya, Miklós
-
moritz braun