The easiest solution is probably to use an Expression or a UserExpression to directly interpolate a random variable into an appropriate FunctionSpace. See this thread for examples:
kamensky
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Generate synthetic data!
|
2 | 554 | September 27, 2021 | |
| Stokes problem with only Dirichlet boundary condition | 14 | 745 | August 4, 2023 | |
| AssertError in solving Stokes equation | 2 | 424 | January 14, 2024 | |
| Mixed formulation of stokes equations | 12 | 773 | June 23, 2024 | |
| Problem in mixed-function space boundary conditions for stokes equation | 8 | 241 | April 8, 2025 |