FEMBase.jl
FEMBase.jl copied to clipboard
[WIP] Implement new type for more flexible mapping of degrees of freedom
Currently, the location of degrees of freedom in matrix level is implemented somewhat naive way, given maximum number of degrees of freedom max_dim, node id j, and index of dof i, we have gdofs(j,i) = max_dim(j-1)+i. This works, but does not support variable number of degrees of freedom per node, which is mandatory if we want to couple structural elements with continuum elements or have, for instance, pressure degree of freedom in some nodes and in some nodes not. This PR implements new type DOFMap which makes it easy to create more complex configurations of degrees of freedom.