Skip to content
GitLab
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
ec95e83b
Commit
ec95e83b
authored
Jan 25, 2017
by
Jonathan Lambrechts
Browse files
thacker : add export_value_at_point
parent
613dfdba
Pipeline
#1697
failed with stage
in 37 minutes and 57 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
benchmarks/wetting-drying/thacker/thacker.py
View file @
ec95e83b
...
...
@@ -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
.
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