Adaptively coupled multiphysics simulations with Trixi.jl
iomsn
20 views
15 slides
Jul 23, 2024
Slide 1 of 15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
About This Presentation
We extended the capabilities of the numerical simulation framework Trixi.jl to be able to simulate adaptively coupled multiphysics systems. Coupling is performed through the boundary values of the systems where the coupling functions can be freely defined, depending on the physical nature of the int...
We extended the capabilities of the numerical simulation framework Trixi.jl to be able to simulate adaptively coupled multiphysics systems. Coupling is performed through the boundary values of the systems where the coupling functions can be freely defined, depending on the physical nature of the interface. This allows us to couple any pair of systems, like Navier-Stokes equations with magnetohydrodynamic equations. This is particularly useful for hierarchical systems found in e.g. Astrophysics where we can have a complex model for a small part of the domain and a simplified model on a larger part. This can greatly reduce the computational cost and decrease the computational time. To account for dynamic changes in the physics that need to be solved at any given point in space, we support adaptively coupled domains. The criteria for changing the domain boundaries can be freely defined and tailored to the problem. One application is the propagation of magnetic fields in space where we solve the magnetohydrodynamic equations only for the part of the domain with a significant magnetic field.
Size: 1.48 MB
Language: en
Added: Jul 23, 2024
Slides: 15 pages
Slide Content
Adaptively Coupled Multiphysics
Simulations with Trixi.jl
Simon Candelaresi, Michael Schlottke-Lakemper
Luca Rüedi
(zuonline.ch)
Magnetotail
3
(ESA)
bow shock
magnetic streamlines
(movie)
Coupling via Converter Functions
8
Two system with any number of shared variables, including 0:
User can define converter functions.
Any pair of systems can be coupled.
coupling_function12 = (x, u, equations_other, equations_own)
-> SVector(u[1], u[2], u[3], 0.0, u[4], 0.0, 0.0, 0.0, 0.0)
coupling_function21 = (x, u, equations_other, equations_own) -> SVector(u[1], u[2], u[3], u[5])
2.5d MHD 2d Euler
Adaptive Coupling
12
strong currents and magnetic fields
Euler
Euler MHD
MHD
Use callback functions to remesh.
Use coupling functions to copy data.
Adaptive Coupling
13
1. Generate the new grid.
2. Write new u-solution vectors
3. Generate new ODE for OrdinaryDiffEq (integrator).
4. Reinitialize ODE integrator with new problem and new solution vector.
Euler and MHD
14
Conclusion
Flexible coupling through converter functions.
Free domain definitions.
Adaptive coupling with arbitrary criteria. [email protected]
Coupled hierarchy of models.