ReplaceFemSpace.spaces
and FemField.fields
with more specific attributes
#459
Labels
Next Release
Must be in next release
Let
Vh
be aFemSpace
. CurrentlyVh.spaces
may return different types of spaces, which makes the code not always easy to read, and hampers the single/multi-patch compatibility. Instead of this attribute, we should provide more specific helper attributes:Vh.patch_spaces[i]
:if
Vh
is a multi-patch space (ieProductFemSpace
), return FEM space on patch iif
Vh
is single-patch (anything else) return itself (and raise Error if i>0 ?)Vh.component_spaces[i]
:if
Vh
is a multi-patch space (ieProductFemSpace
), raise errorif
Vh
is single-patch, vector-valued (ieVectorFemSpace
) return space of componenti
if
Vh
is single-patch, scalar-valued (ieTensorFemSpace
) return itself (or error? only ifi>0
?)Vh.axis_spaces[i]
:if
Vh
is single-patch, scalar-valued tensor-product (ieTensorFemSpace
), return space for axisi
else raise Error ?
A similar problem occurs for a multipatch/vector-valued
FemField
uh
(uh.fields
may correspond to patch or component fields). Instead of this attribute, we should provide more specific helper attributes:uh.patch_fields[i]
:if
uh
is a multi-patch field returns FEM field on patchi
else returns itself (raise error if
i>0
?)Vh.component_fields[i]
:mimic behavior of
Vh.component_spaces
?The text was updated successfully, but these errors were encountered: