Example #1
0
    def GetRunCode(self):
        code = SDP.CreateRunCode(self.pp)

        if self.pp.CFD_DEM["fluid_already_calculated"].GetBool():
            return code + '_precalculated_fluid'
        else:
            return code
    def GetRunCode(self):
        code = SDP.CreateRunCode(self.project_parameters)

        if self.project_parameters["fluid_already_calculated"].GetBool():
            return code + '_precalculated_fluid'
        else:
            return code
 def GetRunCode(self):
     return SDP.CreateRunCode(self.pp)
pp.CFD_DEM.time_window = 0.1
pp.CFD_DEM.number_of_exponentials = M
pp.CFD_DEM.number_of_quadrature_steps_in_window = int(
    pp.CFD_DEM.time_window / pp.CFD_DEM.delta_time_quadrature)
pp.CFD_DEM.print_steps_per_plot_step = 1
pp.CFD_DEM.PostCationConcentration = False
pp.CFD_DEM.do_impose_flow_from_field = True
pp.CFD_DEM.print_MATERIAL_ACCELERATION_option = True
pp.CFD_DEM.print_FLUID_ACCEL_FOLLOWING_PARTICLE_PROJECTED_option = False
number_of_vectors_to_be_kept_in_memory = pp.CFD_DEM.time_window / pp.CFD_DEM.MaxTimeStep * pp.CFD_DEM.time_steps_per_quadrature_step + pp.CFD_DEM.number_of_exponentials
print('\nNumber of vectors to be kept in memory: ',
      number_of_vectors_to_be_kept_in_memory)
# Making the fluid step an exact multiple of the DEM step
pp.Dt = int(pp.Dt / pp.CFD_DEM.MaxTimeStep) * pp.CFD_DEM.MaxTimeStep
# Creating a code for the used input variables
run_code = swim_proc.CreateRunCode(pp)
#Z

# Creating swimming DEM procedures
procedures = DEM_procedures.Procedures(DEM_parameters)

# Creating necessary directories
main_path = os.getcwd()

[post_path, data_and_results, graphs_path,
 MPI_results] = procedures.CreateDirectories(str(main_path),
                                             str(DEM_parameters.problem_name),
                                             run_code)

# Import utilities from models