Introduction
Introduction Statistics Contact Development Disclaimer Help
tadd units to VTK array names - sphere - GPU-based 3D discrete element method a…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit bbc594bbe6b8c9dcbfa4e229fa28a6a1f6248959
parent d9c105e6573b3b57207bcc8fb86b5857607575e9
Author: Anders Damsgaard <[email protected]>
Date: Tue, 21 Oct 2014 15:46:50 +0200
add units to VTK array names
Diffstat:
M python/sphere.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/python/sphere.py b/python/sphere.py
t@@ -1650,7 +1650,7 @@ class sim:
# array of scalars: hydraulic pressures
pres = vtk.vtkDoubleArray()
- pres.SetName("Pressure")
+ pres.SetName("Pressure [Pa]")
pres.SetNumberOfComponents(1)
if cell_centered:
pres.SetNumberOfTuples(grid.GetNumberOfCells())
t@@ -1659,7 +1659,7 @@ class sim:
# array of vectors: hydraulic velocities
vel = vtk.vtkDoubleArray()
- vel.SetName("Velocity")
+ vel.SetName("Velocity [m/s]")
vel.SetNumberOfComponents(3)
if cell_centered:
vel.SetNumberOfTuples(grid.GetNumberOfCells())
t@@ -1668,7 +1668,7 @@ class sim:
# array of scalars: porosities
poros = vtk.vtkDoubleArray()
- poros.SetName("Porosity")
+ poros.SetName("Porosity [-]")
poros.SetNumberOfComponents(1)
if cell_centered:
poros.SetNumberOfTuples(grid.GetNumberOfCells())
t@@ -1677,7 +1677,7 @@ class sim:
# array of scalars: porosity change
dporos = vtk.vtkDoubleArray()
- dporos.SetName("Porosity change")
+ dporos.SetName("Porosity change [1/s]")
dporos.SetNumberOfComponents(1)
if cell_centered:
dporos.SetNumberOfTuples(grid.GetNumberOfCells())
t@@ -1687,7 +1687,7 @@ class sim:
# array of scalars: Reynold's number
self.ReynoldsNumber()
Re = vtk.vtkDoubleArray()
- Re.SetName("Reynolds number")
+ Re.SetName("Reynolds number [-]")
Re.SetNumberOfComponents(1)
if cell_centered:
Re.SetNumberOfTuples(grid.GetNumberOfCells())
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.