Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
particle_methods
hysop
Commits
8d295d2b
Commit
8d295d2b
authored
6 years ago
by
Jean-Baptiste Keck
Browse files
Options
Downloads
Patches
Plain Diff
update levelset example
parent
880d668c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Resolve "Sine and cosine transforms to solve homogeneous Neumann and Dirichlet problems"
Pipeline
#17170
canceled
6 years ago
Stage: env
Stage: configure
Stage: build
Stage: install
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/sediment_deposit/sediment_deposit_levelset.py
+5
-5
5 additions, 5 deletions
examples/sediment_deposit/sediment_deposit_levelset.py
with
5 additions
and
5 deletions
examples/sediment_deposit/sediment_deposit_levelset.py
+
5
−
5
View file @
8d295d2b
...
...
@@ -8,7 +8,7 @@ TANK_RATIO = 1
FILL_PCT
=
0.25
SEDIMENT_RADIUS
=
5e-3
SEDIMENT_COUNT
=
int
(
1.15
*
(
FILL_PCT
*
TANK_RATIO
/
(
np
.
pi
*
SEDIMENT_RADIUS
**
2
)))
DISCRETIZATION
=
2
048
DISCRETIZATION
=
2
56
BLOB_INIT
=
False
NB
=
5
...
...
@@ -322,7 +322,7 @@ def compute(args):
**
extra_op_kwds
)
#> Operator to compute and save mean fields
axes
=
list
(
range
(
0
,
dim
-
1
))
axes
=
list
(
range
(
1
,
dim
))
view
=
[
slice
(
None
,
None
,
None
),]
*
dim
view
=
tuple
(
view
)
io_params
=
IOParams
(
filename
=
'
horizontally_averaged_profiles
'
,
frequency
=
0
)
...
...
@@ -334,7 +334,7 @@ def compute(args):
### Adaptive timestep operator
adapt_dt
=
AdaptiveTimeStep
(
dt
,
equivalent_CFL
=
True
,
name
=
'
merge_dt
'
,
pretty_name
=
'
dt
'
,
max_dt
=
1
)
max_dt
=
1e-
1
)
dt_cfl
=
adapt_dt
.
push_cfl_criteria
(
cfl
=
args
.
cfl
,
Finf
=
min_max_U
.
Finf
,
equivalent_CFL
=
True
,
...
...
@@ -430,8 +430,8 @@ if __name__=='__main__':
npts
=
(
TANK_RATIO
*
DISCRETIZATION
+
1
,
DISCRETIZATION
+
1
),
box_origin
=
(
0.0
,),
box_length
=
(
1.0
,),
tstart
=
0.0
,
tend
=
100.1
,
dt
=
1e-6
,
cfl
=
8.0
0
,
lcfl
=
0.50
,
dump_times
=
tuple
(
float
(
5
*
x
)
for
x
in
range
(
2
0
)),
dt
=
1e-6
,
cfl
=
0.5
0
,
lcfl
=
0.50
,
dump_times
=
tuple
(
float
(
1
*
x
)
for
x
in
range
(
10
0
)),
dump_freq
=
0
)
parser
.
run
(
compute
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment