Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
dumux-repositories
dumux
Commits
0386c4f2
Commit
0386c4f2
authored
8 years ago
by
Thomas Fetzer
Browse files
Options
Downloads
Patches
Plain Diff
[postprocessing] Add possibility to name the outputfiles differently
parent
9da2d1a3
No related branches found
No related tags found
1 merge request
!236
[postprocessing] Add possibility to name the outputfiles differently
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/postprocessing/extractlinedata.py
+3
-0
3 additions, 0 deletions
bin/postprocessing/extractlinedata.py
bin/postprocessing/extractpointdataovertime.py
+3
-0
3 additions, 0 deletions
bin/postprocessing/extractpointdataovertime.py
with
6 additions
and
0 deletions
bin/postprocessing/extractlinedata.py
+
3
−
0
View file @
0386c4f2
...
...
@@ -11,6 +11,7 @@ parser = argparse.ArgumentParser(
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'
-f
'
,
'
--files
'
,
nargs
=
'
+
'
,
required
=
True
,
help
=
"
vtu files to be processed
"
)
parser
.
add_argument
(
'
-o
'
,
'
--outputDirectory
'
,
default
=
''
,
help
=
"
Directory to which the data files are written
"
)
parser
.
add_argument
(
'
-of
'
,
'
--outFile
'
,
default
=
''
,
help
=
"
Basename of the written csv file
"
)
parser
.
add_argument
(
'
-p1
'
,
'
--point1
'
,
type
=
float
,
nargs
=
3
,
required
=
True
,
help
=
'
Coordinates of the first point (in 3D)
'
)
parser
.
add_argument
(
'
-p2
'
,
'
--point2
'
,
type
=
float
,
nargs
=
3
,
required
=
True
,
help
=
'
Coordinates of the second point (in 3D)
'
)
parser
.
add_argument
(
'
-r
'
,
'
--resolution
'
,
type
=
int
,
default
=
1000
,
help
=
'
Resolution of the line (number of data points written to data file)
'
)
...
...
@@ -52,6 +53,8 @@ for curFile in args['files']:
plotOverLine
.
Source
.
Point2
=
args
[
'
point2
'
]
# write output to csv writer
if
not
args
[
'
outFile
'
]
==
''
:
basename
=
args
[
'
outFile
'
]
csvFile
=
outDirectory
+
basename
+
'
.csv
'
writer
=
CreateWriter
(
csvFile
,
plotOverLine
)
writer
.
UpdatePipeline
()
...
...
This diff is collapsed.
Click to expand it.
bin/postprocessing/extractpointdataovertime.py
+
3
−
0
View file @
0386c4f2
...
...
@@ -11,6 +11,7 @@ parser = argparse.ArgumentParser(
)
parser
.
add_argument
(
'
-f
'
,
'
--files
'
,
nargs
=
'
+
'
,
required
=
True
,
help
=
"
pvd files to be processed
"
)
parser
.
add_argument
(
'
-o
'
,
'
--outputDirectory
'
,
default
=
''
,
help
=
"
Directory to which the .csv files are written
"
)
parser
.
add_argument
(
'
-of
'
,
'
--outFile
'
,
default
=
''
,
help
=
"
Basename of the written csv file
"
)
parser
.
add_argument
(
'
-p
'
,
'
--point
'
,
type
=
float
,
nargs
=
3
,
required
=
True
,
help
=
'
Coordinates of the probed point (in 3D)
'
)
parser
.
add_argument
(
'
-v
'
,
'
--verbosity
'
,
type
=
int
,
default
=
2
,
help
=
'
Verbosity of the output. 1 = print progress. 2 = print data columns
'
)
args
=
vars
(
parser
.
parse_args
())
...
...
@@ -61,6 +62,8 @@ for curFile in args['files']:
plotSelectionOverTime
.
Input
=
probeLocation
# write output to csv writer
if
not
args
[
'
outFile
'
]
==
''
:
basename
=
args
[
'
outFile
'
]
csvFile
=
outDirectory
+
basename
+
'
.csv
'
writer
=
CreateWriter
(
csvFile
,
plotSelectionOverTime
)
writer
.
UpdatePipeline
()
...
...
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