Dear CONTAM community,
I am currently working on a project where I aim to reduce the contaminant level (Sarin) in a specific zone using ContamXPy. I have attempted two different approaches to achieve this, but I encountered some issues that I hope you can help me resolve:
1. Using a sink in ContamW:
• I configured a sink in ContamW, and it successfully reduces the Sarin concentration in the zone as expected. I also confirmed that this works correctly in ContamXPy.
• However, I am unable to control the sink dynamically using ContamXPy. Specifically, I cannot find a way to set or get the sink parameters programmatically. While I can increase the Sarin concentration using the setZoneAddMass function, I haven’t found a corresponding method to control or manipulate the sink parameters via ContamXPy.
2. Using setZoneAddMass to reduce Sarin:
• When using setZoneAddMass, I can increase the Sarin concentration in a zone by setting a positive value for the concentration. However, I have not found an equivalent way to decrease the Sarin concentration directly through this method.
Is there a recommended way to dynamically control the sink parameters in ContamXPy, or an alternative method to reduce Sarin concentrations in a specific zone programmatically?
I would greatly appreciate any guidance or insights on this matter.
Thanks to everyone’s help, I am making progress step by step. Thank you so much!
I can’t really spend time debugging your python code.
Add report controls to your CONTAM PRJ so you can see what values you are setting.
- Stuart