====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gtspring2009:howto:poincare [2009/03/20 09:24] gibson |
gtspring2009:howto:poincare [2010/02/02 07:55] (current) |
||
---|---|---|---|
Line 5: | Line 5: | ||
channnnelflow utilities, specialized channelflow programs, Unix utilities, and bash | channnnelflow utilities, specialized channelflow programs, Unix utilities, and bash | ||
shell programming. | shell programming. | ||
- | |||
===== Integrate perturbations ===== | ===== Integrate perturbations ===== | ||
Line 42: | Line 41: | ||
couette -T0 0 -T1 400 -o data-11268 eq2_11268e0.ff | couette -T0 0 -T1 400 -o data-11268 eq2_11268e0.ff | ||
- | couette -T0 0 -T1 400 -o data-12696 eq2_11268e0.ff | + | couette -T0 0 -T1 400 -o data-12696 eq2_12696e0.ff |
... | ... | ||
Instead of typing each of these out, you can use a bash for-loop, | Instead of typing each of these out, you can use a bash for-loop, | ||
- | for i in eq2_*eo.ff ; do tag=${i#eq2_} ; couette -T0 0 -T1 400 -o data-${tag%.e0.ff} $i ; done | + | for i in eq2_*e0.ff ; do tag=${i#eq2_} ; couette -T0 0 -T1 400 -o data-${tag%.e0.ff} $i ; done |
The ${...} stuff is bash string manipulation syntax to extract the numerical part of the input file names. | The ${...} stuff is bash string manipulation syntax to extract the numerical part of the input file names. | ||
Line 136: | Line 135: | ||
| | ||
- |