Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mike Park
authored and
Mike Park
committed
Jun 24, 2021
1 parent
eabaea1
commit 8dc7222
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x # echo commands | ||
set -e # exit on first error | ||
set -u # Treat unset variables as error | ||
|
||
if [ $# -gt 0 ] ; then | ||
src=$1/src | ||
else | ||
src=${HOME}/refine/egads/src | ||
fi | ||
|
||
tecplot=-t | ||
field1="-u combo1" | ||
field2="-u combo2" | ||
egads="-g square.egads" | ||
|
||
function adapt_cycle { | ||
inproj=$1 | ||
outproj=$2 | ||
complexity=$3 | ||
|
||
${src}/ref_acceptance ${field1} ${inproj}.meshb \ | ||
${inproj}-1.solb | ||
${src}/ref_acceptance ${field2} ${inproj}.meshb \ | ||
${inproj}-2.solb | ||
|
||
${src}/ref_metric_test ${inproj}.meshb ${inproj}-1.solb ${inproj}-2.solb \ | ||
2 -1 ${complexity} ${inproj}-metric.solb | ||
|
||
${src}/ref adapt ${inproj}.meshb ${egads} -m ${inproj}-metric.solb \ | ||
-x ${outproj}.meshb -f ${outproj}.tec | ||
|
||
${src}/ref_acceptance ${field1} ${outproj}.meshb \ | ||
${outproj}-1.solb | ||
${src}/ref_acceptance ${field2} ${outproj}.meshb \ | ||
${outproj}-2.solb | ||
|
||
${src}/ref visualize ${outproj}.meshb ${outproj}-1.solb ${outproj}-1.plt | ||
${src}/ref visualize ${outproj}.meshb ${outproj}-2.solb ${outproj}-2.plt | ||
} | ||
|
||
cp square.meshb cycle00.meshb | ||
|
||
adapt_cycle cycle00 cycle01 1000 | ||
adapt_cycle cycle01 cycle02 1000 | ||
adapt_cycle cycle02 cycle03 2000 | ||
adapt_cycle cycle03 cycle04 4000 | ||
#adapt_cycle cycle04 cycle05 8000 | ||
|
||
|
This file contains 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