-
-
Notifications
You must be signed in to change notification settings - Fork 409
Closed
Labels
Description
Problem description
I used the command "air.HPQ = None, Pa, 'o2:0.21, n2:0.79, AR:0.01'" and it worked. When I checked the results, it appeared that cantera just ignores the Q attribute instead of indicating that a string cannot be assigned for Q.
Steps to reproduce
-
Run the following commands in cantera:
import cantera as ct
gas = ct.Solution('gri30.yaml')
air = ct.Quantity(gas, constant='HP')
air.HPQ = None, None, 'o2:0.21, n2:0.79, AR:0.01' -
Error should be seen since a string is being assigned to Q, but no error appears.
Behavior
Cantera just ignores the wrong assignment to Q, but instead it just runs while ignoring the misuse of Q.
System information
- Cantera version: 2.5.1
- OS: macOS 11.4 Big Sur
- Python/MATLAB/other software versions: Python 3.7.9
Attachments
Additional context
cantera_issue.py.zip
Reactions are currently unavailable