def main(): """ The complete process consists of 4 stages: * Particle data generation based on user defined statitics. * Particle packing routine. * RVE voxelization routine. * Writing output files. Individual stages can be run by commenting out the remaining stages. """ inputFile = os.getcwd() + '/stat_input.json' particleStatGenerator(inputFile) # Generate data for particle simulation packingRoutine() # Particle packing simulation voxelizationRoutine(750) # RVE voxelization (Meshing) write_abaqus_inp() # Write out Abaqus input (.inp) file write_output_stat() # Compare input and output statistics return
def outputstats(ctx): """ Writes out the particle- and grain diameter attributes for statistical comparison. Final RVE grain volumes and shared grain boundary surface areas info are written out as well.""" write_output_stat() extract_volume_sharedGBarea()