GithubHelp home page GithubHelp logo

veeshy / mcnp2cad Goto Github PK

View Code? Open in Web Editor NEW

This project forked from svalinn/mcnp2cad

0.0 0.0 0.0 497 KB

Convert MCNP input files to a general CAD format

License: BSD 2-Clause "Simplified" License

C++ 95.81% Makefile 3.31% CMake 0.88%

mcnp2cad's Introduction

MCNP2CAD README

MCNP to iGeom/CAD converter: a program to extract the geomtery from MCNP input files and write it out using any ITAPS iGeom backend.

This project creates a shared object file which is called by the Trelis plugin or the command line interface created with the -DBUILD_CLI=true flag.

The following groups intend to support such implementations:

  • CNERG will develop an iGeom-like interface as part of a Trelis & Cubit plugin that uses this library to import MCNP geometry into Trelis/Cubit.
  • The SIGMA team will develop an iGeom-like interface as part of an implementation of CGM that is based on the OpenCascade solid modeling engine. This version may support a command line tool.

Bug reports are appreciated - please post an issue in our Github repository.

This tool is based on an concept first developed at Argonne National Laboratory.

Build Instructions:

Using cmake:

Install Eigen3.

When installing mcnp2cad, be sure to include the following flags:

-DIGEOM_LIB_DIR= path to directory containing libigeom

-DIGEOM_INCLUDE_DIR= path to iGeom include directory

If building the command line interface, also include the following flag:

-DBUILD_CLI=yes

Unsupported Features:

  • Could be added easily:
    • More direct control over the size of the sphere/graveyard in which the geometry sits
    • Support for interpolation (nI/nILOG) and multiplication (nM) syntax.
    • Make the title card optional, as it apparently is in MCNP.
  • Could be added with effort:
    • Correct handling of hexagonal prism lattices for lattices based on irregular hexgons
    • Support for ELL (ellipse), WED (wedge), and ARB (arbitrary polyhedron) macrobodies
    • Ability to refer to individual facets of macrobodies as surfaces in cell specification, using the NNNN.MM syntax. Parsing support for this feature exists, but output support does not.
    • Support for lattices in universe 0
    • Faster/more efficient generation of embedded universes within lattices.
    • Complete support for M=-1 argument in TRn (transform) cards.
    • Automatically annotate reflecting/white boundaries and periodic surfaces.
    • Support for 3-arg and 5-arg specification of rotations in transformations.
    • Support for jump (nJ) syntax: requires knowledge of default values in many possible contexts
  • Could be added with substantial effort:
    • General support for SQ, GQ, X, Y, and Z surfaces. (Elliptic Cylinders and Elliptic Cones currently supported.) (Simple X, Y, Z surfaces are already supported.)
    • Robust error detection and reporting for ill-formed MCNP inputs.

mcnp2cad's People

Contributors

ejwilson3 avatar samuelstern avatar pshriwise avatar gonuke avatar elliottbiondo avatar makeclean avatar zxkjack123 avatar ljacobson64 avatar yechengksu 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.