I need something that produce pseudorandom smooth initial data for modelling phase separation equations (Cahn-Hilliard and simular).
Generator code for now:
bounds = 200;
func = Interpolation@
Flatten[Table[{{x, y},
RandomReal[{-0.5, +0.5}]}, {x, -bounds, +bounds}, {y, -bounds, +bounds}], 1];
DensityPlot[func[x, y], {x, -200, 200}, {y, -200, 200},
ColorFunction -> "TemperatureMap", PlotLegends -> Automatic]
And typical output with bounds = 200
But it have interpolation artifacts which leads to system instability in future (i using weak boundary condition).
How to generate smooth initial noise with dispersion that decreases near bounds?
+bounds
and-bounds
to be equal? $\endgroup$with dispersion that decreases near bounds
? $\endgroup$