Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
SWIFTsim
Commits
cfe714f1
Commit
cfe714f1
authored
12 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
better initial guesses for h.
Former-commit-id: 1f70df3bec09555f3f0a70072b1d6c829f0f8d0b
parent
4e43037d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/PertubedBox/makeIC.py
+2
-2
2 additions, 2 deletions
examples/PertubedBox/makeIC.py
examples/SedovBlast/makeIC.py
+1
-1
1 addition, 1 deletion
examples/SedovBlast/makeIC.py
examples/UniformBox/makeIC.py
+2
-2
2 additions, 2 deletions
examples/UniformBox/makeIC.py
with
5 additions
and
5 deletions
examples/PertubedBox/makeIC.py
+
2
−
2
View file @
cfe714f1
###############################################################################
# This file is part of SWIFT.
# Coypright (c) 201
2
Pedro Gonnet (pedro.gonnet@durham.ac.uk),
# Coypright (c) 201
3
Pedro Gonnet (pedro.gonnet@durham.ac.uk),
# Matthieu Schaller (matthieu.schaller@durham.ac.uk)
#
# This program is free software: you can redistribute it and/or modify
...
...
@@ -63,7 +63,7 @@ for i in range(L):
v
[
index
,
1
]
=
0.
v
[
index
,
2
]
=
0.
m
[
index
]
=
mass
h
[
index
]
=
1
.2
*
boxSize
/
L
h
[
index
]
=
2
.2
51
*
boxSize
/
L
u
[
index
]
=
internalEnergy
ids
[
index
]
=
index
...
...
This diff is collapsed.
Click to expand it.
examples/SedovBlast/makeIC.py
+
1
−
1
View file @
cfe714f1
...
...
@@ -67,7 +67,7 @@ for i in range(L):
v
[
index
,
1
]
=
0.
v
[
index
,
2
]
=
0.
m
[
index
]
=
mass
h
[
index
]
=
1
.2
*
boxSize
/
L
h
[
index
]
=
2
.2
51
*
boxSize
/
L
u
[
index
]
=
internalEnergy
ids
[
index
]
=
index
if
sqrt
((
x
-
boxSize
/
2.
)
**
2
+
(
y
-
boxSize
/
2.
)
**
2
+
(
z
-
boxSize
/
2.
)
**
2
)
<
2.01
*
boxSize
/
L
:
...
...
This diff is collapsed.
Click to expand it.
examples/UniformBox/makeIC.py
+
2
−
2
View file @
cfe714f1
###############################################################################
# This file is part of SWIFT.
# Coypright (c) 201
2
Pedro Gonnet (pedro.gonnet@durham.ac.uk),
# Coypright (c) 201
3
Pedro Gonnet (pedro.gonnet@durham.ac.uk),
# Matthieu Schaller (matthieu.schaller@durham.ac.uk)
#
# This program is free software: you can redistribute it and/or modify
...
...
@@ -61,7 +61,7 @@ for i in range(L):
v
[
index
,
1
]
=
0.
v
[
index
,
2
]
=
0.
m
[
index
]
=
mass
h
[
index
]
=
1
.2
*
boxSize
/
L
h
[
index
]
=
2
.2
51
*
boxSize
/
L
u
[
index
]
=
internalEnergy
ids
[
index
]
=
index
...
...
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