Coder Social home page Coder Social logo

fhr-input's Introduction

FHR-input

Generate a SCALE input file for a full-core FHR model with segmented fuel stripes in any arbitrary dimension with symmetric depletion zones.

alt text

In order to deplete different regions of the complicated FHR assembly, each region has to be defined by a separate material in the compositions block of the scale input file. Then each portion of the geometry that would like to be depleted separately (whether by plank, stripe, axial, or assembly) must be uniquely defined in the geometry. So the input files become very complicated quickly since they cannot be easily repeated without copying and replacing all of the identifiers. I though this would be safer to do in a python script to keep track of bookkeeping as well as make it more flexible if different partitions of the model would like to be depleted.

  1. First, I divided an FHR core input file in Scale into important units in separate files each named something like input.assembly.inp .

  2. Next, I created a scale_unit_class in scale_input.py that can read these files including the media, holes, arrays, and geometry features. The scale untis can then be printed while replacing media identifiers or array identifiers. By doing this units and array can essentially be copied as long as the descriptors and unit numbers are kept unique.

  3. Lastly, the script is ran through core_depletion_zones.py which has a class named core_class that keeps track of breaking down the unit files into a full-core model. The full-core class is simultaneasouly instantiated and saves the output file using:

core_class(output="full-core.inp", tritants=3, planks=1, stripes=1, sections=1, axials=2)

Here each assembly would be depleted by each 3rd of the assembly (tritants=3) and divided into 2 axial regions (axials=2).

fhr-input's People

Contributors

tflaspoehler avatar

Stargazers

wangjia avatar

Watchers

James Cloos avatar  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.