This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install.packages("tm") | |
install.packages("SnowballC") | |
install.packages("wordcloud") | |
install.packages("readtext") | |
library(tm) | |
library(SnowballC) | |
library(wordcloud) | |
library(readtext) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tensors for loading and unloading frame of cycle | |
loadFieldLE = odb.steps[lastStepName].frames[0].fieldOutputs['LE'] | |
loadFieldS = odb.steps[lastStepName].frames[0].fieldOutputs['S'] | |
unloadFieldLE = odb.steps[lastStepName].frames[-1].fieldOutputs['LE'] | |
unloadFieldS = odb.steps[lastStepName].frames[-1].fieldOutputs['S'] | |
# calculate tensor mean and amplitude values | |
meanLE = 0.5*(loadFieldLE+unloadFieldLE) | |
ampLE = 0.5*(loadFieldLE-unloadFieldLE) | |
meanS = 0.5*(loadFieldS+unloadFieldS) |