Lecture 1: Introduction  Go over the syllabus/schedule  We will cover chapters 1-7 of Shultis and Faw AND learn MCNP  We will use MCNP for all homework.

Slides:



Advertisements
Similar presentations
Lecture 6: Source Specification
Advertisements

Lectures 6&7: Variance Reduction Techniques
Lecture 3:Basic Concepts
Lecture 5: Charged particles  Charged particle data from the text  As time permits=>Source distributions.
P HI T S Exercise ( II ) : How to stop , ,  -rays and neutrons? Multi-Purpose Particle and Heavy Ion Transport code System title1 Feb revised.
Black Box Testing Csci 565 Spring 2009.
Lecture 2:Basic Concepts
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming The software development method algorithms.
Using FLUKA to study Radiation Fields in ERL Components Jason E. Andrews, University of Washington Vaclav Kostroun, Mentor.
Chapter 24 Gauss’s Law.
 2007 Pearson Education, Inc. All rights reserved Introduction to C Programming.
P HI T S Advanced Lecture (II): variance reduction techniques to improve efficiency of calculation Multi-Purpose Particle and Heavy Ion Transport code.
1 Stratified sampling This method involves reducing variance by forcing more order onto the random number stream used as input As the simplest example,
Introduction to C Programming
Basic Lecture I: Geometry and Source Definition
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
Fortran 1- Basics Chapters 1-2 in your Fortran book.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 6 Value- Returning Functions and Modules.
The AIE Monte Carlo Tool The AIE Monte Carlo tool is an Excel spreadsheet and a set of supporting macros. It is the main tool used in AIE analysis of a.
1 Lesson 5: Flux, etc. Flux determination Flux determination Cell Cell Surface Surface Flux integral tallies (reaction rates) Flux integral tallies (reaction.
CHAPTER 3 - INPUT DEFINITION
1-1 Lesson 1 Objectives Objectives of Course Objectives of Course Go over syllabus Go over syllabus Go over course Go over course Overview of Course Overview.
1 HW 3.2 If you have a parallelepiped volumetric isotropic source with a strength of 100 particles/cc/sec and W=20 cm (x dimension), L=10 cm (y dimension),
An Introduction to MCNP
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Source Specifications in MCNP
 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
Radiation Shielding and Reactor Criticality Fall 2012 By Yaohang Li, Ph.D.
Introduction to Programming with RAPTOR
1 Everyday Statistics in Monte Carlo Shielding Calculations  One Key Statistics: ERROR, and why it can’t tell the whole story  Biased Sampling vs. Random.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Getting Started with MATLAB (part2) 1. Basic Data manipulation 2. Basic Data Understanding 1. The Binary System 2. The ASCII Table 3. Creating Good Variables.
Lesson 4: Computer method overview
5-1 Lesson 5 Objectives Finishing up Chapter 1 Finishing up Chapter 1 Development of adjoint B.E. Development of adjoint B.E. Mathematical elements of.
Lesson 6: Computer method overview  Neutron transport overviews  Comparison of deterministic vs. Monte Carlo  User-level knowledge of Monte Carlo 
P HI T S Melt a snowman by proton beam Multi-Purpose Particle and Heavy Ion Transport code System title1 Aug revised.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Lecture Objectives -Finish Particle dynamics modeling -See some examples of particle tracking -Eulerian Modeling -Define deposition velocity -Fluid Dynamics.
An Introduction to MCNP
Lecture 8: Response functions
Workshop On Nuclear Data for Advanced Reactor Technologies, ICTP , A. Borella1 Monte Carlo methods.
Simulation Chapter 16 of Quantitative Methods for Business, by Anderson, Sweeney and Williams Read sections 16.1, 16.2, 16.3, 16.4, and Appendix 16.1.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
Lecture 3: K-effective  Material specification  K-effective calculations  Beam sources  Collecting particles by energy  Collection particle by direction.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Review on Coulomb’s Law and the electric field definition
A Short Course on Geant4 Simulation Toolkit Introduction
1 Lecture 6: Source Spec ification  Source distributions  Volumetric sources  Surface sources  Energy-dependent binning.
P HI T S Setting of various source Part II Multi-Purpose Particle and Heavy Ion Transport code System Title1 May 2016 revised.
1 Lecture 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line of Text 2.3Another Simple C Program: Adding.
Bill Tucker Austin Community College COSC 1315
INSTITUTE OF NUCLEAR SCIENCE AND TECHNOLOGY
Development of adjoint B.E.
Review for Test#2 1. Work a problem involving charged particle penetration and energy deposition using Table 3.6 data.
Topics Introduction to Repetition Structures
variance reduction techniques to improve efficiency of calculation A
THE USE OF MONTE CARLO CODE FOR RADIATION TRANSPORT AND DOSIMETRY CALCULATION FOR NEUTRON RADIOGRAPHY EXPOSURE ROOM FACILITY AT REACTOR TRIGA MARK II PUSPATI.
variance reduction techniques to improve efficiency of calculation B
1 HW 4.1 If you have a parallelepiped volumetric isotropic source with a strength of 100 particles/cc/sec and W=20 cm (x dimension), L=10 cm (y dimension),
variance reduction techniques to improve efficiency of calculation A
How to stop a, b, g-rays and neutrons?
A Short Course on Geant4 Simulation Toolkit Introduction
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
Setting of various source Part II
The Transport Equation
Lesson 4: Application to transport distributions
Presentation transcript:

Lecture 1: Introduction  Go over the syllabus/schedule  We will cover chapters 1-7 of Shultis and Faw AND learn MCNP  We will use MCNP for all homework assignments, from simple to complex problems  MCNP is available from RSICC  Until the first test, the MCNP homework can be submitted by teams of up to 3 students  BUT the tests will include MCNP input

Contact RSICC soon  Go to  Customer Service  Registration/Requests  New User  Organization type: University  Project type: Radiation dam. or Other  Funding source #1: US University  Funding %:100  Customer feedback: I am a NE student at UT and need MCNP for NE406 Radiation Protection and Shielding course  Get MCNP6.1/MCNP5/MCNPX (C00810 MNYCP 00) or the next one (…-EXE)

Course overview

Course content  Radiation transport problems not covered by reactor analysis and criticality safety  This class is designed to be PRACTICAL:  Just-in-time physics discussion before expanding your MCNP capabilities  Compared to Dr Lukosi’s MCNP instruction, I concentration on source descriptions and detector (response function) “ends of the problem  From book:  How radiation is created  How it migrates from its source  How it interacts with matter  How these changes affect the medium (minimal)

Course content (2)  From MCNP:  How shielding is really done  Practical situations we will cover  Shield design  Isotope production  Medical applications  Industrial uses of radiation (including food irradiation)

Course content (3)  Role of computers vs. Hand calculations  Hand calculations Simplified geometry (usually line-of-sight, single material) Simplified geometry (usually line-of-sight, single material) Simplified energy treatment Simplified energy treatment  Computer calculation Detailed geometry and energy treatment Detailed geometry and energy treatment Solve Boltzmann Transport Equation (BTE) Solve Boltzmann Transport Equation (BTE) Detailed data required: Source of much error > 20 MeV Detailed data required: Source of much error > 20 MeV Expensive, time-consuming (analyst and computer) Expensive, time-consuming (analyst and computer)

Monte Carlo overview

General Overview of MC  Monte Carlo: Stochastic approach  Statistical simulation of individual particle histories  Keep score of quantities you care about  Most of mathematically interesting features come from “variance reduction methods” in which we modify the particle history (in a fair way) to be more efficient  Gives results PLUS standard deviation = statistical measure of how reliable the answer is

Mathematical basis  Statistical simulation driven by random number generator: 0<  <1, with a uniform distribution.  These random numbers are translated (using methods learned in NE582) into physical “decisions” that nature makes while a particle is moving around  “Score-keeping” is done on items of interest (to the analyst) using the simple statistical formula:

Simple Walkthrough  Six types of decisions to be made: 1. Where the particle is born 2. Initial particle energy 3. Initial particle direction 4. Distance to next collision 5. Type of collision 6. Outcome of scattering collision (E, direction)  Also, somewhere along the way, physical parameters you are interested in (tallies) are contributed to

Simple MCNP Examples

12 Sections of MCNP Input  Sections of input 1. Title (1 line) 2. Cell cards—A cell is a 3D region containing a single material 3. Surface cards—A surface is a 2D plane, sphere, cylinder, cone, etc., that bounds one or more cells 4. Data cards: Everything else—materials, sources, tallies, variance reduction parameters, number of histories, etc. A SINGLE blank line must follow Sections 2 and 3 (and NO OTHER blank lines are allowed)

13 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1

14 Comments  You may enter comments (messages to yourself) in the deck by either: 1. Beginning a line with the letter “c” (upper or lower case) FOLLOWED BY A BLANK: This is the title c This is a comment 2. Entering “$” anywhere on a line and following with your comment m $ This is water

15 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1

16 Continuing lines  MCNP only reads out to 80 columns of input. If you have more than that to enter (or just to make it look neater), you may CONTINUE on the next line as long as you either: 1. End a line with “&” plus at least one blank: m & Leaving the first 5 columns blank on continuation lines: m m (Be careful not to start with >4 blanks if you DON’T want to continue a line)

17 Surface Description  Surfaces comprise:  Mnemonic keyword (px,py,pz,cz,so,rpp,sph)  Parameters (e.g.,radius of sphere)  “Sense”=negative or positive “side” of the surface  Most common are planes, cylinders, spheres  PX, PY, PZ: negative direction is negative sense  CX, CY, CZ: inside is negative, outside positive  S, SO, SX, SY, SZ: inside negative, outside positive  “macrobodies”: inside negative, outside positive

18 Macro Spheres: SPH Syntax: Description: General sphere, centered on with radius R

19 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1

20 Cell Description  Cell cards contain:  Material number and density: (void uses ONE 0 entry) Positive density  atoms/bn/cm Positive density  atoms/bn/cm Negative density  g/cc Negative density  g/cc  Boolean combinations of the surfaces Blanks between surfaces=intersection (AND) Blanks between surfaces=intersection (AND) ä “1 -2”  intersection of positive side of surface 1 and negative side of surface 2 Colons=union (OR) Colons=union (OR) ä “1:-2”  union of positive side of surface 1 and negative side of surface 2 Parentheses creates priority groupings Parentheses creates priority groupings ä “(1 -2):(3 -4)  inside of parentheses evaluated before the union #=complement operator (NOT) #=complement operator (NOT) ä “#1”  outside of CELL 1 ä “#(2 -3 )”  complement of intersection of positive side of SURFACE 2 and negative side of SURFACE 3

21 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1

22 Cell importances: IMP Syntax: Description: Sets cell importance=Expected relative contribution of a particle of type n introduced into a cell This can either be a separate entry in the DATA section OR can be entered as part of each individual CELL card.

23 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1

24 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1 imp:p 1 0

25 Particles to follow: MODE Syntax: MODE n/p/e Description: Picks the particle types to be tracked n = neutrons p = photons e = electrons h = protons etc.

26 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1

27 Source Definition: SDEF Card  SDEF card  For a point source:  PAR=1/2/3 particle type (1/2/3=n/p/e)  ERG=xx Energy of particle (MeV)  POS=x y z Position indicator  Example: 9.5 MeV neutron source at point (1., 4., 5.) SDEF PAR=1 ERG=9.5 POS=1 4 5 SDEF PAR=1 ERG=9.5 POS=1 4 5

28 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1

29 Simple Tallies  Tallies  Tally names begin with F followed by a integer  :n :p :e denotes particle to watch  Tally type is units units digit of integer F541:n is surface crossing of neutrons F541:n is surface crossing of neutrons F12:p is surface flux of photons F12:p is surface flux of photons F344:e is cell flux of electrons F344:e is cell flux of electrons F15:p is point flux of photons F15:p is point flux of photons  In input card cell and surface/cell/point values follow name (parentheses combine surfaces/cells into a single tally)

30 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1

31 Running MCNP  Input is created in a text file with a particular required format  MCNP is executed from the command line prompt: C>mcnp6  Input must be in inp; output will be in outp C>mcnp6  Input must be in inp; output will be in outp C>mcnp6 inp= infile outp= outfile C>mcnp6 inp= infile outp= outfile C>mcnp6 name= filename  Output will be in filenameo C>mcnp6 name= filename  Output will be in filenameo  Special tricks to know: 1. mcnp6.exe must be in your PATH (This is automatic if you installed the RSICC DVD). 2. The MCNP_DATA must have been installed 3. MCNP will not overwrite a file that exists with the same name—it will just fail. 4. So, you have to eliminate previous output files (there are several of these)

32 Stopping MCNP  Three ways to stop an MCNP case 1. From input deck: NPS xx Number of histories to run NPS xx Number of histories to run CTME xx Number of minutes to run CTME xx Number of minutes to run Both  It will stop when the first of the two are satisfied Both  It will stop when the first of the two are satisfied 2. From console: MCNP can be stopped from the console with “Control-C”, then “q” (gracefully) MCNP can be stopped from the console with “Control-C”, then “q” (gracefully)

33 Case 1: Empty sphere Simple point source in void; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 f1:p 1 nps 10000

34 Where is my answer?  Throughout the course, we will be examining the extensive MCNP6 output  For now, though, let’s just find the answer by: 1. Opening the output deck. It will either be named what you TOLD it to name it OR MCNP will automatically add the letter “o” to the end of your input deck. It will either be named what you TOLD it to name it OR MCNP will automatically add the letter “o” to the end of your input deck. 2. Search on “tally” in the deck

35 Tally output... tally 1 nps = tally type 1 number of particles crossing a surface. tally type 1 number of particles crossing a surface. tally for photons tally for photons surface 1 surface E E On the last line:   The first number is the answer in units (for F1) of “surface crossings per source particle: The answer is because all source particles reach cross the sphere surface on the way out (and never return)   The second number is the fractional standard deviation (actually statisticians call it the “fractional standard error” since it is an approximation). In our case it is because all histories scored exactly the same answer

36 Material Description: Mm Card  Materials are described by (isotope,density) pairs  Isotope—specified by ZZAAA 1001  H  H  O  O  U  U-235  If AAA is 000, specifies the natural isotopic mix for an element  natural lead  natural lead 8000  natural oxygen 8000  natural oxygen  Density—Relative number (+) or mass (-) for each isotope  Example: Water M M OR OR M M

37 Case 2: Lead sphere Simple point source in lead ; Tally = surface crossing c ********************************************************************* c * c Cells * c * c ********************************************************************* imp:p= imp:p=0 c ********************************************************************* c * c Surfaces * c * c ********************************************************************* 1 sph c ********************************************************************* c * c Data cards * c * c ********************************************************************* mode p sdef par 2 pos erg 2 m f1:p 1 nps Result: /- 3.31%