Commit 36d4d255 authored by Salko Jr, Robert's avatar Salko Jr, Robert
Browse files

Fix the install

WASP and the input schema need to be added to the install for it to
work.
parent c1a73ad4
Loading
Loading
Loading
Loading

MANIFEST.in

0 → 100644
+2 −0
Original line number Diff line number Diff line
include SMBuilder/input.sch
include wasp/*
+17 −16
Original line number Diff line number Diff line
@@ -49,22 +49,8 @@ SMBuilder is a Python package, but it does have a dependency on the Workbench An
1. If only using scripting model scripting mode, the user only needs to install SMBuilder.
2. If using scripting mode and/or input mode, the user needs to install both WASP and SMBuilder.

Instructions for both installs are shown below.

*********
SMBuilder
*********

Prerequesites are :

1. Python 2.7

To install:

.. code-block:: bash

    pip install <base_dir>/SMBuilder

If WASP will be installed, it is **critical** that it be installed according to these instructions before
installing SMBuilder.

WASP
====
@@ -85,6 +71,21 @@ Build instructions are as follows:
   ./config.sh ../wasp
   make -j4 install

SMBuilder
=========

Prerequesites are :

1. Python 2.7

To install:

.. code-block:: bash

    pip install <base_dir>/SMBuilder



*****************
Table of Contents
*****************
+3 −3
Original line number Diff line number Diff line
@@ -112,8 +112,8 @@ the following information:
      example, some inputs, like "solution" are not required and will have a minimum occurance of zero.
      Others, like "ch" are required and must appear at least once.  Note that if the input has a specified
      minimum number of occurances of "1", but it exists in a block with a minimum number of occurances
      of "0", then it is not required if the parent block was not specified.  For example "geo" is required
      in the "solid" block, but if the "solid" block (which is optional) is not entered, then "geo" is no
      of "0", then it is not required if the parent block was not specified.  For example "type" is required
      in the "solid_geo" block, but if the "solid" block (which is optional) is not entered, then "type" is no
      longer a required input.
   4. **Units** These are the physical units expected for the value.  A value of "n/a" means there are no
      units on the value.
@@ -122,7 +122,7 @@ the following information:
      String data types MUST be surrounded by quotes.
   6. **Range** This specifies if there are any range restrictions on the data (e.g., >0.0, <=0.0, etc.).  If
      "n/a" is entered, there are not restrictions.  If the input has specific allowable input (e.g., the
      "geo" of "solid" entry will only accept specific entries like "nucl" and "tube").
      "type" of "solid_geo" entry will only accept specific entries like "nucl" and "tube").
   7. **Note** This is used to specify addition information about this input.

The Contents below are organized with respect to the structure of the file, with primary blocks being
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ setup(name='SMBuilder',
      },
      license='MIT',
      packages=find_packages(),
      package_data={'': ['input.sch, wasp']},
      include_package_data=True,
      install_requires=[
          'mock',
          'matplotlib',
+264 −0
Original line number Diff line number Diff line
# GE 3x3 rod bundle 2G1 validation test, channel centered (4 x 4 channels)

initial
   mdot 2.74309039965 # kg/s
   qprime 96.9670457859 # kW/m
   press 68.948 # bar
   temp 173.84 # C (739.3 KJ/kg enthalpy)

section id 1
   height 1.8288 # m
   num_levels 72

ch id 1
   area  0.50497e-4 # m**2
   pw    0.28346e-1
   x    -0.24079e-1
   y     0.24079e-1
   xdim  0.10668e-1
   ydim  0.10668e-1

ch id 2
   area  0.11766e-3
   pw    0.41487e-1
   mesh -0.93726e-2 0.24079e-1 0.18745e-1 0.10668e-1

ch id 3
   geo  0.11766e-3 0.41487e-1
   mesh 0.93726e-2 0.24079e-1 0.18745e-1 0.10668e-1

ch id 4
   geo  0.50497e-4 0.28346e-1
   mesh 0.24079e-1 0.24079e-1 0.10668e-1 0.10668e-1

ch id 5
   geo  0.11766e-3 0.41487e-1
   mesh -0.24079e-1 0.93726e-2 0.10668e-1 0.18745e-1

ch id 6
   geo  0.18675e-3 0.45484e-1
   mesh -0.93726e-2 0.93726e-2 0.18745e-1 0.18745e-1

ch id 7
   geo  0.18675e-3 0.45484e-1
   mesh 0.93726e-2 0.93726e-2 0.18745e-1 0.18745e-1

ch id 8
   geo  0.11766e-3 0.41487e-1
   mesh 0.24079e-1 0.93726e-2 0.10668e-1 0.18745e-1

ch id 9
   geo  0.11766e-3 0.41487e-1
   mesh -0.24079e-1 -0.93726e-2 0.10668e-1 0.18745e-1

ch id 10
   geo  0.18675e-3 0.45484e-1
   mesh -0.93726e-2 -0.93726e-2 0.18745e-1 0.18745e-1

ch id 11
   geo  0.18675e-3 0.45484e-1
   mesh 0.93726e-2 -0.93726e-2 0.18745e-1 0.18745e-1

ch id 12
   geo  0.11766e-3 0.41487e-1
   mesh 0.24079e-1 -0.93726e-2 0.10668e-1 0.18745e-1

ch id 13
   geo  0.50497e-4 0.28346e-1
   mesh -0.24079e-1 -0.24079e-1 0.10668e-1 0.10668e-1

ch id 14
   geo  0.11766e-3 0.41487e-1
   mesh -0.93726e-2 -0.24079e-1 0.18745e-1 0.10668e-1

ch id 15
   geo  0.11766e-3 0.41487e-1
   mesh 0.93726e-2 -0.24079e-1 0.18745e-1 0.10668e-1

ch id 16
   geo  0.50497e-4 0.28346e-1
   mesh 0.24079e-1 -0.24079e-1 0.10668e-1 0.10668e-1

#===================================================
# Gaps
#===================================================

gap id 1
   chconn 1 2
   length 0.147e-1  # m
   width 0.343e-2 # m
gap id 2
   chconn 1 5
   length 0.147e-1
   width 0.343e-2
gap id 3
   chconn 2 3
   length 0.187e-1
   width 0.343e-2
gap id 4
   chconn 2 6
   length 0.147e-1
   width 0.427e-2
gap id 5
   chconn 3 4
   length 0.147e-1
   width 0.343e-2
gap id 6
   chconn 3 7
   length 0.147e-1
   width 0.427e-2
gap id 7
   chconn 4 8
   length 0.147e-1
   width 0.343e-2
gap id 8
   chconn 5 6
   length 0.147e-1
   width 0.427e-2
gap id 9
   chconn 5 9
   length 0.187e-1
   width 0.343e-2
gap id 10
   chconn 6 7
   length 0.187e-1
   width 0.427e-2
gap id 11
   chconn 6 10
   length 0.187e-1
   width 0.427e-2
gap id 12
   chconn 7 8
   length 0.147e-1
   width 0.427e-2
gap id 13
   chconn 7 11
   length 0.187e-1
   width 0.427e-2
gap id 14
   chconn 8 12
   length 0.187e-1
   width 0.343e-2
gap id 15
   chconn 9 10
   length 0.147e-1
   width 0.427e-2
gap id 16
   chconn 9 13
   length 0.147e-1
   width 0.343e-2
gap id 17
   chconn 10 11
   length 0.187e-1
   width 0.427e-2
gap id 18
   chconn 10 14
   length 0.147e-1
   width 0.427e-2
gap id 19
   chconn 11 12
   length 0.147e-1
   width 0.427e-2
gap id 20
   chconn 11 15
   length 0.147e-1
   width 0.427e-2
gap id 21
   chconn 12 16
   length 0.147e-1
   width 0.343e-2
gap id 22
   chconn 13 14
   length 0.147e-1
   width 0.343e-2
gap id 23
   chconn 14 15
   length 0.187e-1
   width 0.343e-2
gap id 24
   chconn 15 16
   length 0.147e-1
   width 0.343e-2

#===================================================
# Solid geometries
#===================================================

solid_geo id 1
   type "tube"
   dout 14.478e-3
   din  12.478e-3

#===================================================
# Solid objects
#===================================================

solid id 1
   geo 1
   chconn 1 2 5 6
   pct 0.25 0.25 0.25 0.25
solid id 2
   geo 1
   chconn 2 3 6 7
   pct 0.25 0.25 0.25 0.25
solid id 3
   geo 1
   chconn 3 4 7 8
   pct 0.25 0.25 0.25 0.25
solid id 4
   geo 1
   chconn 5 6 9 10
   pct 0.25 0.25 0.25 0.25
solid id 5
   geo 1
   chconn 6 7 10 11
   pct 0.25 0.25 0.25 0.25
solid id 6
   geo 1
   chconn 7 8 11 12
   pct 0.25 0.25 0.25 0.25
solid id 7
   geo 1
   chconn 9 10 13 14
   pct 0.25 0.25 0.25 0.25
solid id 8
   geo 1
   chconn 10 11 14 15
   pct 0.25 0.25 0.25 0.25
solid id 9
   geo 1
   chconn 11 12 15 16
   pct 0.25 0.25 0.25 0.25

#===================================================
# Form losses
#===================================================

loss
   chans 1 4 13 16
   levels 3 15 27 39 51 63
   k 0.336

loss
   chans 2 3 5 8 9 12 14 15
   levels 3 15 27 39 51 63
   k 0.1629

loss
   chans 6 7 10 11
   levels 3 15 27 39 51 63
   k 0.1504

#===================================================
# Parallel domains
#===================================================

domain id 1
   solids 1 2 3 4 5 6
   solid_owners 1 1 1 1 1 2
   chans 1 2 3 4 5 6 7 8

domain id 2
   solids 4 5 6 7 8 9
   solid_owners 1 1 2 2 2 2
   chans 9 10 11 12 13 14 15 16
Loading