Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pySDC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atml-ati
pySDC
Commits
0da68512
Commit
0da68512
authored
4 months ago
by
Thibaut Lunet
Browse files
Options
Downloads
Patches
Plain Diff
TL: completed tutorial with pySDC-FNO combination
parent
396c4ab0
No related branches found
No related tags found
No related merge requests found
Pipeline
#261522
passed
4 months ago
Stage: benchmark
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pySDC/playgrounds/dedalus/README.md
+23
-1
23 additions, 1 deletion
pySDC/playgrounds/dedalus/README.md
with
23 additions
and
1 deletion
pySDC/playgrounds/dedalus/README.md
+
23
−
1
View file @
0da68512
# Playground to use Dedalus with pySDC
# Playground to use Dedalus with pySDC
, and coupling with a Fourier Neural Operator (FNO)
:scroll: Interface for
[
Dedalus code
](
https://dedalus-project.readthedocs.io/en/latest/
)
so it can be used within the pySDC framework.
...
...
@@ -133,6 +133,28 @@ while solver.proceed:
A full example script for the 2D Rayleigh-Benard Convection problem can be found
[
here
](
./rayleighBenardSDC.py
)
.
## SDC coupled with FNO for initial guess
FNO model trained using Dedalus (or pySDC) generated data can be used to compute the initial guess for SDC sweep.
This requires the installation of the
[
`cfno`
](
https://github.com/Parallel-in-Time/cfno/tree/tibo
)
package,
and here is a template example for its usage :
```
python
from
pySDC.playgrounds.dedalus.sdc
import
SpectralDeferredCorrectionIMEX
checkpoint
=
"
path/to/checkpoint.pt
"
SpectralDeferredCorrectionIMEX
.
setupNN
(
"
FNOP-2
"
,
checkpoint
=
checkpoint
,
initSweep
=
"
NN
"
)
# Build Dedalus problem and give additional SDC settings ...
```
Some FNO-based sweepers are also available for
`pySDC`
and currently stored in the
`cfno`
package,
see
[
cfno.simulation.sweeper
](
https://github.com/Parallel-in-Time/cfno/blob/tibo/cfno/simulation/sweeper.py
)
.
Those consists on two classes,
`FNO_IMEX`
and
`FNO_IMEX_PINT`
,
allowing to run IMEX-SDC with any kind of problem implemented in
`pySDC`
and adapted to those type of sweeper.
## Time-parallel SDC time-integrator for Dedalus
Two MPI implementations of SDC time-integrators for
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment