def GetFieldUtility(self): self.flow_field = SDEM.PouliotFlowField2D() space_time_set = SDEM.SpaceTimeSet() self.field_utility = SDEM.FluidFieldUtility(space_time_set, self.flow_field, 1000.0, 1e-6) return self.field_utility
def GetFieldUtility(self): a = math.pi / 4 d = math.pi / 2 self.flow_field = SDEM.EthierFlowField(a, d) space_time_set = SDEM.SpaceTimeSet() self.field_utility = SDEM.FluidFieldUtility(space_time_set, self.flow_field, 1000.0, 1e-6) return self.field_utility
def GetFieldUtility(self): period = self.project_parameters["field_period"].GetDouble() self.flow_field = SDEM.ProductOfSines(period) space_time_set = SDEM.SpaceTimeSet() self.field_utility = SDEM.FluidFieldUtility(space_time_set, self.flow_field, 1000.0, 1e-6) return self.field_utility
def GetFieldUtility(self): self.flow_field = SDEM.CellularFlowField(self.project_parameters.L, self.project_parameters.U, self.project_parameters.k, self.project_parameters.omega) space_time_set = SDEM.SpaceTimeSet() self.field_utility = SDEM.FluidFieldUtility(space_time_set, self.flow_field, 1000.0, 1e-6) return self.field_utility
def __init__(self, real_field_type, fixed_mesh_option): self.real_field_type = real_field_type self.fixed_mesh_option = fixed_mesh_option if (self.real_field_type == 0): self.force_formula = SDEM.TimeDependantForceField(2) self.porosity_default_value = 1.0 self.force_default_vector = Array3() self.force_default_vector[0] = 0.0 self.force_default_vector[1] = 0.0 self.force_default_vector[2] = 0.0 self.porosity_formula = self.force_formula.GetPorosityField() self.b_box_rule = SDEM.BoundingBoxRule() self.b_box_rule.SetTimeBoundingInterval(0, 3) self.b_box_rule.SetYBoundingInterval(-1, 1) self.domain = SDEM.SpaceTimeSet() self.domain.AddAndRule(self.b_box_rule) self.porosity_field_utility = SDEM.FieldUtility(self.domain) self.force_field_utility = SDEM.FieldUtility(self.domain)