10.08.2013 Views

Code Manual for CONTAIN 2.0 - Federation of American Scientists

Code Manual for CONTAIN 2.0 - Federation of American Scientists

Code Manual for CONTAIN 2.0 - Federation of American Scientists

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Three units are converted in this example. First the time units are changed to minutes by the TUNTT<br />

keyword in the control block. Also the temperature and pressure are converted by the UNITS<br />

keyword in the TDB. Ordinarily, the conversion would be per<strong>for</strong>med according to Section 16.3.1.3;<br />

pressure would be converted from Pa to psi, and temperature would be converted from K to deg-F.<br />

However, these default conversion factors were changed by the UNIT keywords in the control block.<br />

These keywords effectively changed this run so that pressure is converted to ATM if the UNITS<br />

keyword is present, and temperature is converted to deg-C.<br />

Note that file names are reassigned in the file definition block (FDB). This provides an easy way<br />

to keep results from different problems separate. The vector file from this example is shown in<br />

Figure 16-7.<br />

16.8.3 Example 3: Mixing<br />

This example demonstrates how to use the MIX option. The temperature from the PVEC 1 file in<br />

Figure 16-7, from Example 2, is converted to the Rankine temperature scale and then used to<br />

compute the pressure divided by the temperature. (The PINP file used to do this is shown in Figure<br />

16-8.) The resulting PMIX file is shown in Figure 16-9.<br />

16.8.4 Example 4: More Complicated Table Definition Blocks<br />

The example in Figure 16-10 shows the proper syntax <strong>for</strong> extracting a number <strong>of</strong> plot flags from the<br />

<strong>CONTAIN</strong> binary plot file. No output files are shown.<br />

control eoi<br />

101<br />

cell= 1 vecto~temp 1 endcurve<br />

cell=2 vecto-temp2 endcurve<br />

endflag<br />

e<strong>of</strong><br />

Figure 16-3. PINP File <strong>for</strong> Example 1<br />

Rev. O 16-35 6/30/97

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!