Commit dba9da29 authored by Pietro Incardona's avatar Pietro Incardona

Adding images and videos

parent c430a22c
......@@ -43,5 +43,7 @@ images : cart_dec metis_dec dom_box
mkdir -p static
pvbatch Domain_decomposition.py
pvbatch Vector_dist.py
pvbatch mooving_particles.py
pvbatch mooving_particles_prc.py
dot -Tsvg openfpm.dot -o generated/openfpm.svg
......@@ -4,7 +4,7 @@ from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
# create a new 'CSV Reader'
vector_before_map0csv = CSVReader(FileName=['/home/i-bird/Desktop/MOSAIC/OpenFPM_project/openfpm_pdata/images/Vector/vector_before_map0.csv'])
vector_before_map0csv = CSVReader(FileName=['Vector/vector_before_map0.csv'])
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
......@@ -29,7 +29,7 @@ tableToPoints1Display.ColorArrayName = [None, '']
tableToPoints1Display.SetRepresentationType('Points')
# create a new 'CSV Reader'
vector_before_map1csv = CSVReader(FileName=['/home/i-bird/Desktop/MOSAIC/OpenFPM_project/openfpm_pdata/images/Vector/vector_before_map1.csv'])
vector_before_map1csv = CSVReader(FileName=['Vector/vector_before_map1.csv'])
# set active view
SetActiveView(renderView1)
......@@ -52,7 +52,7 @@ tableToPoints2Display.SetRepresentationType('Points')
tableToPoints2Display.AmbientColor = [0.0, 1.0, 0.0]
# create a new 'CSV Reader'
vector_before_map2csv = CSVReader(FileName=['/home/i-bird/Desktop/MOSAIC/OpenFPM_project/openfpm_pdata/images/Vector/vector_before_map2.csv'])
vector_before_map2csv = CSVReader(FileName=['Vector/vector_before_map2.csv'])
# set active view
SetActiveView(renderView1)
......@@ -105,7 +105,7 @@ Delete(vector_before_map2csv)
del vector_before_map2csv
# create a new 'CSV Reader'
vector_before_map0csv = CSVReader(FileName=['/home/i-bird/Desktop/MOSAIC/OpenFPM_project/openfpm_pdata/images/Vector/vector_after_map0.csv'])
vector_before_map0csv = CSVReader(FileName=['Vector/vector_after_map0.csv'])
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
......@@ -130,7 +130,7 @@ tableToPoints1Display.ColorArrayName = [None, '']
tableToPoints1Display.SetRepresentationType('Points')
# create a new 'CSV Reader'
vector_before_map1csv = CSVReader(FileName=['/home/i-bird/Desktop/MOSAIC/OpenFPM_project/openfpm_pdata/images/Vector/vector_after_map1.csv'])
vector_before_map1csv = CSVReader(FileName=['Vector/vector_after_map1.csv'])
# set active view
SetActiveView(renderView1)
......@@ -153,7 +153,7 @@ tableToPoints2Display.SetRepresentationType('Points')
tableToPoints2Display.AmbientColor = [0.0, 1.0, 0.0]
# create a new 'CSV Reader'
vector_before_map2csv = CSVReader(FileName=['/home/i-bird/Desktop/MOSAIC/OpenFPM_project/openfpm_pdata/images/Vector/vector_after_map2.csv'])
vector_before_map2csv = CSVReader(FileName=['Vector/vector_after_map2.csv'])
# set active view
SetActiveView(renderView1)
......
This diff is collapsed.
This diff is collapsed.
......@@ -58,7 +58,26 @@ int main(int argc, char* argv[])
vd.write("Vector/vector_after_map");
vd.ghost_get<0,1,2>();
vd.getDecomposition().write("Vector/vect_decomposition");
// move the particles
for (size_t i = 0 ; i < 100 ; i++)
{
auto it = vd.getDomainIterator();
while (it.isNext())
{
auto key = it.get();
vd.template getPos<0>(key)[0] += 0.005;
vd.template getPos<0>(key)[1] += 0.005;
++it;
}
vd.map();
vd.write("Vector/vector_move",i);
}
delete_global_v_cluster();
}
......@@ -1328,6 +1328,8 @@ public:
{
}*/
return false;
}
/*! \brief Delete the particles on the ghost
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment