On Apr 28, 2006, at 12:00 PM, hzhatlboro wrote:

Could you please refer to User's Guide September 16, 2005 version, page 86, and give some explanations for the following code:-

for component in substitutionals:
       solvent-=component

how is the operation "-" defined for component variables?

The operation is not "-", but "-=". Its meaning is standard in Python, C, C++, and a lot of other languages and is equivalent to:

    solvent = solvent - component

In this case, it refers only to the field variable itself (the composition), and not any of the attached data (barrier height, diffusivity, etc.).

It's a way of representing the notion that one component is dependent on all the others, such that C_N = 1 - \sum_j=1^{N-1} C_j

Reply via email to