DEMLab - Discrete Element Method Laboratory
Contents
Instructions
This is the main script file of the DEMLab program.
Running Simulations:
To run a simulation, execute this script and select an appropriate parameters file with the .json extension.
Multiple parameter files can be selected to run simulations sequentially, as long as they are located in the same folder.
Sub-folders with the simulation name plus the suffix "_out" are created to receive the output files with the results of each simulation.
Loading Results:
To load and show results from a previously run simulation, execute this script and select an appropriate storage file with the .mat extension.
Multiple storage files can be selected to load and show results sequentially, as long as they are located in the same folder.
Furthermore, if a storage file named after the simulation name is located in the same folder of the parameters file, the simulation is restarted from the stored results.
OOP classes
This program adopts an Object Oriented Programming (OOP) paradigm. The following OOP super-classes are implemented:
Analysis:
Algorithms:
Components:
Interaction Models:
Conditions:
Inlet/Outlet:
Input/Output:
Initialization
clc; clearvars; close all;
addpath(genpath(pwd));
Master().runSimulations(1);