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
2c057c42
Commit
2c057c42
authored
12 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Updated the glass pre-ICs and the sod shock script.
Former-commit-id: 367c2893c4514c30f1570637f950a57f9e184a5c
parent
dc623367
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/SodShock/makeIC.py
+4
-4
4 additions, 4 deletions
examples/SodShock/makeIC.py
with
4 additions
and
4 deletions
examples/SodShock/makeIC.py
+
4
−
4
View file @
2c057c42
...
@@ -37,13 +37,13 @@ fileName = "sodShock.hdf5"
...
@@ -37,13 +37,13 @@ fileName = "sodShock.hdf5"
#---------------------------------------------------
#---------------------------------------------------
#Read in high density glass
#Read in high density glass
glass1
=
h5py
.
File
(
"
../Glass/glass_
125
00.hdf5
"
)
glass1
=
h5py
.
File
(
"
../Glass/glass_
2000
00.hdf5
"
)
pos1
=
glass1
[
"
/PartType
0
/Coordinates
"
][:,:]
pos1
=
glass1
[
"
/PartType
1
/Coordinates
"
][:,:]
pos1
=
pos1
/
20.
# Particles are in [0:0.5, 0:0.5, 0:0.5]
pos1
=
pos1
/
20.
# Particles are in [0:0.5, 0:0.5, 0:0.5]
#Read in high density glass
#Read in high density glass
glass2
=
h5py
.
File
(
"
../Glass/glass_
3125
.hdf5
"
)
glass2
=
h5py
.
File
(
"
../Glass/glass_
50000
.hdf5
"
)
pos2
=
glass2
[
"
/PartType
0
/Coordinates
"
][:,:]
pos2
=
glass2
[
"
/PartType
1
/Coordinates
"
][:,:]
pos2
=
pos2
/
20.
# Particles are in [0:0.5, 0:0.5, 0:0.5]
pos2
=
pos2
/
20.
# Particles are in [0:0.5, 0:0.5, 0:0.5]
#Generate high density region
#Generate high density region
...
...
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