. .
.
..
.
.
.
Coupled calculations in OpenFOAM -
Multiphysics handling, structures and solvers, Gothenburg Region OpenFOAM User Group Meeting Klas Jareteg
Chalmers University of Technology
. . . . Coupled calculations in OpenFOAM - Multiphysics - - PowerPoint PPT Presentation
. . . . . . . . Coupled calculations in OpenFOAM - Multiphysics handling, structures and solvers, Gothenburg Region OpenFOAM User Group Meeting Klas Jareteg Chalmers University of Technology November 14, 2012 . . . . Outline .
.
..
.
.
Chalmers University of Technology
.
.. Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 2
.
.On coupled problems Region coupling Background OpenFOAM Application: multiphysics in nuclear reactors Field coupling Background Application: block coupled incompressible flow solver Summary and future outlook
. On coupled problems . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 3
.
.. . On coupled problems . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 4
.
.On coupled problems Region coupling Background OpenFOAM Application: multiphysics in nuclear reactors Field coupling Background Application: block coupled incompressible flow solver Summary and future outlook
. Region coupling . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 5
.
.regions at once
Figure: conjugateCavity, dual region simulation
Region 1 Region 2
Coupled boundary
Region 1+2 . Region coupling — Background . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 6
.
.coupledFvScalarMatrix TEqns (2 ); // Add f l u i d equation TEqns . set ( 0 , new fvScalarMatrix ( fvm : : ddt(T) + fvm : : div(phi , T) − fvm : : laplacian (DT , T) ) ) ; // Add s o l i d equation TEqns . set ( 1 , new fvScalarMatrix ( fvm : : ddt( Tsolid ) − fvm : : laplacian (DTsolid , Tsolid ) ) ) ; TEqns . solve ( ) ;
Energy equation in conjugateHeatFoam
. . Region coupling — OpenFOAM . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 7
.
.Additional sources:
solver”. MA thesis. Chalmers University of Technology, 2012
. Region coupling — OpenFOAM . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 8
.
.Power Fuel temperature Fuel temperature W a t e r d e n s i t y Water temperature . Region coupling — Application: multiphysics in nuclear reactors . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 9
.
.fluid: convection)
(same model equation all regions)
Fuel Gap Coolant Cladding Figure: Slice of nuclear fuel pin
. . Region coupling — Application: multiphysics in nuclear reactors . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 10
.
.Details:
solver”. MA thesis. Chalmers University of Technology, 2012
. . Region coupling — Application: multiphysics in nuclear reactors . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 11
.
.(a) All regions (b) Moderator only
Figure: Radial temperature profiles.
. . Region coupling — Application: multiphysics in nuclear reactors . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 12
.
.On coupled problems Region coupling Background OpenFOAM Application: multiphysics in nuclear reactors Field coupling Background Application: block coupled incompressible flow solver Summary and future outlook
. Field coupling . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 13
.
.Solve one field at a time. Explicit coupling.
at once. Implicit coupling.
Figure: bubbleColumn
. Field coupling — Background . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 14
.
.Additional sources:
Solution, Coupled Matrices. June 2010
two or more immiscible fluids. June 2010
. . Field coupling — Application: block coupled incompressible flow solver . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 15
.
.faces
faces
faces
Additional sources:
flows on unstructured grids”. In: Journal of Computational Physics 228 (2009), pp. 180–201
incompressible and compressible flows. June 2010
. Field coupling — Application: block coupled incompressible flow solver . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 16
.
.// − Diagonal c o e f f i c i e n t s CoeffField<Type>* diagPtr_ ; // − Upper t r i a n g l e c o e f f i c i e n t s . Also used for symmetric matrix CoeffField<Type>* upperPtr_ ; // − Lower t r i a n g l e c o e f f i c i e n t s CoeffField<Type> *lowerPtr_ ;
BlockLduMatrix.H
term in the continuity and momentum equations (Eqs. (3) and (3)) ∑
faces
[ Uf − Df ( ∇Pf − ∇Pf )] · Sf = 0 ∑
faces
[UU − ν∇U]f · Sf = − ∑
faces
PfSf
. . Field coupling — Application: block coupled incompressible flow solver . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 17
.
.ai,j = au,u ap,u av,v ap,v aw,w ap,w au,p av,p aw,p ap,p
i,j
(5)
xi = u v w p
i
(6)
Description of work:
within: CFD with OpenSource software, 2012, Chalmers. Oct. 2012
. . Field coupling — Application: block coupled incompressible flow solver . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 18
.
.200 400 600 800 1000 Iteration 10
10
10
10
10
10
10
10
10
10
10 Residuals
(- simpleFoam, -- pUCoupledFoam) Velocity (x) Pressure
(a) Iterations
5 10 15 20 25 30 35 40 ['Elapsed time [s]'] 10
10
10
10
10
10
10
10
10
10
10 Residuals
(- simpleFoam, -- pUCoupledFoam) Velocity (x) Pressure
(b) Elapsed time
Figure: Comparison of convergence for simpleFoam and pUCoupledFoam. Laminar case.
. . Field coupling — Application: block coupled incompressible flow solver . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 19
.
.200 400 600 800 1000 Iteration 10
10
10
10
10
10
10
10
10
10
10 Residuals
(- simpleFoam, -- pUCoupledFoam) Turbulent energy Velocity (x) Pressure
(a) Iterations
10 20 30 40 50 60 70 80 90 ['Elapsed time [s]'] 10
10
10
10
10
10
10
10
10
10
10 Residuals
(- simpleFoam, -- pUCoupledFoam) Turbulent energy Velocity (x) Pressure
(b) Elapsed time
Figure: Comparison of convergence for simpleFoam and pUCoupledFoam. Turbulent case.
. . Field coupling — Application: block coupled incompressible flow solver . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 20
.
.On coupled problems Region coupling Background OpenFOAM Application: multiphysics in nuclear reactors Field coupling Background Application: block coupled incompressible flow solver Summary and future outlook
. Summary and future outlook . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 21
.
.. Summary and future outlook . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 22
.
.. . Summary and future outlook . Klas Jareteg, Gotheburg Region OpenFOAM User Group Meeting . 23