sandialabs / NuMAD

Numerical Manufacturing And Design Tool (NuMAD) -- A design tool for wind and water turbine composite blades
http://numad.readthedocs.io/
Other
30 stars 19 forks source link

original Crunch package unable to process larger datasets in runIEC #22

Open DeepFriedDerp opened 1 year ago

DeepFriedDerp commented 1 year ago

The original Crunch package used for fatigue analysis in the runIEC utility returns memory faults on larger datasets. I also couldn't figure out how to get the matlab and python-based crunch ports working in runIEC.

I ended up writing a matlab package that could read the original crunch input files, perform the rainflow counting that I needed for my analysis, and write an output file that was similar enough to the original crunch output file that the runIEC utilities could use it for the rest of the analysis and formatting. It required changing lines 624 and 625 in /NuMAD/source/utilities/runIEC/runIECDLC1p1_1p2.m from dos([crunchPath ' ' cru.JobOpt.AggRoot '.cru']); cd(hm);

to

cd(hm); status = gCrunch(string([cru.JobOpt.AggRoot '.cru']));

Where gCrunch is the replacement crunch function (basic rainflow counting only), and the input argument is the name of the original crunch input file.

If the developers would like the source code to run through review for public release, let me know.