Skip to content

Commit d3b9112

Browse files
Passthrough HNO3 if H2SO4 present in solubility
1 parent 2e5f5a9 commit d3b9112

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

backend/src/acidwatch_api/models/solubilityccs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ async def run(self) -> RunResult:
7070

7171
phases = self._extract_phases(fluid)
7272

73+
if h2so4 > 0 and hno3 > 0:
74+
for phase in phases:
75+
if phase.kind == "co2-rich":
76+
phase.concentrations.setdefault("HNO3", hno3)
77+
7378
return phases, TextResult(data=table, label="Solubility Output")
7479

7580
def _extract_phases(self, fluid: Fluid) -> list[Phase]:

0 commit comments

Comments
 (0)