Code Monkey home page Code Monkey logo

fridge's Introduction

Build Status Coverage Status License status

FRIDGe

Fast Reactor Input Deck Generator is a general purpose fast reactor MCNP input deck creator. Currently FRIDGe has the ability to create two different types of assemblies; fuel and smear. These assemblies can the be arranged to create a full reactor core model. The input file gives the user the ability to set the temperature, cross-section set, and MCNP variables for a given problem.

Documentation

Documentation can be found Here. This documentation holds all of the information to build elements, materials, assemblies, cores, and FRIDGe input files. FRIDGe comes packaged with 24 elements, 8 materials, 2 assemblies, and 1 FRIDGe input file pre-built. Along with this there are 3 test assemblies, 1 test core, and 4 test FRIDGe input files that can be used as a template for building these files.

Install

To download FRIDGe, change into your directory of choice and follow the instructions below:

git clone https://github.com/ryanstwrt/FRIDGe

Note that FRIDGe requires at least Python 3.6 to run. Before installing FRIDGe note that pytest, numpy, and PyYAML are all required to run FRIDGe. If these are not yet installed run the following:

pip install -r requirements.txt

This will ensure that all the dependencies are properly installed. To install FRIDGe, run the setup.py file in the /FRIDGe directory as follows:

python setup.py install

This should install fridge as a python package.

Testing

It is encouraged to run the test suite built into FRIDGe before creating any models. Testing FRIDGe is relatively simple. Open a terminal in the /fridge directory and run the following:

python -m pytest

Note: pytest, numpy, and PyYAML are all required to run FRIDGe, and the test suite. See the testing section of the user pages for more information.

Running FRIDGe

FRIDGe has a prebuilt input file which can be used to gain familiarity with running FRIDGe. The FRIDGe input file that will be used is title EBRII_Driver.yaml, and is uses the assembly file EBRII_MKII.yaml. These two YAML files can be found in /fridge/fridge_input_files and /fridge/data/assembly, respectively.

The first step is to open an interactive python terminal (somethign like iPython). From here, import the FRIDGe driver with the following:

import fridge.driver.fridge_driver as fd

The driver for FRIDGe has now been imported, and the main function can be run via:

fd.main(''<fridge_input_file>'')

For this example the following code can be run:

fd.main('EBRII_Driver')

This will cause FRIDGe to build an MCNP input file in /fridge/mcnp_input_files titled EBRII_Driver.i. This example built a single assembly; the process for running FRIDGe and building a full core model is identical.

Development

As FRIDGe is open source, I encourage anyone who is interested to contribute and add to the code. There are multiple phenomena that could be incorporated into FRIDGe to produce a more realistic model.

Contact

Please feel free to email me at [email protected] if you have any questions or if you would like me to consider additional features.

fridge's People

Contributors

aaronjamesreynolds avatar pshriwise avatar ryanstwrt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.