Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
argupta
openfpm_pdata
Commits
d487aa0c
Commit
d487aa0c
authored
8 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Added new images
parent
4f55bd76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
images/Makefile.am
+3
-1
3 additions, 1 deletion
images/Makefile.am
images/Vector_dist.py
+0
-190
0 additions, 190 deletions
images/Vector_dist.py
images/vector.cpp
+4
-0
4 additions, 0 deletions
images/vector.cpp
with
7 additions
and
191 deletions
images/Makefile.am
+
3
−
1
View file @
d487aa0c
...
...
@@ -42,10 +42,12 @@ images : cart_dec metis_dec dom_box
mkdir
-p
generated
mkdir
-p
static
pvbatch Domain_decomposition.py
pvbatch
V
ector_dist.py
pvbatch
v
ector_dist.py
pvbatch mooving_particles.py
pvbatch mooving_particles_prc.py
pvbatch vector_scal_vect.py
pvbatch vector_particles.py
pvbatch particles_maps.py
dot
-Tsvg
openfpm.dot
-o
generated/openfpm.svg
avconv
-i
generated/particles_mooving.ogv
-f
mp4 generated/particles_mooving.mp4
avconv
-i
generated/particles_mooving_prc.ogv
-f
mp4 generated/particles_mooving_prc.mp4
...
...
This diff is collapsed.
Click to expand it.
images/Vector_dist.py
deleted
100644 → 0
+
0
−
190
View file @
4f55bd76
#### import the simple module from the paraview
from
paraview.simple
import
*
#### disable automatic camera reset on 'Show'
paraview
.
simple
.
_DisableFirstRenderCameraReset
()
# create a new 'CSV Reader'
vector_before_map0csv
=
CSVReader
(
FileName
=
[
'
Vector/vector_before_map0.csv
'
])
# get active view
renderView1
=
GetActiveViewOrCreate
(
'
RenderView
'
)
# uncomment following to set a specific view size
# renderView1.ViewSize = [1020, 495]
# set active view
SetActiveView
(
renderView1
)
# create a new 'Table To Points'
tableToPoints1
=
TableToPoints
(
Input
=
vector_before_map0csv
)
tableToPoints1
.
XColumn
=
'
x[0]
'
tableToPoints1
.
YColumn
=
'
x[1]
'
tableToPoints1
.
a2DPoints
=
1
# show data in view
tableToPoints1Display
=
Show
(
tableToPoints1
,
renderView1
)
# trace defaults for the display properties.
tableToPoints1Display
.
ColorArrayName
=
[
None
,
''
]
# change representation type
tableToPoints1Display
.
SetRepresentationType
(
'
Points
'
)
# create a new 'CSV Reader'
vector_before_map1csv
=
CSVReader
(
FileName
=
[
'
Vector/vector_before_map1.csv
'
])
# set active view
SetActiveView
(
renderView1
)
# create a new 'Table To Points'
tableToPoints2
=
TableToPoints
(
Input
=
vector_before_map1csv
)
tableToPoints2
.
XColumn
=
'
x[0]
'
tableToPoints2
.
YColumn
=
'
x[1]
'
tableToPoints2
.
a2DPoints
=
1
# show data in view
tableToPoints2Display
=
Show
(
tableToPoints2
,
renderView1
)
# trace defaults for the display properties.
tableToPoints2Display
.
ColorArrayName
=
[
None
,
''
]
# change representation type
tableToPoints2Display
.
SetRepresentationType
(
'
Points
'
)
# change solid color
tableToPoints2Display
.
AmbientColor
=
[
0.0
,
1.0
,
0.0
]
# create a new 'CSV Reader'
vector_before_map2csv
=
CSVReader
(
FileName
=
[
'
Vector/vector_before_map2.csv
'
])
# set active view
SetActiveView
(
renderView1
)
# create a new 'Table To Points'
tableToPoints3
=
TableToPoints
(
Input
=
vector_before_map2csv
)
tableToPoints3
.
XColumn
=
'
x[0]
'
tableToPoints3
.
YColumn
=
'
x[1]
'
tableToPoints3
.
a2DPoints
=
1
# show data in view
tableToPoints3Display
=
Show
(
tableToPoints3
,
renderView1
)
# trace defaults for the display properties.
tableToPoints3Display
.
ColorArrayName
=
[
None
,
''
]
# change representation type
tableToPoints3Display
.
SetRepresentationType
(
'
Points
'
)
# change solid color
tableToPoints3Display
.
AmbientColor
=
[
1.0
,
0.35294117647058826
,
0.35294117647058826
]
#### saving camera placements for all active views
# current camera placement for renderView1
renderView1
.
InteractionMode
=
'
2D
'
renderView1
.
CameraPosition
=
[
0.50000391295
,
0.499549132735
,
10000.0
]
renderView1
.
CameraFocalPoint
=
[
0.50000391295
,
0.499549132735
,
0.0
]
renderView1
.
CameraParallelScale
=
0.7067808453124975
#### uncomment the following to render all views
# RenderAllViews()
# alternatively, if you want to write images, you can use SaveScreenshot(...).
WriteImage
(
"
generated/non_geometrical_decomposition.jpg
"
)
# destroy tableToPoints1
Delete
(
tableToPoints1
)
del
tableToPoints1
Delete
(
tableToPoints2
)
del
tableToPoints2
Delete
(
tableToPoints3
)
del
tableToPoints3
# destroy vector_before_map0csv
Delete
(
vector_before_map0csv
)
del
vector_before_map0csv
Delete
(
vector_before_map1csv
)
del
vector_before_map1csv
Delete
(
vector_before_map2csv
)
del
vector_before_map2csv
# create a new 'CSV Reader'
vector_before_map0csv
=
CSVReader
(
FileName
=
[
'
Vector/vector_after_map0.csv
'
])
# get active view
renderView1
=
GetActiveViewOrCreate
(
'
RenderView
'
)
# uncomment following to set a specific view size
# renderView1.ViewSize = [1020, 495]
# set active view
SetActiveView
(
renderView1
)
# create a new 'Table To Points'
tableToPoints1
=
TableToPoints
(
Input
=
vector_before_map0csv
)
tableToPoints1
.
XColumn
=
'
x[0]
'
tableToPoints1
.
YColumn
=
'
x[1]
'
tableToPoints1
.
a2DPoints
=
1
# show data in view
tableToPoints1Display
=
Show
(
tableToPoints1
,
renderView1
)
# trace defaults for the display properties.
tableToPoints1Display
.
ColorArrayName
=
[
None
,
''
]
# change representation type
tableToPoints1Display
.
SetRepresentationType
(
'
Points
'
)
# create a new 'CSV Reader'
vector_before_map1csv
=
CSVReader
(
FileName
=
[
'
Vector/vector_after_map1.csv
'
])
# set active view
SetActiveView
(
renderView1
)
# create a new 'Table To Points'
tableToPoints2
=
TableToPoints
(
Input
=
vector_before_map1csv
)
tableToPoints2
.
XColumn
=
'
x[0]
'
tableToPoints2
.
YColumn
=
'
x[1]
'
tableToPoints2
.
a2DPoints
=
1
# show data in view
tableToPoints2Display
=
Show
(
tableToPoints2
,
renderView1
)
# trace defaults for the display properties.
tableToPoints2Display
.
ColorArrayName
=
[
None
,
''
]
# change representation type
tableToPoints2Display
.
SetRepresentationType
(
'
Points
'
)
# change solid color
tableToPoints2Display
.
AmbientColor
=
[
0.0
,
1.0
,
0.0
]
# create a new 'CSV Reader'
vector_before_map2csv
=
CSVReader
(
FileName
=
[
'
Vector/vector_after_map2.csv
'
])
# set active view
SetActiveView
(
renderView1
)
# create a new 'Table To Points'
tableToPoints3
=
TableToPoints
(
Input
=
vector_before_map2csv
)
tableToPoints3
.
XColumn
=
'
x[0]
'
tableToPoints3
.
YColumn
=
'
x[1]
'
tableToPoints3
.
a2DPoints
=
1
# show data in view
tableToPoints3Display
=
Show
(
tableToPoints3
,
renderView1
)
# trace defaults for the display properties.
tableToPoints3Display
.
ColorArrayName
=
[
None
,
''
]
# change representation type
tableToPoints3Display
.
SetRepresentationType
(
'
Points
'
)
# change solid color
tableToPoints3Display
.
AmbientColor
=
[
1.0
,
0.35294117647058826
,
0.35294117647058826
]
#### saving camera placements for all active views
# current camera placement for renderView1
renderView1
.
InteractionMode
=
'
2D
'
renderView1
.
CameraPosition
=
[
0.50000391295
,
0.499549132735
,
10000.0
]
renderView1
.
CameraFocalPoint
=
[
0.50000391295
,
0.499549132735
,
0.0
]
renderView1
.
CameraParallelScale
=
0.7067808453124975
#### uncomment the following to render all views
# RenderAllViews()
# alternatively, if you want to write images, you can use SaveScreenshot(...).
WriteImage
(
"
generated/geometrical_decomposition.jpg
"
)
This diff is collapsed.
Click to expand it.
images/vector.cpp
+
4
−
0
View file @
d487aa0c
...
...
@@ -75,9 +75,13 @@ int main(int argc, char* argv[])
vd
.
template
getPos
<
0
>(
key
)[
0
]
+=
0.005
;
vd
.
template
getPos
<
0
>(
key
)[
1
]
+=
0.005
;
vd
.
template
getProp
<
1
>(
key
)[
0
]
=
0.005
;
vd
.
template
getProp
<
1
>(
key
)[
1
]
=
0.005
;
++
it
;
}
vd
.
write
(
"Vector/vector_move_before_map"
,
i
);
vd
.
map
();
vd
.
write
(
"Vector/vector_move"
,
i
);
}
...
...
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