2024-10-22 16:46:39 +04:00
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
2024-10-27 23:29:52 +04:00
|
|
|
|
2024-10-22 16:46:39 +04:00
|
|
|
class ExperimentParameters(BaseModel):
|
|
|
|
outer_blades_count: str
|
|
|
|
outer_blades_length: str
|
|
|
|
outer_blades_angle: str
|
|
|
|
middle_blades_count: str
|
|
|
|
load: str
|
|
|
|
recycling: str
|
|
|
|
|
2024-10-27 23:29:52 +04:00
|
|
|
|
2024-10-22 16:46:39 +04:00
|
|
|
class ChExperimentDBExperimentDataBody(BaseModel):
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
volume: float
|
|
|
|
nitrogen_oxide_emission: float
|
|
|
|
temperature: float
|
|
|
|
co_fraction: float
|
|
|
|
co2_fraction: float
|
|
|
|
x: float
|
|
|
|
y: float
|
|
|
|
z: float
|
|
|
|
file_id: str
|
|
|
|
|
2024-10-27 23:29:52 +04:00
|
|
|
|
|
|
|
class ExperimentCategoryBody(BaseModel):
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
name: str
|
|
|
|
|
|
|
|
|
2024-10-22 16:46:39 +04:00
|
|
|
class ExperimentDataBody(BaseModel):
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
direction: float
|
|
|
|
temperature: float
|
|
|
|
nox: float
|
|
|
|
co2: float
|
|
|
|
co: float
|
|
|
|
file_id: Optional[str]
|
|
|
|
|
2024-10-27 23:29:52 +04:00
|
|
|
|
2024-10-22 16:46:39 +04:00
|
|
|
class ExperimentParametersBody(BaseModel):
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
outer_blades_count: int
|
|
|
|
outer_blades_length: float
|
|
|
|
outer_blades_angle: float
|
|
|
|
middle_blades_count: int
|
|
|
|
load_id: Optional[int]
|
|
|
|
recycling_id: Optional[int]
|
|
|
|
experiment_hash: str
|
|
|
|
|
2024-10-27 23:29:52 +04:00
|
|
|
|
2024-10-22 16:46:39 +04:00
|
|
|
class LoadParametersBody(BaseModel):
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
load: int
|
|
|
|
primary_air_consumption: float
|
|
|
|
secondary_air_consumption: float
|
|
|
|
gas_inlet_consumption: float
|
|
|
|
|
2024-10-27 23:29:52 +04:00
|
|
|
|
2024-10-22 16:46:39 +04:00
|
|
|
class RecyclingParametersBody(BaseModel):
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
load_id: Optional[int]
|
|
|
|
recycling_level: int
|
|
|
|
co2: float
|
|
|
|
n2: float
|
|
|
|
h2o: float
|
|
|
|
o2: float
|