Cloning the Reference Fluid to
Represent Spatially Variable Fluid Properties
The most appropriate way to represent spatially variable properties of a Fluid (such as water) is to clone the Reference Fluid A special type of Fluid element that provides a basis for defining partition coefficients between media for the various species in the model (i.e., the ratio of the species’ concentration in the medium to its concentration in the Reference Fluid at equilibrium).. For example, if the pH varied significantly between two locations, then the solubilities may also change significantly. To represent this, you could clone the Reference Fluid and assign it a different set of solubilities. You could then place the different clones Sets of elements whose properties change simultaneously when any one member of the set is edited. of the Reference Fluid in different portions (Containers) of the model, as appropriate.
In order to understand how to clone the Reference Fluid (and other media Materials (such as water, sand, clay, air) that constitute (are contained within) transport pathways. GoldSim provides two types of elements for defining media: Fluids and Solids. elements), you must be comfortable with cloning elements and localizing Containers. Cloned elements automatically mimic each other, such that if you change a property of a clone, the property is automatically changed in all of the other clones. Hence, if you clone the Reference Fluid element and change a property (such as a solubility) in one clone, it is automatically changed in all the other clones.
How, then, can you use a clone to vary a property (such as the solubility) in a different clone medium? This can be accomplished because if you enter a link ID into an input field for a clone element, the same ID will appear in the corresponding input field of all of the clone elements. If, however, different elements having that same ID exist at the locations (Containers) where the clones are, each clone will link to a different element for that particular input, allowing the value of the property to be different in each Container An element that acts like a "box" or a "folder" into which other elements can be placed. It can be used to create hierarchical models..
The steps required to create a cloned spatially variable fluid are outlined below:
- Make sure that the fluid properties that you wish to be spatially variable are defined via links (i.e., an element ID).
- Identify the pathway(s) and/or Source(s) which will utilize spatially variable media properties.
- Localize An action that you can apply to a Container that creates a separate scope for the elements in that Container. the Containers that those pathways/Sources are located in.
- Create a clone of the Reference Fluid in each of those localized Containers.
- Insert elements defining the spatially variable properties in each localized Container, and link them to each local Reference Fluid clone. Note that these elements must have the same name (since they are referenced by a cloned media element), but they themselves should not be clones.
Two points should be noted when cloning the Reference Fluid:
- Unlike most other elements, when you clone the Reference Fluid, the IDs of the clones are forced to be identical. As a result, the clones must be placed in separate localized Containers.
- Unlike other fluids (in which the partition coefficient is equal to the ratio of the solubilities), the partition coefficients The ratio of the species’ concentration in a medium to its concentration in the Reference Fluid at equilibrium. Partition coefficients are inputs to Solid and Fluid elements. between cloned Reference Fluids are automatically defined by GoldSim as being equal to one.
To better understand the implications of simulating spatially variable fluid properties in this manner, it is instructive to consider a situation in which two Cells (necessarily present in two different Containers) with cloned Reference Fluids (having different solubilities) are connected by a diffusive mass flux link. If we run such a simulation long enough, the system will eventually reach a steady state. At steady state (the time at which there is no net flux between the cells), the concentration in the two Cells will be identical (since although they have different solubilities, the partition coefficient is equal to 1).
Note that this is in contrast to the situation in which two different fluids are used (rather than a cloned Reference Fluid). In that case, the Cells would actually have different concentrations at steady state (with the ratio being the partition coefficient).