Coder Social home page Coder Social logo

mesh2mcnp's Introduction

MESH2MCNP

Primary Developers: K. Manalo, C. Yi, G. Sjoden

Mesh conversion tool using the PENMSHXP/PENTRAN geometry format

MESH2MCNP matches discrete geometry so that you cannot blame the Sn meshing in your Monte Carlo analysis.

Keeping your local MESH2MCNP up-to-date

cd mesh2mcnp/
git pull # this will work if you have not made changes to targeted files in the local clone

If git pull does not work it is because there are conflicting files, if you do not care for this, just issue git stash prior to git pull, and that will tuck away the problem files (you can recover stashed files too).

When weird things happen, just delete the mesh2mcnp folder, and re-clone with git clone https://github.com/critcel/mesh2mcnp.git mesh2mcnp

MESH2MCNP should also have a home at /path/to/software/mesh2mcnp and system paths will be updated to find this location for using MESH2MCNP.

Help

Type mesh2mcnp (on HPC clusters) to see the options. Dissecting the options, run python mesh2mcnp.py and you'll get the options listed.

  • f: Supply the .pen file (MANDATORY)
  • mcm: Give the GMIX mcm file and it will insert the mcm file in place of the multigroup based material cards. Also, this option replaces the densities in the cell cards accordingly.
  • nofm: Turn off the FMESH tallies.
  • lp: Print the log to stdout; if you don't use this m2mc.log is created and you can look there.

Other options not explored by the examples:

  • f4mul: tally multiplier for f4 universe mesh tallies (-f4mul 112.5)
  • utmat: filter tallies against specific materials of interest (e.g. only materials 8,2,11 -utmat 8 2 19)
  • unit: assign unit volumes to material universe cells

Example DRCC Problem

Continuous Option

To run DRCC example, and generate a .mc file (continuous)

cd case3-drcc
python ../mesh2mcnp.py -f drcc_out.pen -mcm drcc.mcm -nofm -lp
cp drcc_out.mc drcc_out_continuous.mc

Multigroup Option

To run DRCC example, and generate a .mc file (xsmcnp/multigroup)

cd case3-drcc
python ../mesh2mcnp.py -f drcc_out.pen -mcm drcc.mcm -nofm -lp
cp drcc_out.mc drcc_out_multigroup.mc

mesh2mcnp's People

Contributors

kmanalo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mesh2mcnp's Issues

em0 card

Support detector response calculations, make sure the groups are in the right order

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.