diff --git a/anisotropy/db.py b/anisotropy/db.py index 5879393..2eca44a 100644 --- a/anisotropy/db.py +++ b/anisotropy/db.py @@ -8,12 +8,46 @@ class Structure(BaseModel): name = TextField() direction = TextField() theta = FloatField() + + r0 = FloatField() + L = FloatField() + radius = FloatField() + length = FloatField() + width = FloatField() + height = FloatField() + + fillets = FloatField() + path = TextField() class Mesh(BaseModel): - maxSize = FloatField() - minSize = FloatField() + structure = ForeignKeyField(Structure, backref = "meshes") + + maxSize = FloatField() + minSize = FloatField() + + fineness = IntegerField() + growthRate = FloatField() + nbSegPerEdge = FloatField() + nbSegPerRadius = FloatField() + chordalErrorEnabled = BooleanField() chordalError = FloatField() - calculationTime = TimeField() - structure = ForeignKeyField(Structure, backref = "mesh") + + secondOrder = BooleanField() + optimize = BooleanField() + quadAllowed = BooleanField() + useSurfaceCurvature = BooleanField() + fuseEdges = BooleanField() + checkChartBoundary = BooleanField() + + viscousLayers = BooleanField() + thickness = FloatField() + numberOfLayers = IntegerField() + stretchFactor = FloatField() + isFacesToIgnore = BooleanField() + #facesToIgnore = ["inlet", "outlet"] + #faces = [] + #extrusionMethod = ExtrusionMethod.SURF_OFFSET_SMOOTH + calculationTime = TimeField() +