Mod: database new fields

This commit is contained in:
L-Nafaryus 2021-12-22 22:50:15 +05:00
parent 49368cc681
commit fba3e53bb6
No known key found for this signature in database
GPG Key ID: C76D8DCD2727DBB7
3 changed files with 13 additions and 1 deletions

View File

@ -146,6 +146,10 @@ class UltimateRunner(object):
if not returncode:
shapeParams.shapeStatus = "done"
shapeParams.volume = self.shape.shape.volume
shapeParams.volumeCell = self.shape.cell.volume
shapeParams.porosity = shapeParams.volume / shapeParams.volumeCell
else:
logger.error(err)
shapeParams.shapeStatus = "failed"

View File

@ -84,6 +84,14 @@ class FlowOnephase(Model):
flowStatus = TextField(null = True, default = "idle")
flowExecutionTime = TimeField(null = True)
pressureInlet = FloatField(null = True)
pressureOutlet = FloatField(null = True)
pressureInternal = FloatField(null = True)
velocityInlet = FloatField(null = True)
velocityOutlet = FloatField(null = True)
velocityInternal = FloatField(null = True)
viscosity = FloatField(null = True)
density = FloatField(null = True)
flowRate = FloatField(null = True)
permeability = FloatField(null = True)

View File

@ -8,4 +8,4 @@ dependencies:
- poetry
- sqlite
- occt
- netgen==master
- netgen