Coupled calculations in OpenFOAM -

Similar documents
OpenFOAM selected solver

Rhie-Chow interpolation in OpenFOAM 1

Solving the Navier-Stokes Equations

Fine-mesh multiphysics of LWRs: two-phase flow challenges and opportunities

CFD Modelling with OpenFOAM

Transient, Source Terms and Relaxation

A Two-Fluid/DQMOM Methodology For Condensation In Bubbly Flow

The Finite Volume Mesh

Multigrid Methods and their application in CFD

Large Scale Fluid-Structure Interaction by coupling OpenFOAM with external codes

Simplified Model of WWER-440 Fuel Assembly for ThermoHydraulic Analysis

Lecture 2: Fundamentals 2/3: Navier-Stokes Equation + Basics of Discretization

FVM for Fluid-Structure Interaction with Large Structural Displacements

THE APPLICATION OF A MULTI-PHYSICS TOOLKIT TO SPATIAL REACTOR DYNAMICS

viscousheatingsolver Martin Becker

SIMPLE Algorithm for Two-Dimensional Channel Flow. Fluid Flow and Heat Transfer

FEniCS Course. Lecture 6: Incompressible Navier Stokes. Contributors Anders Logg André Massing

FREE BOUNDARY PROBLEMS IN FLUID MECHANICS

A Robust Preconditioned Iterative Method for the Navier-Stokes Equations with High Reynolds Numbers

Numerics Improvements and Validation Results: FOAM-Extend

Efficient FEM-multigrid solver for granular material

Natural Convection in Parabolic Enclosure Heated from Below

CFD with OpenSource software

Calculation of Sound Fields in Flowing Media Using CAPA and Diffpack

FMIA. Fluid Mechanics and Its Applications 113 Series Editor: A. Thess. Moukalled Mangani Darwish. F. Moukalled L. Mangani M.

OpenFOAM SIMULATION OF THE FLOW IN THE HÖLLEFORSEN DRAFT TUBE MODEL

Code Verification of Multiphase Flow with MFIX

OUTLINE ffl CFD: elliptic pde's! Ax = b ffl Basic iterative methods ffl Krylov subspace methods ffl Preconditioning techniques: Iterative methods ILU

A finite-volume algorithm for all speed flows

5. FVM discretization and Solution Procedure

EFFECT OF DISTRIBUTION OF VOLUMETRIC HEAT GENERATION ON MODERATOR TEMPERATURE DISTRIBUTION

The Finite Volume Method in

Magnetic induction and electric potential solvers for incompressible MHD flows

Computational Engineering

CFD SIMULATIONS OF THE SPENT FUEL POOL IN THE LOSS OF COOLANT ACCIDENT

Development of a consistent and conservative Eulerian - Eulerian algorithm for multiphase flows

Coupling SUNDIALS with OpenFOAM 6 th OpenFOAM Workshop. E. David Huckaby June 14, 2011

International Engineering Research Journal Comparative Study of Sloshing Phenomenon in a Tank Using CFD

PDE Solvers for Fluid Flow

Lectures on Applied Reactor Technology and Nuclear Power Safety. Lecture No 6

Newton-Multigrid Least-Squares FEM for S-V-P Formulation of the Navier-Stokes Equations

Evaluation of OpenFOAM for CFD of turbulent flow in

THERMAL HYDRAULIC REACTOR CORE CALCULATIONS BASED ON COUPLING THE CFD CODE ANSYS CFX WITH THE 3D NEUTRON KINETIC CORE MODEL DYN3D

Fast solvers for steady incompressible flow

Micro-Scale CFD Modeling of Packed-Beds

Cranfield University, Cranfield, Bedfordshire, MK43 0AL, United Kingdom. Cranfield University, Cranfield, Bedfordshire, MK43 0AL, United Kingdom

Computation for the Backward Facing Step Test Case with an Open Source Code

A FINITE VOLUME-BASED NETWORK METHOD FOR THE PREDICTION OF HEAT, MASS AND MOMENTUM TRANSFER IN A PEBBLE BED REACTOR

Newton s Method and Efficient, Robust Variants

fluid mechanics as a prominent discipline of application for numerical

RECENT DEVELOPMENTS IN COMPUTATIONAL REACTOR ANALYSIS

Stabilization and Acceleration of Algebraic Multigrid Method

A unifying model for fluid flow and elastic solid deformation: a novel approach for fluid-structure interaction and wave propagation

CFD AND CONJUGATE HEAT TRANSFER ANALYSIS OF HEAT SINKS WITH DIFFERENT FIN GEOMETRIES SUBJECTED TO FORCED CONVECTION USED IN ELECTRONICS COOLING

Spatial discretization scheme for incompressible viscous flows

NUMERICAL METHOD FOR THREE DIMENSIONAL STEADY-STATE TWO-PHASE FLOW CALCULATIONS

Stratified scavenging in two-stroke engines using OpenFOAM

Efficient simulation techniques for incompressible two-phase flow

Efficient Augmented Lagrangian-type Preconditioning for the Oseen Problem using Grad-Div Stabilization

Two-Dimensional Unsteady Flow in a Lid Driven Cavity with Constant Density and Viscosity ME 412 Project 5

Elmer. Introduction into Elmer multiphysics. Thomas Zwinger. CSC Tieteen tietotekniikan keskus Oy CSC IT Center for Science Ltd.

PALADINS: Scalable Time-Adaptive Algebraic Splitting and Preconditioners for the Navier-Stokes Equations

Description of AdjointShapeOptimizationFoam and how to implement new cost functions

Draft Tube calculations using OpenFOAM-1.5dev and validation with FLINDT data

Numerical Investigation of Conjugate Natural Convection Heat Transfer from Discrete Heat Sources in Rectangular Enclosure

Computational and Experimental Studies of Fluid flow and Heat Transfer in a Calandria Based Reactor

CFD Analysis of Forced Convection Flow and Heat Transfer in Semi-Circular Cross-Sectioned Micro-Channel

( ) Notes. Fluid mechanics. Inviscid Euler model. Lagrangian viewpoint. " = " x,t,#, #

Transport equation cavitation models in an unstructured flow solver. Kilian Claramunt, Charles Hirsch

Conservation of Mass. Computational Fluid Dynamics. The Equations Governing Fluid Motion

Computational Fluid Dynamics Overview, Scope and Relevance

An Introduction to COMSOL Multiphysics v4.3b & Subsurface Flow Simulation. Ahsan Munir, PhD Tom Spirka, PhD

APPLICATION OF THE COUPLED THREE DIMENSIONAL THERMAL- HYDRAULICS AND NEUTRON KINETICS MODELS TO PWR STEAM LINE BREAK ANALYSIS

Some remarks on grad-div stabilization of incompressible flow simulations

Develpment of NSCBC for compressible Navier-Stokes equations in OpenFOAM : Subsonic Non-Reflecting Outflow

Capability of CFD-tools for supersonic multiphase flows

Fast Iterative Solution of Saddle Point Problems

The Deflation Accelerated Schwarz Method for CFD

A numerical study of heat transfer and fluid flow over an in-line tube bank

Enhancement of Heat Transfer Effectiveness of Plate-pin fin heat sinks With Central hole and Staggered positioning of Pin fins

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

SOE3213/4: CFD Lecture 1

1-4 M BH10A1600 Energy Technology Project Work INT 16-INT 17

An Efficient Low Memory Implicit DG Algorithm for Time Dependent Problems

AN UNCERTAINTY ESTIMATION EXAMPLE FOR BACKWARD FACING STEP CFD SIMULATION. Abstract

MODELLING OF MULTIPHASE FLOWS

Beirut, Riad El Solh, Beirut, Lebanon Published online: 21 Aug 2007.

Incompressible laminar flow - newtonian and non-newtonian fluids

An Overview of Impellers, Velocity Profile and Reactor Design

DNS of the Taylor-Green vortex at Re=1600

Fluid Animation. Christopher Batty November 17, 2011

Explicit algebraic Reynolds stress models for boundary layer flows

Simulating Interfacial Tension of a Falling. Drop in a Moving Mesh Framework

First-principles based catalytic reaction engineering Matteo Maestri

Lecture 30 Review of Fluid Flow and Heat Transfer

Detailed 3D modelling of mass transfer processes in two phase flows with dynamic interfaces

Faster Kinetics: Accelerate Your Finite-Rate Combustion Simulation with GPUs

Computational Fluid Dynamics-1(CFDI)

Jacobian-Free Newton Krylov Discontinuous Galerkin Method and Physics-Based Preconditioning for Nuclear Reactor Simulations

Transcription:

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 Region coupling and block coupling Overview of coupled formats in OpenFOAM Application 1: Multiphysics simulations for nuclear reactors Application 2: Block coupled solver for incompressible flow Summary and future outlook 2

On coupled problems 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 3

Coupled problems Multiple field problems and/or equations problems, eg: Navier-Stokes Conjugate heat-transfer Nuclear reactor modeling Multi-group radiation Multiphase modeling Not enough to solve one problem How to solve the coupling of the fields/equations/regions? On coupled problems 4

Region coupling 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 5

Background Characteristic: Multiple materials (solid/fluid) Similar physics in many regions (T) Coupled boundaries Solution methods: Segregated solver - Iterative solution of region by region Coupled solver - Solve multiple regions at once Figure: conjugatecavity, dual region simulation Coupled boundary Region 1 Region 2 Region 1+2 Region coupling Background 6

Regional coupling in OpenFOAM I Regional coupling availble through couplefvmatrix 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 7

Regional coupling in OpenFOAM II regioncouple boundary condition at coupled patches Existing solvers CG, BiCGStab, BiCG, smoothsolver Parallelizable Utilities (mostly) compatible with multiple regions (splitmesh, foamtovtk, sample, decomposepar, reconstructpar) Additional sources: H Jasak Coupled Multiphysics with OpenFOAM Inter-Region and Inter-Equation Coupling K Jareteg Development of an integrated deterministic neutronic/thermalhydraulic model using a CFD solver MA thesis Chalmers University of Technology, 2012 Region coupling OpenFOAM 8

Application: multiphysics in nuclear reactors Nuclear reactor cores: multiphysics environment Neutron density field Water density Flow properties Power Fuel temperature Fuel properties Fuel temperature Water temperature Region coupling Application: multiphysics in nuclear reactors 9

Multi-region environment: Both solid and fluid, different types of materials Fields in all regions: Temperature (solid: conduction, fluid: convection) Multi-group neutron density field (same model equation all regions) Figure: Slice of nuclear fuel pin Fuel Coolant Gap Cladding Region coupling Application: multiphysics in nuclear reactors 10

OpenFOAM implementation Implemented using OpenFOAM 16-ext Region coupling for an arbitrary number of pins Segregated solver considering field dependencies Details: K Jareteg Development of an integrated deterministic neutronic/thermalhydraulic model using a CFD solver MA thesis Chalmers University of Technology, 2012 K Jareteg Klas Jareteg, PhD Student, Personal web page 2012 url: klasnephychalmersse Region coupling Application: multiphysics in nuclear reactors 11

Example results (a) All regions (b) Moderator only Figure: Radial temperature profiles Region coupling Application: multiphysics in nuclear reactors 12

Field coupling 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 13

Coupling 2: Field coupling Characteristic: Multiple fields (α, U g, U l, p) Couplings between fields Same mesh (typically) Field dependent parameters Solution methods: Segregated solver - Iterative solution Solve one field at a time Explicit coupling Coupled solver - Solve all/multiple fields at once Implicit coupling Figure: bubblecolumn Field coupling Background 14

Application block coupled incompressible flow solver Incompressible steady-state Navier-Stokes: (U) = 0 (1) (UU) (ν U) = 1 p (2) ρ Traditionally segragated solvers (OpenFOAM simplefoam) Often slow convergence, pressure equation elliptic behaviour Possible remedy: coupled calculation using OpenFOAM 16-ext: BlockLduMatrix Additional sources: Henrik Rusche and Hrvoje Jasak Implicit solution techniques for coupled multi-field problems Block Solution, Coupled Matrices June 2010 Julia Springer et al A coupled pressure based solution algorithm based on the Volume-of-Fluid approach for two or more immiscible fluids June 2010 Ivor Clifford Block-Coupled Simulations Using OpenFOAM June 2011 Field coupling Application: block coupled incompressible flow solver 15

Theory SIMPLE algorithm: pressure equation from the continuity equation, explicit use of velocity (from momentum predictor step) Alternative approach: Rhie-Chow interpolation: [ ( )] Uf D f Pf P f Sf = 0 (3) faces [UU ν U] f S f = P f S f (4) faces faces Additional sources: M Darwish, I Sraj, and F Moukalled A coupled finite volume solver for the solution of incompressible flows on unstructured grids In: Journal of Computational Physics 228 (2009), pp 180 201 L Mangani and C Bianchini A coupled finite volume solver for the solution of laminar/turbulent incompressible and compressible flows June 2010 F Peng Kärrholm Rhie-Chow interpolation in OpenFOAM 2006 Field coupling Application: block coupled incompressible flow solver 16

OpenFOAM implementation I Implemented using OpenFOAM-16-ext Block matrix class: BlockLduMatrix Templated matrix class Elements of arbitrary size: // Diagonal c o e f f i c i e n t s CoeffField<Type>* diagptr_ ; // Upper triangle 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_ ; BlockLduMatrixH In this case: manual assembling of matrix coefficients and source for each term in the continuity and momentum equations (Eqs (3) and (3)) [ ( )] Uf D f Pf P f Sf = 0 faces [UU ν U] f S f = P f S f faces faces Field coupling Application: block coupled incompressible flow solver 17

OpenFOAM implementation II For 3D solver: Ax = f Matrix element: a u,u 0 0 a p,u 0 a a i,j = v,v 0 a p,v 0 0 a w,w a p,w a u,p a v,p a w,p a p,p i,j Solution vector: u v x i = w p i Off-diagonal coefficients giving the implicit coupling between pressure and velocity New solvers implemented (GMRES, BiCGStab, CG) (5) (6) Description of work: K Jareteg Block coupled calculations in OpenFOAM: A coupled incompressible flow solver Project work within: CFD with OpenSource software, 2012, Chalmers Oct 2012 Field coupling Application: block coupled incompressible flow solver 18

Case study pitzdailyfoam New solver benchmarked against simplefoam using the standard pitzdailyfoam Convergence profile (non-turbulent case): 10 0 10-1 10-2 10-3 (- simplefoam, -- pucoupledfoam) Velocity (x) Pressure 10 0 10-1 10-2 10-3 (- simplefoam, -- pucoupledfoam) Velocity (x) Pressure Residuals 10-4 10-5 10-6 Residuals 10-4 10-5 10-6 10-7 10-7 10-8 10-8 10-9 10-9 10-10 0 200 400 600 800 1000 Iteration (a) Iterations 10-10 0 5 10 15 20 25 30 35 40 ['Elapsed time [s]'] (b) Elapsed time Figure: Comparison of convergence for simplefoam and pucoupledfoam Laminar case Field coupling Application: block coupled incompressible flow solver 19

Convergence profile (turbulent case): 10 0 10-1 10-2 (- simplefoam, -- pucoupledfoam) Turbulent energy Velocity (x) Pressure 10 0 10-1 10-2 (- simplefoam, -- pucoupledfoam) Turbulent energy Velocity (x) Pressure 10-3 10-3 Residuals 10-4 10-5 10-6 Residuals 10-4 10-5 10-6 10-7 10-7 10-8 10-8 10-9 10-9 10-10 0 200 400 600 800 1000 Iteration (a) Iterations 10-10 0 10 20 30 40 50 60 70 80 90 ['Elapsed time [s]'] (b) Elapsed time Figure: Comparison of convergence for simplefoam and pucoupledfoam Turbulent case Field coupling Application: block coupled incompressible flow solver 20

Summary and future outlook 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 21

Summary and future outlook Summary: Great possibilities Successful parallelized multiphysics simulations of nuclear reactor cores Faster convergence for incompressible flow simulations Future developments: Multi-grid methods for region and block coupling? Combining region and block coupling? Community needs: Documentation Examples (eg parallelization of region coupling) Tutorials Summary and future outlook 22

Thank you! Questions? Contact information: Klas Jareteg klasjareteg@chalmersse http://klasnephychalmersse Summary and future outlook 23