def getOkabeData(fibertype,matrixtype,Vf,sigmayoption,matfilename,normoption=False):
    mat = Mio.getAndStore(getMatlabObject,Mio.getFilePrefix,override=True,filename=matfilename)
    key = fibertype + matrixtype + str(round(Vf*100)).rjust(2, '0')
    data = mat[key]
    cp = properties(fibertype,matrixtype,Vf)
    sigmay = getSigmay(cp,0,sigmayoption) # initial sigmay (zero load)
    sigmac, deltac = getGLSScalings(cp,sigmay)
    return normalizeData(data,sigmac,deltac,Vf,normoption)
Exemple #2
0
def readDDFile(
        inputfile,
        filetype,
        increment=None,
        override=False):  # e.g. disloc4.in or init_1.plt or displ100k.plt
    return Mio.getAndStore(readAndProcessDDFile,
                           getPickleName,
                           override,
                           inputfile=inputfile,
                           filetype=filetype,
                           increment=increment,
                           id=increment)
def getAndStoreBadXY(rootdir,
                     crackoption,
                     override,
                     voidoption=False,
                     pickledir='Pickle_Files/',
                     **kwargs):
    if crackoption == 1:  # my Delaunay method
        crackfun = getCrackNodesSub
    elif crackoption == 2:  # use centrosymmetry
        crackfun = getCrackNodesSub2
    return Mio.getAndStore(crackfun,
                           getBadXYFilename,
                           override,
                           rootdir + pickledir,
                           voidoption=voidoption,
                           **kwargs)
Exemple #4
0
def getAndStoreBadXY(dumparray,
                     circumradius,
                     dimensions,
                     bounds,
                     simname,
                     increment,
                     rootdir,
                     dumpdir='Dump_Files/',
                     pickledir='Pickle_Files/',
                     override=False,
                     voidoption=False,
                     dimensions=2):
    return Mio.getAndStore(getCrackNodesSub,
                           getBadXYFilename,
                           override=override,
                           subdirstore=rootdir + pickledir,
                           simname=simname,
                           increment=increment,
                           dumparray=dumparray,
                           dimensions=dimensions)
Exemple #5
0
def getAndStoreDump(simname,increment,rootdir,dumpdir='Dump_Files/',pickledir='Pickle_Files/',override=False,bounds=None,**kwargs):
    return Mio.getAndStore(readDumpFile,getDumpFilename,override=override,subdirstore=rootdir+pickledir,simname=simname,increment=increment,subdirread=rootdir+dumpdir,bounds=bounds)
def getXYTriangulation(filename,dicdict,override):
    return Mio.getAndStore(getXYTriangulationSub,getDICTestName,override,filename=filename,dicdict=dicdict)
def getData(filename,override):
    return Mio.getAndStore(loadAndCleanFile,Mio.getFilePrefix,override,filename=filename)
Exemple #8
0
def getXYTriangulation(filename, dicdict, override):
    return Mio.getAndStore(getXYTriangulationSub,
                           getDICTestName,
                           override,
                           filename=filename,
                           dicdict=dicdict)
Exemple #9
0
def getData(filename, override):
    return Mio.getAndStore(loadAndCleanFile,
                           Mio.getFilePrefix,
                           override,
                           filename=filename)
def getAndStoreBadXY(dumparray,circumradius,dimensions,bounds,simname,increment,rootdir,dumpdir='Dump_Files/',pickledir='Pickle_Files/',override=False,voidoption=False,dimensions=2):
    return Mio.getAndStore(getCrackNodesSub,getBadXYFilename,override=override,subdirstore=rootdir+pickledir,simname=simname,increment=increment,dumparray=dumparray,dimensions=dimensions)
def readDDFile(inputfile,filetype,increment=None,override=False): # e.g. disloc4.in or init_1.plt or displ100k.plt
    return Mio.getAndStore(readAndProcessDDFile,getPickleName,override,inputfile=inputfile,filetype=filetype,increment=increment,id=increment)
def getAndStoreBadXY(rootdir,crackoption,override,voidoption=False,pickledir='Pickle_Files/',**kwargs):
    if crackoption == 1: # my Delaunay method
        crackfun = getCrackNodesSub
    elif crackoption == 2: # use centrosymmetry
        crackfun = getCrackNodesSub2
    return Mio.getAndStore(crackfun,getBadXYFilename,override,rootdir+pickledir,voidoption=voidoption,**kwargs)