Skip to content

Commit 4d82121

Browse files
committed
updates compats, added missing docstrings to doc, rasterpoints in example vectorplots
1 parent e15ae28 commit 4d82121

7 files changed

+16
-16
lines changed

Project.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
2525
CommonSolve = "0.2"
2626
DiffResults = "1"
2727
DocStringExtensions = "0.8,0.9"
28-
ExtendableFEMBase = "^0.6"
29-
ExtendableGrids = "1.8"
30-
ExtendableSparse = "1.4"
31-
ForwardDiff = "^0.10.35"
32-
GridVisualize = "1.5"
28+
ExtendableFEMBase = "0.6"
29+
ExtendableGrids = "1.9.2"
30+
ExtendableSparse = "1.5.1"
31+
ForwardDiff = "0.10.35"
32+
GridVisualize = "1.7"
3333
LinearSolve = "2"
3434
LinearAlgebra = "1.9"
3535
Printf = "1.9"
3636
SparseArrays = "1.9"
3737
Requires = "1.3"
3838
SparseDiffTools = "^1.19,2"
3939
SciMLBase = "2.6"
40-
Symbolics = "^4.2,5"
40+
Symbolics = "4.2,5"
4141
julia = "1.9"

docs/src/pdesolvers_dt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ reassembly can be skipped if constant_matrix = true is used in the SolverConfigu
2828

2929
```@autodocs
3030
Modules = [ExtendableFEM]
31-
Pages = ["solvers_diffeq.jl"]
31+
Pages = ["solvers_diffeq.jl", "diffeq_interface.jl"]
3232
Order = [:type, :function]
3333
```
3434

examples/Example230_NonlinearElasticity.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ function main(;
135135
end
136136
scalarplot!(plt[1, 1], xgrid, view(strain_nodevals, 1, :), levels = 3, colorbarticks = 7, xlimits = [-scale[2] / 2 - 10, scale[2] / 2 + 10], ylimits = [-30, scale[1] + 20], title = "ϵ(u)_xx + displacement")
137137
scalarplot!(plt[2, 1], xgrid, view(strain_nodevals, 2, :), levels = 1, colorbarticks = 7, xlimits = [-scale[2] / 2 - 10, scale[2] / 2 + 10], ylimits = [-30, scale[1] + 20], title = "ϵ(u)_yy + displacement")
138-
vectorplot!(plt[1, 1], xgrid, eval_func_bary(PointEvaluator([id(u)], sol)), spacing = [50, 25], clear = false)
139-
vectorplot!(plt[2, 1], xgrid, eval_func_bary(PointEvaluator([id(u)], sol)), spacing = [50, 25], clear = false)
138+
vectorplot!(plt[1, 1], xgrid, eval_func_bary(PointEvaluator([id(u)], sol)), rasterpoints = 20, clear = false)
139+
vectorplot!(plt[2, 1], xgrid, eval_func_bary(PointEvaluator([id(u)], sol)), rasterpoints = 20, clear = false)
140140
displace_mesh!(xgrid, sol[u])
141141
gridplot!(plt[3, 1], xgrid, linewidth = 1, title = "displaced mesh")
142142
println(stdout, unicode_gridplot(xgrid))

examples/Example245_NSEFlowAroundCylinder.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function main(; Plotter = nothing, μ = 1e-3, maxvol = 1e-3, reconstruct = true,
122122
gridplot!(plt[1, 1], xgrid, linewidth = 1)
123123
gridplot!(plt[2, 1], xgrid, linewidth = 1, xlimits = [0, 0.3], ylimits = [0.1, 0.3])
124124
scalarplot!(plt[3, 1], xgrid, nodevalues(sol[u]; abs = true)[1, :])
125-
vectorplot!(plt[3, 1], xgrid, eval_func_bary(PointEvaluator([id(u)], sol)), spacing = (0.2, 0.05), vscale = 0.5, clear = false)
125+
vectorplot!(plt[3, 1], xgrid, eval_func_bary(PointEvaluator([id(u)], sol)), rasterpoints = 20, clear = false)
126126
scalarplot!(plt[4, 1], xgrid, view(nodevalues(sol[p]), 1, :), levels = 11, title = "p_h")
127127

128128
return [draglift[1], draglift[2], pdiff[1]], plt

examples/Example250_NSELidDrivenCavity.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ function main(; μ_final = 0.0005, order = 2, nrefs = 5, Plotter = nothing, kwar
9797
initialize!(PE, sol)
9898
end
9999
scalarplot!(plt[1, 1], xgrid, nodevalues(sol[1]; abs = true)[1, :]; title = "velocity (μ = $(extra_params[1]))", Plotter = Plotter)
100-
vectorplot!(plt[1, 1], xgrid, eval_func_bary(PE), spacing = 0.05, clear = false)
101-
streamplot!(plt[1, 2], xgrid, eval_func_bary(PE), spacing = 0.01, density = 2, title = "streamlines")
100+
vectorplot!(plt[1, 1], xgrid, eval_func_bary(PE), rasterpoints = 20, clear = false)
101+
streamplot!(plt[1, 2], xgrid, eval_func_bary(PE), rasterpoints = 50, density = 2, title = "streamlines")
102102

103103
if extra_params[1] <= μ_final
104104
break
@@ -108,8 +108,8 @@ function main(; μ_final = 0.0005, order = 2, nrefs = 5, Plotter = nothing, kwar
108108
end
109109

110110
scalarplot!(plt[1, 1], xgrid, nodevalues(sol[1]; abs = true)[1, :]; title = "velocity (μ = $(extra_params[1]))", Plotter = Plotter)
111-
vectorplot!(plt[1, 1], xgrid, eval_func_bary(PE), spacing = 0.05, clear = false)
112-
streamplot!(plt[1, 2], xgrid, eval_func_bary(PE), spacing = 0.01, density = 2, title = "streamlines")
111+
vectorplot!(plt[1, 1], xgrid, eval_func_bary(PE), rasterpoints = 20, clear = false)
112+
streamplot!(plt[1, 2], xgrid, eval_func_bary(PE), rasterpoints = 50, density = 2, title = "streamlines")
113113

114114
return sol, plt
115115
end

examples/Example265_FlowTransport.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function main(; nrefs = 4, Plotter = nothing, reconstruct = true, FVtransport =
128128
println("\n[min(c),max(c)] = [$(minimum(view(sol[T]))),$(maximum(view(sol[T])))]")
129129

130130
## plot
131-
plt = plot([id(u), id(T)], sol; Plotter = Plotter, ncols = 1, spacing = 0.25, width = 800, height = 800)
131+
plt = plot([id(u), id(T)], sol; Plotter = Plotter, ncols = 1, rasterpoints = 40, width = 800, height = 800)
132132

133133
return sol, plt
134134
end

examples/Example280_CompressibleStokes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function main(;
167167
## plot
168168
plt = GridVisualizer(; Plotter = Plotter, layout = (2,2), clear = true, size = (1000,1000))
169169
scalarplot!(plt[1,1],xgrid, view(nodevalues(sol[u]; abs = true),1,:), levels = 0, colorbarticks = 7)
170-
vectorplot!(plt[1,1],xgrid, eval_func_bary(PointEvaluator([id(u)], sol)), spacing = 0.1, clear = false, title = "u_h (abs + quiver)")
170+
vectorplot!(plt[1,1],xgrid, eval_func_bary(PointEvaluator([id(u)], sol)), rasterpoints = 10, clear = false, title = "u_h (abs + quiver)")
171171
scalarplot!(plt[2,1],xgrid, view(nodevalues(sol[ϱ]),1,:), levels = 11, title = "ϱ_h")
172172
plot_convergencehistory!(plt[1,2], NDofs, Results[:,1:4]; add_h_powers = [order,order+1], X_to_h = X -> 0.2*X.^(-1/2), legend = :best, ylabels = ["|| u - u_h ||", "|| ∇(u - u_h) ||", "|| ϱ - ϱ_h ||", "|| ϱu - ϱu_h ||","#its"])
173173
gridplot!(plt[2,2],xgrid)

0 commit comments

Comments
 (0)