Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dg
dg
Commits
5022488c
Commit
5022488c
authored
Jan 25, 2017
by
Jonathan Lambrechts
Committed by
Valentin Vallaeys
Jan 26, 2017
Browse files
thacker : add export_value_at_point
parent
cd85b968
Pipeline
#1708
passed with stage
in 30 minutes and 27 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
benchmarks/wetting-drying/thacker/thacker.py
View file @
5022488c
...
...
@@ -62,11 +62,14 @@ slimPre.write_file('g.nc', region=None, time=None, data=[('g', g)])
###########
### run ###
###########
x
=
numpy
.
arange
(
0
,
R
,
5000
)
y
=
0
*
x
domain
=
slim
.
Domain
(
meshfile
,(
'bath.nc'
,
'bath'
),
g
=
(
"g.nc"
,
"g"
))
eq
=
slim
.
ShallowWater2dWD
(
domain
,
"implicit"
,
final_time
=
tend
,
hlimt
=
hlimt
,
hlimd
=
hlimd
,
linDrag
=
linDrag
,
manning
=
manning
)
eq
.
set_initial_condition
((
'init.nc'
,
'eta'
),(
'init.nc'
,
'u'
),(
'init.nc'
,
'v'
))
eq
.
set_boundary_coast
(
'Wall'
)
eq
.
export_value_at_point
(
"sol.txt"
,
x
,
y
)
loop
=
slim
.
Loop
(
maximum_time_step
=
dt
,
export_time
=
600
)
loop
.
add_equation
(
eq
)
loop
.
run
()
Write
Preview
Supports
Markdown
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