Hi,
I'm struggling with limits on occupancy values. The problem can be simplified to the following example:
prm !tot_cu 1.1
prm !tot_zn 1.1
prm !tot_sn 0.8
site Cu1 occ Cu+1 cu_cu 0.2000 min 0 max 1
occ Zn+2 zn_cu = 1 - cu_cu;: 0.8000
site Zn1 occ Cu+1 cu_zn 0.2000 min 0 max 1
occ Zn+2 zn_zn = 1 - cu_zn;: 0.8000
site Sn1 occ Cu+1 cu_sn =tot_cu - cu_cu - cu_zn;: 0.7000
occ Zn+2 zn_sn =tot_zn - zn_cu - zn_zn;: -0.5000
occ Sn+4 sn_sn =tot_sn;
How do I limit the cu_cu and cu_zn occupancies such that zn_sn can't give a negative value, while still ensuring the total amount of each element is correct?
Any help much appreciated!