You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and it is somewhat implicitly assumed that the basis for the element is a nodal basis, e.g. N(xi, eta) = (xi, eta, 1-xi-eta) in this particular case. We should extend this definition by explicitly giving a basis, which defaults to nodal basis. So we can have Tri3{CG}, Tri3{Morley}, Tri3{DKT} and so on. We could implement this several ways, here's couple options:
abstract type AbstractBasis endstruct CG <:AbstractBasisendstruct Morley <:AbstractBasisendabstract type AbstractTopology endstruct Tet10{T<:AbstractBasis} <:AbstractTopologyendabstract type AbstractElement endstruct Element{T<:AbstractTopology} <:AbstractElement# rest of stuff ...
topology ::TendElement(Tet10{CG}())
# outputElement{Tet10{CG}}(Tet10{CG}())
I don't know which one is better or is there maybe third and better way to think this. Anyway we can do this change so that element = Element(Tri3, [1, 2, 3]) is still working and having CG basis as default one:
Currently, we define elements using style
and it is somewhat implicitly assumed that the basis for the element is a nodal basis, e.g.
N(xi, eta) = (xi, eta, 1-xi-eta)
in this particular case. We should extend this definition by explicitly giving a basis, which defaults to nodal basis. So we can haveTri3{CG}
,Tri3{Morley}
,Tri3{DKT}
and so on. We could implement this several ways, here's couple options:Other way is
I don't know which one is better or is there maybe third and better way to think this. Anyway we can do this change so that
element = Element(Tri3, [1, 2, 3])
is still working and having CG basis as default one:The text was updated successfully, but these errors were encountered: