You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/igashell_utils.jl
+36-1
Original file line number
Diff line number
Diff line change
@@ -205,4 +205,39 @@ end
205
205
206
206
#
207
207
_to3d(s::SymmetricTensor{2,2,T}) where T =SymmetricTensor{2,3,T,6}((s[1,1], T(0.0), s[1,2], T(0.0), T(0.0), s[2,2]))
208
-
_to3d(s::SymmetricTensor{2,3}) = s
208
+
_to3d(s::SymmetricTensor{2,3}) = s
209
+
210
+
"""
211
+
Dispatch on Nurbscoords
212
+
"""
213
+
214
+
function Ferrite.cellcoords!((x, w)::NurbsCoords, dh::Ferrite.AbstractDofHandler, i::Int)
215
+
Ferrite.cellcoords!(x, dh, i)
216
+
getweights!(w, dh.grid, i)
217
+
end
218
+
219
+
function IGA.compute_bezier_points!((xb, wb)::NurbsCoords{dim_s,T2}, Ce::BezierExtractionOperator{T}, (x,w)::NurbsCoords{dim_s, T2}; dim::Int=1) where {dim_s,T,T2}
220
+
IGA.compute_bezier_points!(xb, Ce, w.*x, dim=dim)
221
+
IGA.compute_bezier_points!(wb, Ce, w)
222
+
xb .*=inv.(wb)
223
+
end
224
+
225
+
function IGA.set_bezier_operator!(cv::IGAShellValues, Ce::BezierExtractionOperator{T}, (x,w)::NurbsCoords{dim_s,T}) where {dim_s,T}
226
+
IGA.set_bezier_operator!(cv, w.*Ce)
227
+
end
228
+
229
+
function IGA.set_bezier_operator!(cv::IGAShellValues, Ce::BezierExtractionOperator{T}, x::Vector{Vec{dim_s,T}}) where {dim_s,T}
230
+
IGA.set_bezier_operator!(cv, Ce)
231
+
end
232
+
233
+
function Base.similar((x,w)::NurbsCoords{dim_s, T}) where {dim_s,T}
234
+
returnsimilar(x), similar(w)
235
+
end
236
+
237
+
function Base.zeros(::Type{NurbsCoords{dim_s,T}}, n::Int...) where {dim_s,T}
238
+
return (zeros(Vec{dim_s,T},n), zeros(T,n))
239
+
end
240
+
241
+
functionmyzeros(::Type{NurbsCoords{dim_s,T}}, n::Int) where {dim_s,T}
0 commit comments