Open LoveFrootLoops opened 1 year ago
Hi, @LoveFrootLoops, maybe you can find some assistance in this related discussion https://github.com/gridap/Gridap.jl/issues/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 using Gridap
etc...
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)
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.