Closed khiltunen closed 7 years ago
version?
Latest commit on simphony-openfoam 'new-cuds-support' branch
which error does it produce?
This happens only with the dataset having CUBA.VOLUME_FRACTION as list of PhaseValueFraction's
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14665, in
I see that you have a script that reproduces the error, could you please make it available?
VOLUME_FRACTION is a double. It does not accept PhaseValueFraction objects. you should use PHASE_VOLUME_FRACTION for that.
Actually, you should create a PhaseVolumeFractions (with an s) object, with those two PhaseVolumeFraction instances as values for self.phase_volume_fraction, and then set the PhaseVolumeFractions object with the key PHASE_VOLUME_FRACTIONS
If CUBA.VOLUME_FRACTION is PhaseVolumeFraction variable list an error is produced
zero_air = PhaseVolumeFraction(air, 0) one_water = PhaseVolumeFraction(water, 1) cell.data[CUBA.VOLUME_FRACTION] = [one_water, zero_air]