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
SWIFT
SWIFTsim
Commits
cfe714f1
Commit
cfe714f1
authored
Feb 06, 2013
by
Pedro Gonnet
Browse files
better initial guesses for h.
Former-commit-id: 1f70df3bec09555f3f0a70072b1d6c829f0f8d0b
parent
4e43037d
Changes
3
Hide whitespace changes
Inline
Side-by-side
examples/PertubedBox/makeIC.py
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
...
...
examples/SedovBlast/makeIC.py
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
:
...
...
examples/UniformBox/makeIC.py
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
...
...
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