diff --git a/conf/config.toml b/conf/config.toml index 0975b2b..b20c990 100644 --- a/conf/config.toml +++ b/conf/config.toml @@ -11,8 +11,8 @@ name = "anisotropy" format = "%(levelname)s: %(message)s" [base] -simple = true -bodyCentered = true +simple = false +bodyCentered = false faceCentered = true ### diff --git a/postProcessing/showFailed b/postProcessing/showFailed new file mode 100755 index 0000000..ce9808a --- /dev/null +++ b/postProcessing/showFailed @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.." +cd ${DIR} + +source $OPENFOAM + +getcase() +{ + for _case in $( find $1 -type f -name $2 ); do + if [ "$( cat $_case | grep "$3" )" ]; then + echo $_case + fi + done +} + +echo -e "\nFailed mesh:" +getcase "$DIR/build" "task.toml" "mesh = false" + +echo -e "\nFailed flow:" +getcase "$DIR/build" "task.toml" "flow = false" + +endTime="$( foamDictionary "${DIR}/openfoam/template/system/controlDict" -entry endTime -value )" +echo -e "\nComputation exceed 'endTime = $endTime':" +getcase "$DIR/build" "simpleFoam.log" "Time = $endTime"