-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error message defining a Multifield for displacement vector and stress tensor #923
Comments
Hi, @LoveFrootLoops, maybe you can find some assistance in this related discussion #908 and the gitter discussion it is referring to https://matrix.to/#/!mSZoaZwNZhWulNruaK:gitter.im/$08HwU3kACfNW6x6Dj6rswjgoOpXfGCJbgmWkzxzrerA?via=gitter.im&via=matrix.org&via=tu-dresden.de Btw, could you please modify the code such that it can be run as a script? I mean adding |
Hello @ericneiva, Thank you for your prompt reply. It appears that the fix is more complicated, requiring some workarounds. I maybe just use VectorValues. But is there an implemented method to transform the symmetric gradient into a vector using Voigt notation? Alternatively, I could try using TensorValues, but comparing the Tensor with the symmetric gradient i.e. SymTensorValues causes issues with mathematical operations between the two data types. For example, subtracting or adding a symmetric tensor to a normal tensor does not work as expected. |
Hi @LoveFrootLoops , I'm now working on the (Sym)TensorValue'd FESpaces implementation, do you remember what you meant by "subtracting or adding a symmetric tensor to a normal tensor does not work as expected"? The following works as expected I think: using Gridap
using Gridap.TensorValues
TensorValue(1.,2,3,4) + SymTensorValue(1.,2,3) # -> TensorValue{2, 2, Float64, 4}(2.0, 4.0, 5.0, 7.0)
TensorValue(1.,2,3,4) - SymTensorValue(1.,2,3) # -> TensorValue{2, 2, Float64, 4}(0.0, 0.0, 1.0, 1.0) |
of value with linked components. Indeed, the code previously made the assumption that all the components of the Number unknown of the FESpaces are unlinked to the other, which is false for the symmetric tensor types. A new getter for the independent components of the Number is added and used in the MultiValue'd FESpaces machinery. Also, the number of DoFs of the ReferenceFEs are given by num_indep_components(::Number). fixes gridap#923 gridap#908
Hi there,
I recently came across this package, and I must say it's been great so far. I've been experimenting with it and encountered an error message while defining a multi field using the following code:
The error is related to the line "Vₛ = TestFESpace(model, reffeₛ; conformity=:H1)", and I'm receiving the error message: "ERROR: UndefVarError: i not defined".
I would appreciate any insights or assistance to resolve this issue.
The text was updated successfully, but these errors were encountered: