Filter Integration Issue in ContamXPy for Sarin Reduction Simulation

17 views
Skip to first unread message

이수환

unread,
Dec 14, 2024, 12:11:08 PM12/14/24
to CONTAM

I am conducting research on cooperative control among multiple air purifiers (filters) to efficiently remove sarin in a single room.

As a first step, I modified test_OneZoneSS-Loop and test_OneZoneSS-Transient.prj to create a scenario where sarin values decrease over time through the application of filters. However, it seems that the filter is not properly connected to the flow path.

I have attached the modified Python and PRJ files for reference.

If anyone can help, I would greatly appreciate your feedback.

sample.tar

William Dols

unread,
Dec 18, 2024, 10:41:16 AM12/18/24
to CONTAM, xxsw...@gmail.com
Your module does not run as provided due to modifications you have made to cxResults.py.
python-error.png

I'm not clear on the purposes of your analysis, but I will provide some observations.

You are running a transient PRJ file that incorporates both a WTH and CTM files.
The demo python driver modules are provided in a manner that provides these boundary conditions via the contamx-lib API.

test_OneZoneSS.prj, test_OneZoneSS-Transient.prj, and test_OneZoneSS-UseApi.prj are provided as three different ways to run similar simulations.
The first two are meant to be run without using contamxpy, and the third "-UseApi" is meant to be run using the contamx-lib API, i.e., contamxpy, via test_OneZoneSS.py.
The test_OneZoneSS-Loop.py module is meant to run multiple steady state simulations with different boundary conditions provided by the "_data" arrays within the driver module.

One should always ensure their models are well-formed and behave as intended before turning to the use of contamxpy to execute the API versions of them.
Try setting the source multiplier to zero and the filtration level to 1.0 to see that there will be no contaminant within the zone during simulation even though there is contaminant outdoors.
If you run either of the first two this way via ContamW (i.e., ContamX) you will see the filter is working as intended.

To run a transient simulation, one would use a driver program similar to test_OneZoneWthCtm.py and the accompanying test_OneZoneWthCtm-UseApi.prj.

- Stuart
Reply all
Reply to author
Forward
0 new messages