I had this working with Kuba's help some time ago see here but something has changed. I am using version 13.0.
The animation lay out has changed to this configuration where the animation bar is occupying a row with the two graphics also in the row. It should be above the graphics.
Can anyone see what has changed and how to fix it?
The code is as follows.
Deploy@DynamicModule[{pts, bdr = {{0, 0}, {1, 0}, {1, 1}, {0, 1}},
vals, funs, n = 2, calculate},
Animate[Column[{
Row[{
Button["Reset",
pts = Table[{6, 6} +
3 {Cos[[Theta]], Sin[[Theta]]}, {[Theta], 0,
2 [Pi] - 2 [Pi]/10, 2 [Pi]/10}];
calculate[]],
" Mode Number = ",
Slider[Dynamic[n, {Automatic, calculate[] &}], {2, 6, 1},
Appearance -> "Labeled"]
}],
Row[{
LocatorPane[Dynamic[pts, {Automatic, calculate[] &}],
Graphics[{{Dynamic[
First@ContourPlot[funs[[n]] Cos[t], {x, y} \[Element] bdr,
Axes -> None, Frame -> None, AspectRatio -> Automatic,
ColorFunction ->
Function[f, {ColorData["TemperatureMap"][f]}],
PlotPoints -> ControlActive[20, 50]],
TrackedSymbols :> {bdr, n, t}]},
{FaceForm@None, EdgeForm@Thick, Polygon@Dynamic@pts}},
Frame -> True, PlotRange -> {{0, 12}, {0, 12}},
ImageSize -> 5 72]],
Dynamic[
Graphics3D[{GeometricTransformation[
First@Plot3D[funs[[n]], {x, y} \[Element] bdr,
Axes -> None, AspectRatio -> Automatic, PlotRange -> All],
ScalingTransform[{1, 1, Dynamic@Cos[t]}, {6, 6, 0}]]},
PlotRange -> {{0, 12}, {0, 12}, {-1, 1}},
BoxRatios -> {1, 1, .5}, ImageSize -> 5 72,
ViewPoint -> {-6, -20, 20}]]
}]
}],
{t, 0, 2 [Pi]}],
Initialization :> (
pts =
Table[{6, 6} + 3 {Cos[[Theta]], Sin[[Theta]]}, {[Theta], 0,
2 [Pi] - 2 [Pi]/10, 2 [Pi]/10}];
calculate[] := (
bdr = Polygon@pts;
{vals, funs} =
NDEigensystem[{-Laplacian[u[x, y], {x, y}]},
u[x, y], {x, y} [Element] bdr, 6];
);
calculate[];
)
]



ControlPlacement -> TopinAnimate, does it help? – Kuba Oct 25 '22 at 11:19PerformanceGoal -> "Speed"in theContourPlotbut the ux is still worse. – Kuba Oct 25 '22 at 11:37