Skip to content

Commit

Permalink
update test for statics
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Jan 3, 2024
1 parent 4ce8b47 commit aa73923
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/shells/statics/vis_scordelis_lo_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ thickness = 0.25; # geometrical dimensions are in feet
R = 25.0;
L = 50.0;

cylindrical!(csmatout::FFltMat, XYZ::FFltMat, tangents::FFltMat, fe_label::FInt) = begin
cylindrical!(csmatout, XYZ, tangents, feid, qpid) = begin
r = vec(XYZ); r[2] = 0.0; r[3] += R
csmatout[:, 3] .= vec(r)/norm(vec(r))
csmatout[:, 2] .= (0.0, 1.0, 0.0) # this is along the axis
Expand All @@ -47,8 +47,6 @@ cylindrical!(csmatout::FFltMat, XYZ::FFltMat, tangents::FFltMat, fe_label::FInt)
end

function _execute_dsg_model(formul, n = 8, visualize = true)


tolerance = R/n/10
# fens, fes = T3blockrand(40/360*2*pi,L/2,n,n);
fens, fes = T3block(40/360*2*pi,L/2,n,n,:b);
Expand Down Expand Up @@ -101,15 +99,18 @@ function _execute_dsg_model(formul, n = 8, visualize = true)
applyebc!(dchi)
numberdofs!(dchi);

massem = SysmatAssemblerFFBlock(nfreedofs(dchi))
vassem = SysvecAssemblerFBlock(nfreedofs(dchi))

# Assemble the system matrix
associategeometry!(femm, geom0)
K = stiffness(femm, geom0, u0, Rfield0, dchi);
K = stiffness(femm, massem, geom0, u0, Rfield0, dchi);

# Midpoint of the free edge
nl = selectnode(fens; box = Float64[sin(40/360*2*pi)*25 sin(40/360*2*pi)*25 L/2 L/2 -Inf Inf], inflate = tolerance)
lfemm = FEMMBase(IntegDomain(fes, TriRule(3)))
fi = ForceIntensity(FFlt[0, 0, -90, 0, 0, 0]);
F = distribloads(lfemm, geom0, dchi, fi, 3);
fi = ForceIntensity(Float64[0, 0, -90, 0, 0, 0]);
F = distribloads(lfemm, vassem, geom0, dchi, fi, 3);

# Solve
U = K\F
Expand Down

0 comments on commit aa73923

Please sign in to comment.