-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* more bindings for Database classes. * initial loading for local_tw_csv.py * minor fix. * parametric_tw_csv example. * update the commands. * fixed the command.
- Loading branch information
1 parent
72c8cdf
commit 3199284
Showing
10 changed files
with
1,731 additions
and
5 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
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
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
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
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,7 @@ | ||
MFEM INLINE mesh v1.0 | ||
|
||
type = quad | ||
nx = 4 | ||
ny = 4 | ||
sx = 1.0 | ||
sy = 1.0 |
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,33 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH -N 1 | ||
#SBATCH -t 0:05:00 | ||
#SBATCH -p pdebug | ||
#SBATCH -o sbatch.log | ||
#SBATCH --open-mode truncate | ||
|
||
rm -rf parameters.txt dmd_list dmd_data run/dmd_data | ||
|
||
python3 ./parametric_heat_conduction.py -r 0.40 -save -csv -out dmd_data/dmd_par1 -no-vis > hc_par1.log | ||
python3 ./parametric_heat_conduction.py -r 0.45 -save -csv -out dmd_data/dmd_par2 -no-vis > hc_par2.log | ||
python3 ./parametric_heat_conduction.py -r 0.55 -save -csv -out dmd_data/dmd_par3 -no-vis > hc_par3.log | ||
python3 ./parametric_heat_conduction.py -r 0.60 -save -csv -out dmd_data/dmd_par4 -no-vis > hc_par4.log | ||
python3 ./parametric_heat_conduction.py -r 0.50 -save -csv -out dmd_data/dmd_par5 -no-vis > hc_par5.log | ||
|
||
mkdir dmd_list | ||
mv -f run/dmd_data . | ||
|
||
awk 'END{print NR}' dmd_data/dmd_par1/step0/sol.csv > dmd_data/dim.csv | ||
|
||
mv dmd_data/dmd_par1/snap_list.csv dmd_list/dmd_par1.csv | ||
mv dmd_data/dmd_par2/snap_list.csv dmd_list/dmd_par2.csv | ||
mv dmd_data/dmd_par3/snap_list.csv dmd_list/dmd_par3.csv | ||
mv dmd_data/dmd_par4/snap_list.csv dmd_list/dmd_par4.csv | ||
mv dmd_data/dmd_par5/snap_list.csv dmd_list/dmd_par5.csv | ||
|
||
echo "dmd_par1,0.40,0.01,0,0" > dmd_list/dmd_train_parametric.csv | ||
echo "dmd_par2,0.45,0.01,0,0" >> dmd_list/dmd_train_parametric.csv | ||
echo "dmd_par3,0.55,0.01,0,0" >> dmd_list/dmd_train_parametric.csv | ||
echo "dmd_par4,0.60,0.01,0,0" >> dmd_list/dmd_train_parametric.csv | ||
echo "dmd_par5,0.50,0.01,0,0" > dmd_list/dmd_train_local.csv | ||
echo "dmd_par5,0.50,0.01,0,0" > dmd_list/dmd_test.csv |
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,25 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH -N 1 | ||
#SBATCH -t 0:05:00 | ||
#SBATCH -p pdebug | ||
#SBATCH -o sbatch.log | ||
#SBATCH --open-mode truncate | ||
|
||
rm -rf parameters.txt dmd_list dmd_data run/dmd_data | ||
|
||
python3 ./parametric_heat_conduction.py -r 0.40 -save -hdf -out dmd_data/sim0 -no-vis > hc_par0.log | ||
python3 ./parametric_heat_conduction.py -r 0.45 -save -hdf -out dmd_data/sim1 -no-vis > hc_par1.log | ||
python3 ./parametric_heat_conduction.py -r 0.55 -save -hdf -out dmd_data/sim2 -no-vis > hc_par2.log | ||
python3 ./parametric_heat_conduction.py -r 0.60 -save -hdf -out dmd_data/sim3 -no-vis > hc_par3.log | ||
python3 ./parametric_heat_conduction.py -r 0.50 -save -hdf -out dmd_data/sim4 -no-vis > hc_par4.log | ||
|
||
mkdir dmd_list | ||
mv -f run/dmd_data . | ||
|
||
echo "0,0.40,0.01,0,0" > dmd_list/dmd_train_parametric.csv | ||
echo "1,0.45,0.01,0,0" >> dmd_list/dmd_train_parametric.csv | ||
echo "2,0.55,0.01,0,0" >> dmd_list/dmd_train_parametric.csv | ||
echo "3,0.60,0.01,0,0" >> dmd_list/dmd_train_parametric.csv | ||
echo "4,0.50,0.01,0,0" > dmd_list/dmd_train_local.csv | ||
echo "4,0.50,0.01,0,0" > dmd_list/dmd_test.csv |
Oops, something went wrong.