28.06.2014 Views

POLYMIN - University of Waterloo

POLYMIN - University of Waterloo

POLYMIN - University of Waterloo

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>POLYMIN</strong> 2005<br />

2.3 Primary Variables and their Dimensions<br />

The following variables must be dimensioned large enough to accommodate the chosen grid size.<br />

These values are set in the PARAMETER statement within the main program.<br />

Array dimension limits: (see parm.inc, parmt.inc, mintran.inc, minteq.inc)<br />

maxne ....<br />

maxnn ....<br />

maxn ....<br />

maxna ....<br />

laa ....<br />

Nxdim …<br />

Nydim …<br />

Nrdim …<br />

maxbt ....<br />

maxtim ....<br />

maxpt …<br />

Maximum number <strong>of</strong> elements in the transport grid.<br />

Maximum number <strong>of</strong> nodes in the transport grid.<br />

Maximum number <strong>of</strong> degrees <strong>of</strong> freedom (= maxnn - # <strong>of</strong> fixed nodes).<br />

Total number <strong>of</strong> non-zero matrix entries in condensed matrix.<br />

(As a conservative approximation, use maxna = 14 * maxn).<br />

PCG solver matrix dimension.<br />

(As a conservative approximation, use laa = 3*maxn+maxna).<br />

maximum number <strong>of</strong> components<br />

maximum number <strong>of</strong> aqueous species<br />

maximum number <strong>of</strong> solid species<br />

Maximum number <strong>of</strong> "wells" at which breakthrough curves are generated<br />

Maximum number <strong>of</strong> time steps<br />

maximum number <strong>of</strong> print times<br />

Note these values all represent maximum limits, they can be equal to, or greater than, the actual<br />

number required.<br />

A conservative estimate for maxna is 14 x maxn, and since this parameter reserves memory for one<br />

<strong>of</strong> the largest real arrays, it should be minimized if available computer RAM is limited. <strong>POLYMIN</strong><br />

computes the minimum vector length (maxna) required by the flow and transport problems and<br />

writes this information to the listing file (look for "vector length"). For more efficient memory use,<br />

these values can be substituted into the PARAMETER statement. To do this, the model must first be<br />

run using an initial estimate for maxna (and hence laa), at least until the correct vector lengths are<br />

computed. The minimum vector length and new value for laa is then entered into the program,<br />

which is then recompiled and rerun for the full simulation. The code will detect if the given array<br />

limits are too small, in which case the execution will terminate with an error message.<br />

19

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

Saved successfully!

Ooh no, something went wrong!