Coupling of Serpent Neutron Transport Code to OpenFOAM

Similar documents
Coupling OpenFOAM to Serpent2.0

OpenFOAM Tutorial. [ ] Numerical Methods in Fluid Dynamics. Finite Volume Method, Dictionary Syntax, and Implementation Details

Hands-On Training with OpenFOAM

Implementation of a myinterfoamdiabatic Solver with OpenFOAM

A simple validation case Hagen-Poiseuille solution

A interphasechangefoam tutorial

AM119: HW4 and more OpenFOAM tutorials

Top-Level Code Walk-Through: scalartransportfoam and magu

2. Plane-parallel plates laminar

Convective Heat transfer in a vertical slot for the course CFD with OpenSource Software

More tutorials. Håkan Nilsson, Chalmers/ Applied Mechanics/ Fluid Dynamics 67

Open FOAM. The Open Source CFD Toolbox. User Guide

1 st International Serpent User Group Meeting in Dresden, Germany, September 15 16, 2011

OpenFOAM Tutorials: Programming Session

Adding the scalar transport equation to icofoam

interphasechangefoam

Introduction to fluid mechanics simulation using the OpenFOAM technology

Generic external aerodynamic simulation training

CCP-WSI Programming Day : Course Notes

OpenFOAM Tutorial. Adaptive mesh refinement. - The development of a new application. Anton Berce, October 16, 2010

Tutorial: Hydrodynamics of Bubble Column Reactors

Flow and Heat Transfer in a Mixing Elbow

OpenFOAM directory organization

Parallel scalability with OpenFOAM

Step-by-step guide for the modeling of a simple geometry and solving for its electric field with CAELinux

A modified version of the reactingfoam tutorial for LES

Calculate a solution using the pressure-based coupled solver.

Moving Wave class. 1. Introduction

OpenFOAM Basic Training

Open FOAM. The Open Source CFD Toolbox. User Guide

Co-Simulation von Flownex und ANSYS CFX am Beispiel einer Verdrängermaschine

A look inside icofoam (and pisofoam) Håkan Nilsson, Chalmers / Applied Mechanics / Fluid Dynamics 235

Modelling of chemical batch reactor

Evoking existing function objects and creating new user-defined function objects for Post- Processing

MSc/PhD course in CFD with OpenSource software, 2011

How to implement a new boundary condition

Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

CEE 618 Scientific Parallel Computing (Lecture 10)

Write your own solver

OpenFOAM directory organization

Open Source Computational Fluid Dynamics

Fluid Dynamics Software Lab. Flow past an airfoil

Status and development of multi-physics capabilities in Serpent 2

Coupled Analysis of FSI

Multiphysics simulations of nuclear reactors and more

Pitz-Daily Turbulence Case. Jonathan Russell

Open Source Software Course: Assignment 1

How to get started with OpenFOAM at SHARCNET

reactingfoam Solver to Calculate Radiative Heat Transfer

icofsifoam and interfsifoam

Tutorial 1. Introduction to Using FLUENT: Fluid Flow and Heat Transfer in a Mixing Elbow

Adapting chtmultiregionsimplefoam to include the effects of a rotating frame of reference and heat source term

Setting up the watersprinkler case

Numerical Simulation of Heat Transfer by Natural Convection in Horizontal Finned Channels

Speed and Accuracy of CFD: Achieving Both Successfully ANSYS UK S.A.Silvester

Simulation of Flow Development in a Pipe

OpenFOAM. q Open source CFD toolbox, which supplies preconfigured solvers, utilities and libraries.

Click to edit Master title style

OpenFOAM case: Mixing

Cold Flow Simulation Inside an SI Engine

ENG ME702: Computational Fluid Mechanics (Fall 2016) Final Project

Using a Single Rotating Reference Frame

This tutorial illustrates how to set up and solve a problem involving solidification. This tutorial will demonstrate how to do the following:

Instructional workshop on OpenFOAM programming LECTURE # 4

Modifying buoyantpimplefoam for the Simulation of Solid-Liquid Phase Change with Temperature-dependent Thermophysical Properties

OpenFOAM Programming the basic classes

Improvement of the VOF-LPT Solver for Bubbles

OpenFOAM. in wastewater applications: 2 - Getting Started th June 2015

Express Introductory Training in ANSYS Fluent Workshop 07 Tank Flushing

Fully turbulent flow around a sphere using OpenFOAM

A look inside icofoam (and pisofoam)

Lecture 6 Static Data Transfers. Solving FSI Applications Using ANSYS Mechanical and ANSYS Fluent Release. Release 14.5

Introduction to CFX. Workshop 2. Transonic Flow Over a NACA 0012 Airfoil. WS2-1. ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

Pre-compiled applications and utilities in OpenFOAM

CFD Modelling of Erosion in Slurry Tee-Junction

A tutorial to urban wind flow using OpenFOAM for the course CFD with OpenSource Software

Finite Volume Method: A Crash introduction

Simulation and Optimization in the wind energy industry

Tutorial Turbulent Flow and Minor Loss through a Pipe Elbow, Page 1 Pointwise to OpenFOAM Tutorial Minor Losses through a Pipe Elbow

2010 ANSYS, Inc. All rights reserved. 1 ANSYS, Inc. Proprietary

Click to edit Master title style

How to implement a new boundary condition

Force based motion of a submerged object using immersed boundary method

How to implement an application

myenginefoam Implementation of different combustion model and newjanafthermo model

Implementing an application from scratch

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

Tutorial: Simulating a 3D Check Valve Using Dynamic Mesh 6DOF Model And Diffusion Smoothing

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution.

Solvers for Boussinesq shallow water equations

Folder structure and pre-defined File Names in OpenFOAM

Axial Channel Water Jacket Cooling

Implementation of an air-entrainment model in interfoam for the course CFD with OpenSource Software

Tutorial: Heat and Mass Transfer with the Mixture Model

NUMERICAL INVESTIGATION OF THE FLOW BEHAVIOR INTO THE INLET GUIDE VANE SYSTEM (IGV)

Coupling OpenFOAM and MBDyn with precice coupling tool

CDA Workshop Physical & Numerical Hydraulic Modelling. STAR-CCM+ Presentation

Design Optimization of a Weather Radar Antenna using Finite Element Analysis (FEA) and Computational Fluid Dynamics (CFD)

Compressible Flow in a Nozzle

Elmer. Beoynd ElmerGUI About pre- and postprocessing, derived data and manually working with the case. ElmerTeam. CSC IT Center for Science Ltd.

Transcription:

Coupling of Serpent Neutron Transport Code to OpenFOAM Ashkhen Nalbandyan Center for Nuclear Technologies, Technnical University of Denmark, Roskilde, Denmark 2018-11-29 Ashkhen Nalabndyan Beamer slides template 2012-08-27 1 / 25

1 Introduction 2 Theory 3 The buoyantboussinesqpimplefoam solver 4 Mesh generation 5 Volumetric power source generation with Serpent 6 OpenFOAM case setup 7 Results Ashkhen Nalabndyan Beamer slides template 2012-08-27 2 / 25

Aim and Motivation The aim of this tutorial is to demonstrate the coupling mechanism between OpenFOAM and a neutron transport software Serpent. The topic of the tutorial is motivated by the need to find new approaches for tight coupling of neutron kinetics to thermal hydraulics for liquid fueled power plants. Ashkhen Nalabndyan Beamer slides template 2012-08-27 2 / 25

Prerequisites The tutorial is developed for the OpenFOAMv1806 and Serpent2.0. The later is developed at the VTT Finalnd and can be obtained on demand. To maximize benefits from the tutorial some prior experience with OpenFOAM is necessary. It is also suggested to take a look at Serpent documentation [2,3]. Ashkhen Nalabndyan Beamer slides template 2012-08-27 3 / 25

Heat generation and heat transfer in nuclear fuel Nuclear fuel is composed of heave fissile actinide elements such as U-235, U-233, Th-232. The proccess responsible for heat generation if nuclear fission, e.g. Ashkhen Nalabndyan Beamer slides template 2012-08-27 4 / 25

Test Case Cylindrical liquid fuel element, d=6 cm, l=20 cm Inlet, outlet, walls Ashkhen Nalabndyan Beamer slides template 2012-08-27 5 / 25

1 directory, 7 files Ashkhen Nalabndyan Beamer slides template 2012-08-27 6 / 25 The buoyantboussinesqpimplefoam solver buoyantboussinesqpimplefoam is a transient heat transfer solver for incompressible, turbulent flow with natural convection. OFv1806 run cd \$FOAM_SOLVERS tree heattransfer/buoyantboussinesqpimplefoam buoyantboussinesqpimplefoam.c createfields.h Make files options peqn.h TEqn.H UEqn.H

The buoyantboussinesqpimplefoam.c Description: Transient solver for buoyant, turbulent flow of incompressible fluids. Uses the Boussinesq approximation: rho k=(1-beta(t-t ref)) rho k = the effective (driving) kinematic density beta = thermal expansion coefficient [1/K] T = temperature [K] T ref = reference temperature [K] Valid when: beta(t - T ref)/rho ref << 1 # include fvcfd.h # include singlephasetransportmodel.h # include turbulenttransportmodel.h # include radiationmodel.h # include fvoptions.h # include pimplecontrol.h Ashkhen Nalabndyan Beamer slides template 2012-08-27 7 / 25

The buoyantboussinesqpimplefoam.c Ashkhen Nalabndyan Beamer slides template 2012-08-27 8 / 25

The buoyantboussinesqpimplefoam.c Ashkhen Nalabndyan Beamer slides template 2012-08-27 9 / 25

TEqn.H Ashkhen Nalabndyan Beamer slides template 2012-08-27 10 / 25

Generating identical mesh for OpenFOAM and Serpent The mesh is generated using the ANSYS CFX inbuilt mesher. Alternatively, one can use the gmesh software. Generate the mesh file and export it in.msh format Copy to any OpenFOAM case directory, e.g. $FOAM TUTORIALS/heatTransfer/buoyantSimpleFoam/buoyantCavity Type: fluentmeshtofoam inputfilename.msh Run: checkmesh Ashkhen Nalabndyan Beamer slides template 2012-08-27 11 / 25

Mesh generation Do: (Serpent2.0 is the user case dir for Serpent) cp points /home/asnalb/dtu/courses/chalmersoscfd/serpent2.0 cp faces /home/asnalb/dtu/courses/chalmersoscfd/serpent2.0 cp neighbour /home/asnalb/dtu/courses/chalmersoscfd/serpent2.0 cp owner /home/asnalb/dtu/courses/chalmersoscfd/serpent2.0 Ashkhen Nalabndyan Beamer slides template 2012-08-27 12 / 25

Description of Serpent input Ashkhen Nalabndyan Beamer slides template 2012-08-27 13 / 25

Description of Serpent input Ashkhen Nalabndyan Beamer slides template 2012-08-27 14 / 25

Coupling interface card Serpent Multiphysics interface is a set of routines implemented at the source code level and intended to easily bring in temperature and density distributions into OpenFOAM and exporting volumetic power in a format supported by coupled codes such as OpenFOAM. There are 9 interfaces in total, and type 9 is based on the OpenFOAM file format and supports FOAM field and mesh files. Ashkhen Nalabndyan Beamer slides template 2012-08-27 15 / 25

Running Serpent: volpower file In the Serpent case dir the following files should exist: inp Ts.txt rhos.txt materials.txt points neighbour faces owner sss2 Serpentmeshimport.py Execution:./sss2 inp a volpower file is generated in the case folder, which defines a volpower object belonging to Foam volscalarfield class. Ashkhen Nalabndyan Beamer slides template 2012-08-27 16 / 25

FOAM case OF v1806 cd $FOAM_RUN cp -r $F OAM_TUTORIALS/heatTransfer/buoyantBoussinesqPimpl mv BernardCells testcase tree Ashkhen Nalabndyan Beamer slides template 2012-08-27 17 / 25

0/volpower Put the inputfile.msh in the case directory and generate mesh Open the volpower file generated by Serpent, and add boundarie Ashkhen Nalabndyan Beamer slides template 2012-08-27 18 / 25

system/fvoptions FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvoptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * heatsource { type FieldSource; active yes; selectionmode all; Ashkhen Nalabndyan Beamer slides template 2012-08-27 19 / 25

system/fvoptions FieldSourceCoeffs { fieldnames (h); sourcefieldnames (volpower); } However, if one tries to run the case, an error message appears that FieldSource is not a recognized Foam source type. Thus, we have to add it. Ashkhen Nalabndyan Beamer slides template 2012-08-27 20 / 25

Copyright (C) Timo Niemi, Riku Tuominen 2018 VTT Technical Re fielddource.c namespace Foam { namespace fv { definetypenameanddebug(fieldsource, 0); addtoruntimeselectiontable ( option, FieldSource, dictionary ); } }... Ashkhen Nalabndyan Beamer slides template 2012-08-27 21 / 25 fieldsource library

fieldsource library The structure of the the fieldsource folder tree fieldsource fieldsource.c fieldsource.h lninclude fieldsource.c ->../fieldsource.c fieldsource.h ->../fieldsource.h Make files options Compile by : wclean wmake Ashkhen Nalabndyan Beamer slides template 2012-08-27 22 / 25

system/controldict libs ("libfieldsource.so"); application buoyantboussinesqpimplefoam; startfrom latesttime; starttime 0; stopat endtime; endtime 10; deltat 0.1; writecontrol runtime; writeinterval 1; purgewrite 0; writeformat ascii; writeprecision 6; writecompression off; timeformat general; Ashkhen Nalabndyan Beamer slides template 2012-08-27 23 / 25

iterate.py This tutorial describes only one-through iteration between Serpent and OpenFOAM. However, it might be of interest to be able to iterate the process for a specified OpenFOAM timestep. A python script is currently in development to allow to do this. So, as it can be noticed, first the parameter x and n are specified; the iteration will either stop when the temperature variation within the cell from one iteration to another is less than x%, or when the n number of iterations is done. A corresponding while loop has to be chosen to do that. Ashkhen Nalabndyan Beamer slides template 2012-08-27 24 / 25

T and volpower Ashkhen Nalabndyan Beamer slides template 2012-08-27 25 / 25