Difference between revisions of "Tutorial"
(→Infinite homogeneous model) |
(→Input) |
||
Line 37: | Line 37: | ||
Colors in the input correspond to: | Colors in the input correspond to: | ||
− | *<span style="color: Green;">Comments</span> | + | *<span style="color: Green;">Comments</span>: These are ignored by Serpent. |
− | *<span style="color: Red;">Control words</span> | + | *<span style="color: Red;">Control words</span>: A constantly updating list of control words can be found in the [[Input syntax manual]]. Everything between two control words that is not a comment is treated as a parameter to the first control word. |
− | *<span style="color: Blue;">Name definitions</span> | + | *<span style="color: Blue;">Name definitions</span>: Name definitions for the various Serpent objects can contain characters and numbers and are used for referencing certain objects in other definitions. |
− | *<span style="color: Purple;">Name references</span> | + | *<span style="color: Purple;">Name references</span>: References to named objects defined in the input. Name references can be made even if the name definition has not been made yet as long as the name will be defined later in the input. |
<div class="toccolours mw-collapsible mw-expanded" style="width:60em;"> | <div class="toccolours mw-collapsible mw-expanded" style="width:60em;"> |
Revision as of 11:13, 11 September 2017
This page is the beginning of a hands-on tutorial in Serpent that will walk you through the creation of simple pin-cell and assembly geometry models and the use of those models for some reactor physics simulations.
Contents
Pre-requisite
Compiled version of Serpent 2
Basics of Serpent input
Explain different (typical) parts such as:
- Material definitions
- Geometry definitions
- Run parameters/options
Infinite homogeneous model
Overview
The first model in this tutorial is the simplest geometry model one can imagine: an infinite homogeneous system consisting of a single material. Here the infinite material is 4.0 wt-% enriched uranium with a density of 10.1 g/cm3.
We will use the infinite homogeneous system example for three tasks:
- Finding the critical enrichment of an infinite uranium system.
- Tallying the neutron energy spectrum in the critical infinite uranium system.
- Testing the effect of added neutron moderation on the multiplication factor and energy spectrum of the system.
Input
The input of the model is shown below and consists of only five definitions:
- Defining the single material, which is called fuel in this example.
- Defining the geometry by
- Defining an "infinite" surface, i.e. a surface enclosing all of space. The surface name is s1 in this example.
- Defining two geometry cells: One containing the material fuel and the other being defined as an outside cell.
- Setting up other run parameters, here simply setting the neutron population that is to be simulated.
Colors in the input correspond to:
- Comments: These are ignored by Serpent.
- Control words: A constantly updating list of control words can be found in the Input syntax manual. Everything between two control words that is not a comment is treated as a parameter to the first control word.
- Name definitions: Name definitions for the various Serpent objects can contain characters and numbers and are used for referencing certain objects in other definitions.
- Name references: References to named objects defined in the input. Name references can be made even if the name definition has not been made yet as long as the name will be defined later in the input.
Testing and tinkering
2D Pin-cell model
Overview
Basics
Colors in input correspond to:
- Comments
- Control words
- Name definitions
- Name references