omartsc / scripts_iwwn

shell scripts to visualize OpenFOAM output data
1 stars 0 forks source link

fix fluxVsTime script to work with all numbers #2

Closed omartsc closed 5 years ago

omartsc commented 5 years ago

if phiWater gets near zero like "6.9897327e-07" then the evaluation works in a wrong way. --> grep -o '[^=^ ^-]+$' --> value is "07"

omartsc commented 5 years ago

used awk to convert negative numbers to positive one, including the ones multiplied by tenth powers