Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sergey Kireev
nle
Commits
189a2b95
Commit
189a2b95
authored
Sep 15, 2021
by
Sergey Kireev
Browse files
cpp scripts modified
parent
1a50add8
Changes
5
Hide whitespace changes
Inline
Side-by-side
nle_cpp/scripts/run_multiple/do_parameters.sh
View file @
189a2b95
...
...
@@ -13,13 +13,13 @@ export cell="sqr8"
export
nsize
=
3
# Array sizes
export
nx
=
4
00
export
ny
=
4
00
export
nx
=
3
00
export
ny
=
3
00
# Number of simulation steps
export
nt
=
100
000
export
nt
=
100
# Steps between saving to file
export
nts
=
10
00
export
nts
=
10
# Steps between printing output: ntp = default
# Model parameters
...
...
@@ -46,8 +46,8 @@ export prefix="data"
export
suffix
=
".dat"
# Picture size, pixels (1098,1098 for 500,500)
export
pic_size_x
=
10
98
export
pic_size_y
=
10
98
export
pic_size_x
=
6
98
export
pic_size_y
=
6
98
# Picture colors (https://www.google.ru/search?q=gnuplot+color+names)
export
colorN
=
yellow
...
...
@@ -80,7 +80,7 @@ export gnuplot_scripts_dir="../gnuplot"
export
step
=
20
export
min
=
0
export
max
=
50
0
export
max
=
4
0
export
minl
=
${
min
}
export
maxl
=
${
max
}
...
...
nle_cpp/scripts/run_single/make_pics.sh
View file @
189a2b95
...
...
@@ -16,15 +16,6 @@ if [ ! -d $name ]; then
exit
fi
# Set cell geometry
if
[
"
$cell
"
!=
"hex"
]
;
then
script_png
=
"
$scripts_dir
/make_png_sqr.plt"
script_gif
=
"
$scripts_dir
/make_gif_sqr.plt"
else
script_png
=
"
$scripts_dir
/make_png_hex.plt"
script_gif
=
"
$scripts_dir
/make_gif_hex.plt"
fi
cd
${
name
}
/dat
echo
"Making gif..."
...
...
nle_cpp/scripts/run_single/make_pics_groups.sh
View file @
189a2b95
...
...
@@ -18,15 +18,6 @@ if [ ! -d $name ]; then
exit
fi
# Set cell geometry
if
[
"
$cell
"
!=
"hex"
]
;
then
script_png
=
"
$scripts_dir
/make_png_sqr.plt"
script_gif
=
"
$scripts_dir
/make_gif_sqr.plt"
else
script_png
=
"
$scripts_dir
/make_png_hex.plt"
script_gif
=
"
$scripts_dir
/make_gif_hex.plt"
fi
cd
${
name
}
/dat
echo
"Making gif..."
...
...
nle_cpp/scripts/run_single/parameters.sh
View file @
189a2b95
...
...
@@ -5,32 +5,32 @@
#------------------------------------------------------------
# Additional program arguments
#export nle_args="-
mgslog mgs.txt -sg
"
#export nle_args="-
sg -fd
"
# Name of the run
export
name
=
"run01"
# Cell geometry: square/hex
export
cell
=
square
# Array sizes
export
nx
=
200
export
ny
=
200
# Cell geometry: sqr4/sqr8/hex
export
cell
=
"sqr8"
# Nanocrystal size
export
nsize
=
3
# Array sizes
export
nx
=
300
export
ny
=
300
# Number of simulation steps
export
nt
=
10
0
export
nt
=
10
# Steps between saving to file
export
nts
=
1
# Steps between printing output
export
ntp
=
1
0
export
ntp
=
1
# Model parameters
export
en
=
4.6
export
el
=
1.0
export
e
n
l
=
1.2
export
en
=
3.4
export
e
n
l
=
3.4
export
el
=
2.8
export
kt
=
1.0
export
mu
=
-2
.25
...
...
@@ -39,7 +39,7 @@ export evap=0.0
export
cond
=
0.0
# Probability of group movement
export
pgroup
=
0.0
1
export
pgroup
=
0.0
# Initial fraction of N,L,E
export
ipn
=
0.4
...
...
@@ -51,8 +51,8 @@ export prefix="data"
export
suffix
=
".dat"
# Picture sizes, pixels
export
pic_size_x
=
6
00
export
pic_size_y
=
6
00
export
pic_size_x
=
6
98
export
pic_size_y
=
6
98
# Picture colors (https://www.google.ru/search?q=gnuplot+color+names)
export
colorN
=
yellow
...
...
@@ -60,8 +60,25 @@ export colorL="#b52000"
export
colorE
=
black
# Picture title
export
pic_title
=
"e_
l
=
${
e
l
}
e_{nl}=
${
enl
}
e_
n
=
${
e
n
}
Step: "
export
pic_title
=
"e_
n
=
${
e
n
}
e_{nl}=
${
enl
}
e_
l
=
${
e
l
}
Step: "
# directories
export
executable
=
"../../src/nle"
export
scripts_dir
=
"../gnuplot"
export
gnuplot_scripts_dir
=
"../gnuplot"
################################################################################
if
[[
"
$cell
"
==
"hex6"
]]
;
then
cell
=
"hex"
;
fi
if
[[
"
$cell
"
!=
"hex"
]]
&&
[[
"
$cell
"
!=
"sqr8"
]]
;
then
cell
=
"sqr4"
fi
if
[[
"
$cell
"
==
"sqr4"
]]
||
[[
"
$cell
"
==
"sqr8"
]]
;
then
script_gif
=
"
${
gnuplot_scripts_dir
}
/make_gif_sqr.plt"
script_png
=
"
${
gnuplot_scripts_dir
}
/make_png_sqr.plt"
else
script_gif
=
"
${
gnuplot_scripts_dir
}
/make_gif_hex.plt"
script_png
=
"
${
gnuplot_scripts_dir
}
/make_png_hex.plt"
fi
nle_cpp/scripts/run_single/run.sh
→
nle_cpp/scripts/run_single/run
_single
.sh
View file @
189a2b95
...
...
@@ -16,16 +16,6 @@ if [ ! -x $executable ]; then
exit
fi
# Set cell geometry
if
[
"
$cell
"
!=
"hex"
]
;
then
cell
=
"square"
script_png
=
"
$scripts_dir
/make_png_sqr.plt"
script_gif
=
"
$scripts_dir
/make_gif_sqr.plt"
else
script_png
=
"
$scripts_dir
/make_png_hex.plt"
script_gif
=
"
$scripts_dir
/make_gif_hex.plt"
fi
echo
"Name:
${
name
}
"
mkdir
$name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment