26
. . . . . Multiphysics simulations of nuclear reactors and more Gothenburg Region OpenFOAM®User Group Meeting Klas Jareteg [email protected] Division of Nuclear Engineering Department of Applied Physics Chalmers University of Technology November 12, 2014

Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

..

...

.

.

.

.

Multiphysics simulations of nuclearreactors and more

Gothenburg Region OpenFOAM®User GroupMeeting

Klas Jareteg

[email protected] of Nuclear EngineeringDepartment of Applied Physics

Chalmers University of Technology

November 12, 2014

Page 2: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Outline

• Multiphysics and multiscale in Light Water Reactors (LWRs)• Neutronics and thermal-hydraulics in OpenFOAM®:• Multiple mesh methodology; mapping and parallelization• Handling large sets of input parameters• Example of a simplified Pressurized Water Reactor assembly

and more ...• Coupled pressure and velocity solver in foam-extend-3.1

..2

Page 3: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Multiscale systems

..3

Page 4: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Multiphysics systems

..Light Water

Reactor (LWR)Multiphysics

.Neutronics

..

Powerdensity

.Reactionproba-bilities.

Fuelproperties

.

.

Temper-ature

.

Density

.

Waterproperties

.

.

Temper-ature

.

Density

.

Fuel reaction probabilities:Temperature and density coupling

.

Power density:Energy source in fuel temperature

. Temperatures:Dependence between water andfuel properties

.

Water cross-sections:Water density coupling

..4

Page 5: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.FIRE - FIne mesh deterministic REactor modelling

Development of a fine meshcomputational tool for nuclear fuelbundles:

• integrated approach for solvingneutronics and thermal-hydraulics

• single and two-phase flow modelsbased on first principles

• high-resolution coupling on finemeshes using HPC

• fuel bundle size calculations,ultimately coupled to coarse meshsolvers

Figure: Power density distribution at fuel pins.

Financing:• SKC - Swedish Center for Nuclear Technology

Supervisors:• Christophe Demazière, Paolo Vinai, Srdjan Sasic

..5

Page 6: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Neutronics solver

Steady-state eigenvalue problem• Eigenvalue problem solved by power iteration method• Diffusion solver based on multiple groups:

∇ · (Dg∇Φg) + ΣT,gΦg = Sg +1

k Fg (1)

• Fast but limited accuracy for fine-mesh with heterogeneousparameters

• Implemented using a block matrix formulation• Discrete ordinates method, multiple groups and multiple directions:

Ωm · ∇Ψm,g +ΣT,gΨm,g = Sm,g +χgk Fg (2)

• More accurate, but computationally heavy• Transport method required for fine mesh problems

..Block matrix systems in OFW9 training, Zagreb, 2014: ”Block coupled matrixsolvers in foam-extend-3”, Klas Jareteg and Ivor Clifford

.More information:

..6

Page 7: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Neutronics solver - Discrete ordinates method

Implementation of discrete ordinates:• Standard matrix solvers potentially inefficient• Following ordinate Ωm, a direct sweep through

the domain allows Ψm,g to be computed inone sweep

• Sweeping order of the cells calculated atinitialization

• Parallelization handled as in GaussSeidelsolvers (corresponding to full boundaryexchange after finisihed sweep)

6

1

2

3

4

5 7

8

9

1011

12

Figure: Example of a sweepordering for an unstructuredmesh

..363f o r ( r e g i s t e r label cellI=0; cellI<nCells ; cellI++)364365// Mod i f i ca t ion f o r ordered sweep366r e g i s t e r label cellJ = sweepOrder [ cellI ] ;

.Code: steadyDOMSweeNeutronics.C

..7

Page 8: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Thermal-hydraulics single-phase solver

Steady state single phase solver:• Approach equivalent to

simpleFoam• Buoyancy taken into account

for density variation fromheating

• Generally slow convergence forpressure and velocity

Figure: Temperature distribution in coolantaround a single fuel pin.

..Presentation on coupled pressure and velocity solver from OFW9, Zagreb, 2014:”puCoupledFoam - an open source coupled incompressible pressure-velocity solverbased on foam-extend” Klas Jareteg, Vuko Vukcevic, Hrvoje Jasak

.More information:

..8

Page 9: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Thermal-hydraulics: conjugate heat transfer

• Multiregion approach, separate meshes for all solid and liquid regions

• Implicit heat transfer by using regionCouple• Explicit iteration over all regions not an alternative, too many regions

• Temperature dependent thermophysical properties• Based on table interpolation, inheriting basicThermo

..9

Page 10: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Thermal-hydraulics two-phase solver

• Two-phase flow model under development to extend solver toBoiling Water Reactors (BWRs)

• Large variety of complex behavior to be covered• Solver based on a population balance methods

Figure: Void fraction, bubble mean diameter and axial velocity

..10

Page 11: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Steady state coupling algorithm

• Explicit scheme, coupled convergence iteration• Neutronics and thermal-hydraulic modules implemented as classes.

Easy testing of different implementations using inheritance andrun-time choosable mechanism

...

Neu

tron

ics

.

Update temperature

.Update cross-sections .Update neutron flux

.

Update power profile

..

Therm

al-hydraulics

.

Update power profile

. Update pressure, velocityand temperature.

Update thermo-physical state

.

Convergence check

.

Subiteration

.

Convergence check

.

Subi

tera

tion

.

Global convergence check

.

Initialize

.Mesh to mesh transfer

of enthalpyand power density

Figure: Iterative coupled scheme. [1]

..11

Page 12: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Class structure

• Solvers for each field written as objects• Direct inheritance allows for different models to be tested in the

coupled scheme

..neuth-2.0.

fvMesh

.

fvMesh

.

steadyNeutronics

.

steadyDifNeutronics

.

steadyCoupledDifNeutronics

.

steadyDOMNeutronics

.

steadyDOMSweepNeutronics

.

whiteDOMFvPatchField

.

freeDOMFvPatchField

.

reflectiveDOMFvPatchField

.

xsecSetSN

.

xsecMultiRegionSN

. xsecSet.

xsecMultiRegion

.

thermoState

.

steadyThermalHydraulics

.

steadyThermalHydraulics

.

TRhoThormoK

.

TSolidThormoK

Figure: Simplified class structure of coupled solver

..12

Page 13: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Transient multiphysics calculationsMaster thesis project by Rasmus Andersson

• Currently developing a transient multiphysics solver• Thermal-hydraulic solvers based on PISO algorithm, with variable

density• Neutronics solver based on diffusion solver

0 1 2 3 4 5Time [s]

107

108

109

1010

1011

1012

1013

Pow

er

[W]

Total power in the system

..13

Page 14: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Multiple meshes - Generation and setup

• Repeating structure of fuel pinsallows for repeated mesh

• Automatic setup of regioncoupled interfaces for thethermal-hydraulics

Figure: Mesh example for a quarter of a fuel pin

..14

Page 15: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Multiple meshes - Mapping I

Different meshes in different regions:• Finer mesh in the liquid coolant than in neutronics in general• Mapping algorithm needed for data exchange:

..MESH A

.MESH B

.

Cell j in mesh A

.

Intersection Iij be-tween cell j in mesh Aand cell i in mesh B

.

Cell i in mesh B

Figure: Example of mapping of two overlapping meshes. [1]

• Fully conservative transfer of extensive quantities• Geometric overlaps computed equivalent to GGI face overlaps,

extended to 3D

..15

Page 16: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Multiple meshes - Mapping II

• Mapping handled locally on each CPU

..

164// Compute c e l l i n t e r s e c t i o n between a l l f u e l meshes and neut ron i c s165PtrList<intersectionChecker> iSolid (I ) ;166167forAll ( iSolid , i )168169iSolid . set (i , new intersectionChecker ( solidMeshes [ i ] , neutronicsMesh ) ) ;170

.

Code: neuthFoam-2.0.C

..

297// Transper power d i s t r i b u t i o n from neut ron i c s to f u e l meshes298const volScalarField& Pnk = neutronics−>P ( ) ;299PtrList<volScalarField>& PS = thermalhydraulics−>P ( ) ;300301forAll ( solidMeshes , i )302303// Trans fe r the power f i e l d and immediate ly normal ize304solidMeshes [ i ] . backwardFieldVolumetric ( PS [ i ] , Pnk ) ;305

.

Code: neuthFoam-2.0.C

..16

Page 17: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Multiple meshes - Mapping III

• Parallelization: all meshes are split in same planes• meshPartitionerRegion (not yet released) used to generate cell

sets.

..1Directions (1 1 4 ) ;2Mode ”manual” ;3X (0 .0 1 . 0 ) ;4Y (0 .0 1 . 0 ) ;5Z (−100.0 0.4 0.7 1.1 100 .0 ) ;

.

Code: meshPartitionerDict

..17

Page 18: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Neutronics mesh - cross-section handling

• Different cross-sections indifferent materials

• Handled using cell sets ...

Symmetry line

.......2 % UOX

. 2 % UOX with 2% Gd2O3

.4 % UOX

.

Water, 1000 ppm boron

.

Gap, helium

.

Reflective boundary

Figure: Horizontal view of test system. [1]

..

1// Automat ica l ly generated c e l l s e t f o r f u e l reg ion , input to se tSet2cellSet fue\_I0\_J0\_U100\_out new cylinderToCell3(0 .0 e+00 0.0 e+00 0.0 e+00) (0 .0 e+00 0.0 e+00 1.0e−02) 1.340407e−034. . .5cellSet fue_I0_J0_U100 new rotatedBoxToCell6(0 .0 e+00 0.0 e+00 0.0 e+00) (1.366667e−03 0.0 e+00 0.0 e+00)7(8.368420e−20 1.366667e−03 0.0 e+00) (0 .0 e+00 0.0 e+00 1.0e−02)8cellSet fue_I0_J0_U100 d e l e t e cellToCell fue_I0_J0_U100_box

.

Code: Cell sets for cross-sections

..18

Page 19: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Example case

...

Symmetry line

.......2 % UOX

. 2 % UOX with 2% Gd2O3

.4 % UOX

.

Water, 1000 ppm boron

.

Gap, helium

.

Reflective boundary

Figure: Horizontal view of test system. [1]

• Quarter of 15× 15 system• PWR conditions• System height 100 cm

(+2× 20 cm reflector)• 6,088,000 cells in coolant,

798,000 in neutronics• Decomposed in 64

domains• 8 neutron energy groups• S8 (80 directions)

..19

Page 20: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Example case - Results I I

• Problem converged in14 hours using 64 CPUs(Nehalem Intel® Xeon®E5520, 2.27GHz)

• Multiphysics couplingconverged in 8 iterations

Figure: Moderator temperature. [1]

..20

Page 21: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Example case - Results I I

...0.2

.0.4

.

0.6

.

0.8

.

1.0

Figure: Scalar flux at mid-elevation for the fast group. [1]

..21

Page 22: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Slow convergence in incompressible flow solvers

Background• Generally slow convergence of segregated steady-state

incompressible solvers• A large number of iterations needed to resolve coupling between

pressure and velocity• Coupled solvers potentially give an increased convergence rate

Applications• Single-phase flow around PWR between fuel pins• Low mach simulations around external surfaces• ...

..22

Page 23: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.Implicit formulation

• Navier-Stokes, incompressible, steady-state equations:

∇ · (U) = 0 (3)

∇ · (UU)−∇(ν∇U) = −1

ρ∇p (4)

• with the semi-discretized form:∑faces

Uf · Sf = 0 (5)

∑faces

[UU − ν∇U]f · Sf = −∑faces

PfSf (6)

• Rhie-Chow interpolation in the continuity equation:∑faces

[Uf − Df

(∇Pf −∇Pf

)]· Sf = 0 (7)

a coupled system of four equations is formulated.

..23

Page 24: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.pUCoupledFoam - Coupled incompressible solver I

Coupled solver• Coupled solver implemented in foam-extend-3

Example case• Structured mesh, 4800 cells, laminar case• Comparison of SIMPLE algorithm and coupled algorithm

Figure: Geometry and velocity solution for back facing step case

..24

Page 25: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

.

.pUCoupledFoam - Coupled incompressible solver II

0 50 100 150 200 250 300Iteration

10-8

10-7

10-6

10-5

10-4

10-3

10-2

10-1

100

Resi

dual

Backward facing stepp, simpleFoam, CG/BiCG, (lam)

Ux, simpleFoam, CG/BiCG, (lam)

p, pUCoupledFoam, BiCGStab, (lam)

Ux, pUCoupledFoam, BiCGStab, (lam)

p, pUCoupledFoam, AMG, (lam)

Ux, pUCoupledFoam, AMG, (lam)

Figure: Performance of simpleFoam compared to pUCoupledFoam.

..25

Page 26: Multiphysics simulations of nuclear reactors and morehani/OFGBG14/KlasJareteg_OFGBG_for... · 2015. 4. 17. · Multiphysics simulations of nuclear reactors and more Gothenburg

Questions?

..[1] K. Jareteg et al. “Coupled fine-mesh neutronics andthermal-hydraulics - modeling and implementation for PWRfuel assemblies”. In: Submitted to Annals of NuclearEnergy, Special Issue: ”Multi-Physics Modeling of LWRStatic and Transient Behavior” (2014).

.More information:

..26