Add function to properly extract global solution#64
Conversation
|
This also looks good for me, but for some reason, this is breaking one test, |
|
This maybe has something to do with "empty connectivity" for unconnected elements. We have something like this: element = Element(Seg2, Int[])which is used to create "placeholder" elements in some applications. Clearly this is having hard time to guess how to update. And this practice is bad anyway. Let's change that so that unconnected elements are created using element = Element(Seg2, [0, 0])So we give node number 0 for elements which are not connected with that node to anywhere. This special case should be taken into account in functions updating data from global solution back to elements. |
d2992f5 to
a70a504
Compare
|
Can't test currently. After rebasing on master and getting FEMBasis 0.3.1 to my local env. I get |
a711587 to
bcb4840
Compare
As mentioned in JuliaFEM/FEMBeam.jl#22 I had problems with the correct mapping of local to global DOFs for mixed problem with different number of DOFs.
This solved the problem by using the problem specific
get_gdofsand then reshapes the result.Basically
get_global_solutionis replaced withget_element_solution. I didn't seeget_global_solutionbeeing used anywhere else, so unless it's needed outside the package it could be deleted.