Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
ce1151d8
Commit
ce1151d8
authored
Mar 14, 2017
by
COULAUD Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mv i Obsolete
parent
ee812495
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
Obsolete/paraviewscript.py
Obsolete/paraviewscript.py
+26
-0
No files found.
Obsolete/paraviewscript.py
0 → 100644
View file @
ce1151d8
from
paraview
import
*
reader
=
GetActiveSource
()
# SVReader(DetectNumericColumns = True, FieldDelimiterCharacters = ",", HaveHeaders = True, FileName = "/home/qkhan/work/scalfmm/Build/20k10z.4.csv")
#classRef = CSVReader()
#if not isinstance(reader, classRef.__class__):
# exit(-1)
filename
=
reader
.
FileName
[
0
]
print
filename
nbZones
=
int
(
filename
.
split
(
'.'
)[
0
].
split
(
'_'
)[
-
1
][
0
:
-
1
])
selection
=
SelectionQuerySource
(
FieldType
=
"ROW"
,
QueryString
=
"zone >= 0"
)
extractor
=
ExtractSelection
(
Input
=
reader
,
Selection
=
selection
)
points
=
TableToPoints
(
Input
=
extractor
,
XColumn
=
"x"
,
YColumn
=
"y"
,
ZColumn
=
"z"
)
repr
=
GetRepresentation
()
repr
.
ColorArrayName
=
'zone'
repr
.
LookupTable
=
AssignLookupTable
(
points
.
PointData
[
'zone'
],
"Cool to Warm"
)
Show
()
#for i in range(nbZones):
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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