Skip to content

Commit

Permalink
Initial commit of OSS License of MatMCNP V4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krdepri authored Jan 17, 2019
0 parents commit 66fd909
Show file tree
Hide file tree
Showing 57 changed files with 11,029 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
#
# Ignore object files
#
source/*.o
source/*.obj
source/*.mod
#
# Ignore input and output files
#
*.inp
*.out
#
#
31 changes: 31 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Copyright (c) 2019 National Technology & Engineering Solutions of
Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
NTESS, the U.S. Government retains certain rights in this software.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions, and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions, and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
21 changes: 21 additions & 0 deletions MatMCNP
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#! /bin/csh -f
#
# MatMCNP Unix shell
#
#
#
echo " "
echo " "
echo "************************************************************"
echo "* Copyright 2019 National Technology & Engineering *"
echo "* Solutions of Sandia, LLC (NTESS) *"
echo "* *"
echo "* Under the terms of Contract DE-NA0003525 with NTESS, the *"
echo "* U.S. Government retains certain rights in this software. *"
echo "* *"
echo "************************************************************"
echo " "
echo " "
#
#
perl ./matmcnp.pl $1
49 changes: 49 additions & 0 deletions MatMCNP.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
@ECHO OFF
SET job=%1
SET SYSTEMTYPE=dos
rem
rem
ECHO *
ECHO *
ECHO ************************************************************
ECHO * Copyright 2019 National Technology and Engineering *
ECHO * Solutions of Sandia, LLC (NTESS) *
ECHO * *
ECHO * Under the terms of Contract DE-NA0003525 with NTESS, the *
ECHO * U.S. Government retains certain rights in this software. *
ECHO * *
ECHO ************************************************************
ECHO *
ECHO *
rem
rem
rem
rem Copy the executable file to working directory
rem
COPY bin\MatMCNP.exe MatMCNP.exe
rem
rem
rem Run the job
rem
matmcnp-PC.pl %1

set saveerr=%ERRORLEVEL%

if %saveerr% GTR 0 goto ERROR

rem
rem Delete the executable
rem
del MatMCNP.exe
rem
rem
rem
ECHO MatMCNP Calculation Complete

goto END
:USAGE
ECHO Usage: MatMCNP jobname
goto END
:ERROR
ECHO Batch file error occurred
:END
3,098 changes: 3,098 additions & 0 deletions MatMCNP_GUI.py

Large diffs are not rendered by default.

Binary file added MatMCNP_V4.0_CopyrightNotice_License.pdf
Binary file not shown.
253 changes: 253 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
README file for MatMCNP
-------------------------------

************************************************************
* MatMCNP Version 4.0 *
* *
* Copyright 2019 National Technology & Engineering *
* Solutions of Sandia, LLC (NTESS) *
* *
* Under the terms of Contract DE-NA0003525 with NTESS, the *
* U.S. Government retains certain rights in this software. *
* *
************************************************************

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

*************************
* *
* *
* DISCLAIMER *
* *
* *
******** *
* *
* No guarantee *
* or warranty is *
* implied or *
* given with *
* this software. *
* *
********************* *********************
* *
* *
* The software represents the best effort of the *
* programmers and was developed for specific purposes *
* at Sandia National Laboratories (SNL). Any use of *
* this software, either internal to SNL or external, is *
* the sole responsibility of the user. *
* *
* *
* Sandia National Laboratories is a multimission *
* ********** laboratory ********** *
* * * managed and * * *
* * * operated by * * *
* * * National * * *
* * * Technology and * * *
* * * Engineering * * *
* **** * Solutions of * **** *
* * * Sandia LLC, * * *
* * * a wholly owned * * *
* * * subsidiary of * * *
* * ** Honeywell ** * *
* * ** International ** * *
* * ** Inc. for the ** * *
********* ** Department of ** *********
** Energy's **
** National **
** Nuclear **
** Security **
** Administration **
** under contract **
** DE-NA0003525. **
** **
********************

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

MatMCNP Code Release
Version 4.0
January 2019

K. Russell DePriest
Principal R&D Scientist and Engineer
Applied Nuclear Technologies, Org. 1384
Sandia National Laboratories
P. O. Box 5800, MS 1146
Albuquerque, NM 87185-1146
[email protected]
(505) 845-8141

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Files in distribution:

MatMCNP Directory

(1) MatMCNP_V4.0_CopyrightNotice_License.pdf
(2) MatMCNP - C-shell script for running code on UNIX/Linux system
(3) MatMCNP.bat - DOS batch file for running code on Windows PC system
(4) matmcnp.pl - Perl script for running the code and moving files on UNIX/Linux system
(5) matmcnp-PC.pl - Perl script for running the code and moving files on Windows PC system
(6) README.txt - This file
(7) test.inp - An input deck for testing the installation of the code
(8) test.out - An output file with correct results from testing the code
(9) SAND2014-17693_UUR.pdf - Sandia report documenting the MatMCNP code
(10) bin subdirectory

A. MatMCNP.exe - MatMCNP Version 4.0 Windows executable
B. xmatmcnp - MatMCNP Version 4.0 Linux excutable

(10) source subdirectory (source files for compiling code independently)

A. atom_density.f90
B. enriched.f90
C. MatMCNP.f90
D. naturalzaid.f90
E. NWC.f90
F. NWC-Database.f90
G. print_data.f90
H. read_data.f90
I. title_comment.f90
J. weight_percent.f90
K. Z1_Z5.f90
L. Z6_Z10.f90
M. Z11_Z15.f90
N. Z16_Z20.f90
O. Z21_Z25.f90
P. Z26_Z30.f90
Q. Z31_Z35.f90
R. Z36_Z40.f90
S. Z41_Z45.f90
T. Z46_Z50.f90
U. Z51_Z55.f90
V. Z56_Z60.f90
W. Z61_Z65.f90
X. Z66_Z70.f90
Y. Z71_Z75.f90
Z. Z76_Z80.f90
AA. Z81_Z85.f90
AB. Z86_Z90.f90
AC. Z91_Z92.f90
AD. makefile - Makefile with options for building Intel version on Linux

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Documentation:
K. Russell DePriest and Karen C. Saavedra. MatMCNP: A Code for Producing Material
Cards for MCNP. Sandia Report, SAND2014-17693. Sandia National Laboratories,
Albuquerque, NM. September 2014. (Unclassified Unlimited Release)

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Installation (assumes Perl is installed on the computer):

(1) Copy entire MatMCNP folder to desired working location

(2) For Windows PC systems, the code is "installed". The program requires the use
of the Command Prompt.

A. Start > All Programs > Accessories > Command Prompt
B. Using command line arguments, change to the working directory

******

C. Run Example

c:\Work\MatMCNP> MatMCNP test.inp
*
*
************************************************************
* Copyright 2019 National Technology and Engineering *
* Solutions of Sandia, LLC (NTESS) *
* *
* Under the terms of Contract DE-NA0003525 with NTESS, the *
* U.S. Government retains certain rights in this software. *
* *
************************************************************
*
*
1 file(s) copied.
1 file(s) moved.
1 file(s) moved.
MatMCNP Calculation Complete

******

(3) An executable file is included for Linux-based systems. However, some Linux/UNIX
systems may require compilation of the code.

A. A makefile with options for Intel Fortran (ifort).
B. Compiling is accomplished by using the make utility.

******

C. Compile Example

Work/MatMCNP/source> make
ifort -c NWC.f90
ifort -c title_comment.f90
ifort -c NWC-Database.f90
ifort -c atom_density.f90
ifort -c enriched.f90
ifort -c MatMCNP.f90
ifort -c naturalzaid.f90
ifort -c print_data.f90
ifort -c read_data.f90
ifort -c weight_percent.f90
ifort -c Z1_Z5.f90
ifort -c Z6_Z10.f90
ifort -c Z11_Z15.f90
ifort -c Z16_Z20.f90
ifort -c Z21_Z25.f90
ifort -c Z26_Z30.f90
ifort -c Z31_Z35.f90
ifort -c Z36_Z40.f90
ifort -c Z41_Z45.f90
ifort -c Z46_Z50.f90
ifort -c Z51_Z55.f90
ifort -c Z56_Z60.f90
ifort -c Z61_Z65.f90
ifort -c Z66_Z70.f90
ifort -c Z71_Z75.f90
ifort -c Z76_Z80.f90
ifort -c Z81_Z85.f90
ifort -c Z86_Z90.f90
ifort -c Z91_Z92.f90
ifort -o xmatmcnp NWC.o NWC-Database.o atom_density.o enriched.o MatMCNP.o naturalzaid.o print_data.o read_data.o title_comment.o weight_percent.o Z1_Z5.o Z6_Z10.o Z11_Z15.o Z16_Z20.o Z21_Z25.o Z26_Z30.o Z31_Z35.o Z36_Z40.o Z41_Z45.o Z46_Z50.o Z51_Z55.o Z56_Z60.o Z61_Z65.o Z66_Z70.o Z71_Z75.o Z76_Z80.o Z81_Z85.o Z86_Z90.o Z91_Z92.o
mv xmatmcnp ../bin/.

******

D. To run the code on a Linux system, change to the working directory

E. Run Example

Work/MatMCNP> MatMCNP test

************************************************************
* Copyright 2019 National Technology & Engineering *
* Solutions of Sandia, LLC (NTESS) *
* *
* Under the terms of Contract DE-NA0003525 with NTESS, the *
* U.S. Government retains certain rights in this software. *
* *
************************************************************



Running MatMCNP Version 4.0

Moving output file.

MatMCNP Calculation Complete.

******

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Questions about installation, compilation, and/or running MatMCNP should be
sent to K. Russell DePriest ([email protected]).



Binary file added SAND2014-17693_UUR.pdf
Binary file not shown.
Loading

0 comments on commit 66fd909

Please sign in to comment.