Skip to content

nfinan/microstructure-ve

 
 

Repository files navigation

microstructure-ve

A repository for FEA code developed by members of the Brinson Group at Duke University. Packages specialized for the analysis of polymer nanoparticle composites (PNCs).

Active Maintainers: Richard Sheridan†, Anqi (Claire) Lin†, Nicholas Finan

Documentation

3D_rve_gen

contains Box object containing some important functions: populateSpheres, populateSpheresSequential, and voxelize

Box(size)

size: length of one edge of the RVE boundary (float)

Box.populateSpheres(numSpheres, radiusIn, variance=0.)

fills RVE with inclusions of specified size and number. Positions are randomly selected via uniform dirtribution

numSpheres: number of inclusions to generate (int)

radiusIn: target radius of inclusions (float)

variance: variance when allowing inclusion radii to vary according to normal distribution (float) [default is 0.]

Box.populateSpheresSequential(numSpheres, radiusIn, variance=0.)

Faster than populateSpheres, and shown to have less confirmation bias when variance > 0.

numSpheres: number of inclusions to generate (int)

radiusIn: target radius of inclusions (float)

variance: variance when allowing inclusion radii to vary according to normal distribution (float) [default is 0.]

Box.voxelize(split=10)

Transforms a generated Box object into a binary 3D image. Outputs Box.voxels as a [n][n][n] array

Attributions

†Duke University, Brinson Group

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%