Replies: 2 comments
-
I've actually experimented with related ideas in some early prototypes of the code (back before I was using Matlab). The idea was basically similar to |
Beta Was this translation helpful? Give feedback.
-
#332 adds support for composite elements.
I think it might have educational value to e.g. have predefined stable elements for mixed Poisson, Stokes, incompressible elasticity, etc. I suppose for now |
Beta Was this translation helpful? Give feedback.
-
I'm thinking about how to structure a refactoring of some of the common code for Taylor–Hood elements, used for Stokes and Navier–Stokes equations, e.g.
as well as work in progress like #171 towards the three outstanding issues on these equations #169 #170 #240.
Each of these begins by repeating the same code to define the elements and interior bases.
scikit-fem/docs/examples/ex18.py
Lines 13 to 16 in f5cc86f
There are some other common operations too. I wonder to what extent these commonalities might be encapsulated.
They might need to be parameterized for
intorder
(as mentioned in #240) and also for the type of mesh; although all the examples thus far (excluding ex29 the one-dimensional Orr–Sommerfeld equation which is a bit special) all useMeshTri
, I think they should also work forMeshQuad
,MeshTet
, andMeshHex
.Given a mesh, would it make sense for a function or class to automatically generate the appropriate pair of elements and interior bases for velocity and pressure? Something like
if isinstance(mesh, MeshTri): … elif instance(mesh, MeshQuad): …
?Would this sit in
skfem.models
?Or could this be getting too specialized and should it be left outside the
scikit-fem
package?Beta Was this translation helpful? Give feedback.
All reactions