|
78 | 78 |
|
79 | 79 | function Piola(physmodel::ThermoElectroMechano,kine::NTuple{3,KinematicModel}, uh, φh, θh, Ω, dΩ, Λ=1.0) |
80 | 80 | DΨ = physmodel(Λ) |
81 | | - |
82 | 81 | F, _, _ = get_Kinematics(kine[1]) |
83 | 82 | E = get_Kinematics(kine[2]) |
84 | 83 | ∂Ψu = DΨ[2] |
85 | | - refL2 = ReferenceFE(lagrangian, Float64, 0) |
86 | | - ref = ReferenceFE(lagrangian, Float64, 1) |
87 | | - VL2 = FESpace(Ω, refL2, conformity=:L2) |
88 | | - V = FESpace(Ω, ref, conformity=:H1) |
89 | | - n1 = VectorValue(1.0, 0.0, 0.0) |
90 | | - n2 = VectorValue(0.0, 1.0, 0.0) |
91 | | - n3 = VectorValue(0.0, 0.0, 1.0) |
92 | | - σ11h = interpolate_everywhere(L2_Projection(n1 ⋅ ((∂Ψu ∘ (F∘(∇(uh)'), E∘(∇(φh)), θh)) * n1), dΩ, VL2), V) |
93 | | - σ12h = interpolate_everywhere(L2_Projection(n1 ⋅ ((∂Ψu ∘ (F∘(∇(uh)'), E∘(∇(φh)), θh)) * n2), dΩ, VL2), V) |
94 | | - σ13h = interpolate_everywhere(L2_Projection(n1 ⋅ ((∂Ψu ∘ (F∘(∇(uh)'), E∘(∇(φh)), θh)) * n3), dΩ, VL2), V) |
95 | | - σ22h = interpolate_everywhere(L2_Projection(n2 ⋅ ((∂Ψu ∘ (F∘(∇(uh)'), E∘(∇(φh)), θh)) * n2), dΩ, VL2), V) |
96 | | - σ23h = interpolate_everywhere(L2_Projection(n2 ⋅ ((∂Ψu ∘ (F∘(∇(uh)'), E∘(∇(φh)), θh)) * n3), dΩ, VL2), V) |
97 | | - σ33h = interpolate_everywhere(L2_Projection(n3 ⋅ ((∂Ψu ∘ (F∘(∇(uh)'), E∘(∇(φh)), θh)) * n3), dΩ, VL2), V) |
98 | | - ph = interpolate_everywhere(L2_Projection(tr ∘ (∂Ψu ∘ (F∘(∇(uh)'), E∘(∇(φh)), θh)), dΩ, VL2), V) |
99 | | - return (σ11h, σ12h, σ13h, σ22h, σ23h, σ33h, ph) |
| 84 | + σh = ∂Ψu ∘ (F∘(∇(uh)'), E∘(∇(φh)), θh) |
| 85 | + interpolate_L2_tensor(σh, Ω, dΩ) |
100 | 86 | end |
101 | 87 |
|
102 | 88 |
|
103 | 89 | function Cauchy(args...) |
104 | | - @warn "The function Cauchy is deprecated and will be removed at the end of November 25. Please, replace it by Piola." |
| 90 | + @warn "The function Cauchy is deprecated. Shortly it'll be J^-1*P*F^-T." |
105 | 91 | Piola(args...) |
106 | 92 | end |
107 | 93 |
|
|
0 commit comments