Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Development
OpenFOAM-plus
Commits
f3e10059
Commit
f3e10059
authored
Apr 08, 2019
by
sergio
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of develop.openfoam.com:Development/OpenFOAM-plus
parents
16fb52d4
a18d7b94
Changes
164
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
186 additions
and
50865 deletions
+186
-50865
.gitlab/issue_templates/bug.md
.gitlab/issue_templates/bug.md
+71
-0
.gitlab/issue_templates/feature-request.md
.gitlab/issue_templates/feature-request.md
+31
-0
.gitlab/merge_request_templates/new-features.md
.gitlab/merge_request_templates/new-features.md
+20
-0
META-INFO/api-info
META-INFO/api-info
+1
-1
applications/solvers/combustion/XiFoam/XiEngineFoam/logSummary.H
...tions/solvers/combustion/XiFoam/XiEngineFoam/logSummary.H
+21
-14
applications/test/dictionary/testDictAPI
applications/test/dictionary/testDictAPI
+19
-0
applications/test/ensightFoamReader/Make/files
applications/test/ensightFoamReader/Make/files
+0
-3
applications/test/ensightFoamReader/Make/options
applications/test/ensightFoamReader/Make/options
+0
-5
applications/test/ensightFoamReader/README
applications/test/ensightFoamReader/README
+0
-116
applications/test/ensightFoamReader/ensightFoamReaderTest
applications/test/ensightFoamReader/ensightFoamReaderTest
+0
-91
applications/test/ensightFoamReader/global_extern.h
applications/test/ensightFoamReader/global_extern.h
+0
-1
applications/test/ensightFoamReader/global_extern_proto.h
applications/test/ensightFoamReader/global_extern_proto.h
+0
-1
applications/test/ensightFoamReader/udr_checker-80.c
applications/test/ensightFoamReader/udr_checker-80.c
+0
-5396
applications/test/ensightFoamReader/udr_checker-90.c
applications/test/ensightFoamReader/udr_checker-90.c
+0
-5884
applications/test/ensightFoamReader/udr_checker.c
applications/test/ensightFoamReader/udr_checker.c
+0
-1
applications/utilities/postProcessing/dataConversion/foamToEnsightParts/getTimeIndex.H
...ocessing/dataConversion/foamToEnsightParts/getTimeIndex.H
+3
-6
applications/utilities/postProcessing/dataConversion/foamToVTK/convertLagrangian.H
...stProcessing/dataConversion/foamToVTK/convertLagrangian.H
+1
-1
applications/utilities/postProcessing/dataConversion/foamToVTK/convertSurfaceFields.H
...rocessing/dataConversion/foamToVTK/convertSurfaceFields.H
+2
-2
applications/utilities/postProcessing/dataConversion/foamToVTK/convertTopoSet.H
.../postProcessing/dataConversion/foamToVTK/convertTopoSet.H
+2
-2
applications/utilities/postProcessing/dataConversion/foamToVTK/convertVolumeFields.H
...Processing/dataConversion/foamToVTK/convertVolumeFields.H
+3
-3
applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
...ities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
+3
-3
applications/utilities/postProcessing/graphics/PVReaders/vtkPVFoam/vtkPVFoam.C
...s/postProcessing/graphics/PVReaders/vtkPVFoam/vtkPVFoam.C
+4
-0
applications/utilities/postProcessing/graphics/PVReaders/vtkPVblockMesh/vtkPVblockMesh.C
...essing/graphics/PVReaders/vtkPVblockMesh/vtkPVblockMesh.C
+5
-1
applications/utilities/postProcessing/graphics/ensightFoamReader/Allwmake
...lities/postProcessing/graphics/ensightFoamReader/Allwmake
+0
-9
applications/utilities/postProcessing/graphics/ensightFoamReader/Make/files
...ties/postProcessing/graphics/ensightFoamReader/Make/files
+0
-3
applications/utilities/postProcessing/graphics/ensightFoamReader/Make/options
...es/postProcessing/graphics/ensightFoamReader/Make/options
+0
-14
applications/utilities/postProcessing/graphics/ensightFoamReader/README
...tilities/postProcessing/graphics/ensightFoamReader/README
+0
-1847
applications/utilities/postProcessing/graphics/ensightFoamReader/README7
...ilities/postProcessing/graphics/ensightFoamReader/README7
+0
-1847
applications/utilities/postProcessing/graphics/ensightFoamReader/README_1.0_to_2.0
...stProcessing/graphics/ensightFoamReader/README_1.0_to_2.0
+0
-361
applications/utilities/postProcessing/graphics/ensightFoamReader/README_2.01_to_2.03
...Processing/graphics/ensightFoamReader/README_2.01_to_2.03
+0
-1374
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_1.0
...ostProcessing/graphics/ensightFoamReader/README_USERD_1.0
+0
-2013
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_2.0
...ostProcessing/graphics/ensightFoamReader/README_USERD_2.0
+0
-2537
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_2.01
...stProcessing/graphics/ensightFoamReader/README_USERD_2.01
+0
-2787
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_2.03
...stProcessing/graphics/ensightFoamReader/README_USERD_2.03
+0
-3838
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_2.03_CHANGES
...sing/graphics/ensightFoamReader/README_USERD_2.03_CHANGES
+0
-1374
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_2.05
...stProcessing/graphics/ensightFoamReader/README_USERD_2.05
+0
-4543
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_2.06
...stProcessing/graphics/ensightFoamReader/README_USERD_2.06
+0
-4603
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_2.07
...stProcessing/graphics/ensightFoamReader/README_USERD_2.07
+0
-4617
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_2.08
...stProcessing/graphics/ensightFoamReader/README_USERD_2.08
+0
-4653
applications/utilities/postProcessing/graphics/ensightFoamReader/README_USERD_IN_BUFFERS
...essing/graphics/ensightFoamReader/README_USERD_IN_BUFFERS
+0
-1447
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_API.H
...ies/postProcessing/graphics/ensightFoamReader/USERD_API.H
+0
-2
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_bkup.H
...es/postProcessing/graphics/ensightFoamReader/USERD_bkup.H
+0
-14
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_exit_routine.H
...rocessing/graphics/ensightFoamReader/USERD_exit_routine.H
+0
-11
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_border_availability.H
...raphics/ensightFoamReader/USERD_get_border_availability.H
+0
-17
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_border_elements_by_type.H
...ics/ensightFoamReader/USERD_get_border_elements_by_type.H
+0
-19
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_changing_geometry_status.H
...cs/ensightFoamReader/USERD_get_changing_geometry_status.H
+0
-10
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_constant_val.H
...ssing/graphics/ensightFoamReader/USERD_get_constant_val.H
+0
-15
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_dataset_query_file_info.H
...ics/ensightFoamReader/USERD_get_dataset_query_file_info.H
+0
-8
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_descrip_lines.H
...sing/graphics/ensightFoamReader/USERD_get_descrip_lines.H
+0
-31
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_element_label_status.H
...aphics/ensightFoamReader/USERD_get_element_label_status.H
+0
-10
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_geom_timeset_number.H
...raphics/ensightFoamReader/USERD_get_geom_timeset_number.H
+0
-14
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_gold_part_build_info.H
...aphics/ensightFoamReader/USERD_get_gold_part_build_info.H
+0
-153
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_gold_variable_info.H
...graphics/ensightFoamReader/USERD_get_gold_variable_info.H
+0
-120
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_matf_set_info.H
...sing/graphics/ensightFoamReader/USERD_get_matf_set_info.H
+0
-14
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_matf_var_info.H
...sing/graphics/ensightFoamReader/USERD_get_matf_var_info.H
+0
-15
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_maxsize_info.H
...ssing/graphics/ensightFoamReader/USERD_get_maxsize_info.H
+0
-102
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_model_extents.H
...sing/graphics/ensightFoamReader/USERD_get_model_extents.H
+0
-15
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_name_of_reader.H
...ing/graphics/ensightFoamReader/USERD_get_name_of_reader.H
+0
-18
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_nfaced_conn.H
...essing/graphics/ensightFoamReader/USERD_get_nfaced_conn.H
+0
-79
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_nfaced_nodes_per_face.H
...phics/ensightFoamReader/USERD_get_nfaced_nodes_per_face.H
+0
-74
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_node_label_status.H
.../graphics/ensightFoamReader/USERD_get_node_label_status.H
+0
-11
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_nsided_conn.H
...essing/graphics/ensightFoamReader/USERD_get_nsided_conn.H
+0
-49
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_num_of_time_steps.H
.../graphics/ensightFoamReader/USERD_get_num_of_time_steps.H
+0
-15
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_number_of_files_in_dataset.H
.../ensightFoamReader/USERD_get_number_of_files_in_dataset.H
+0
-13
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_number_of_material_sets.H
...ics/ensightFoamReader/USERD_get_number_of_material_sets.H
+0
-14
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_number_of_materials.H
...raphics/ensightFoamReader/USERD_get_number_of_materials.H
+0
-14
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_number_of_model_parts.H
...phics/ensightFoamReader/USERD_get_number_of_model_parts.H
+0
-9
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_number_of_variables.H
...raphics/ensightFoamReader/USERD_get_number_of_variables.H
+0
-9
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_number_timesets.H
...ng/graphics/ensightFoamReader/USERD_get_number_timesets.H
+0
-13
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_part_coords.H
...essing/graphics/ensightFoamReader/USERD_get_part_coords.H
+0
-64
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_part_element_ids_by_type.H
...cs/ensightFoamReader/USERD_get_part_element_ids_by_type.H
+0
-162
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_part_elements_by_type.H
...phics/ensightFoamReader/USERD_get_part_elements_by_type.H
+0
-252
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_part_node_ids.H
...sing/graphics/ensightFoamReader/USERD_get_part_node_ids.H
+0
-56
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_reader_release.H
...ing/graphics/ensightFoamReader/USERD_get_reader_release.H
+0
-27
applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_reader_version.H
...ing/graphics/ensightFoamReader/USERD_get_reader_version.H
+0
-18
No files found.
.gitlab/issue_templates/bug.md
0 → 100644
View file @
f3e10059
<!--
*** Please read this first! **
*
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "bug" label and check to see if it has already been reported
-->
<!--
All text between these markers are comments and will not be present in the
report
-->
### Summary
<!-- Summarize the bug encountered concisely -->
### Steps to reproduce
<!-- How one can reproduce the issue - this is very important -->
### Example case
<!--
If possible, please create a SMALL example and attach it to your report
If you are using an older version of OpenFOAM this will also determine
whether the bug has been fixed in a more recent version
-->
### What is the current *bug* behaviour?
<!-- What actually happens -->
### What is the expected *correct* behavior?
<!-- What you should see instead -->
### Relevant logs and/or images
<!--
Paste any relevant logs - please use code blocks (
```
) to format console
output, logs, and code as it's very hard to read otherwise.
-->
### Environment information
<!--
Providing details of your set-up can help us identify any issues, e.g.
OpenFOAM version : v1806|v1812|v1906 etc
Operating system : ubuntu|openSUSE|centos etc
Hardware info : any info that may help?
Compiler : gcc|intel|clang etc
-->
OpenFOAM version :
Operating system :
Compiler :
### Possible fixes
<!--
If you can, link to the line of code that might be responsible for the
problem
-->
/label ~bug
.gitlab/issue_templates/feature-request.md
0 → 100644
View file @
f3e10059
### Functionality to add/problem to solve
(Brief scope)
### Target audience
(Who will benefit from the changes?)
(What type of cases?)
### Proposal
(How are we going to solve the problem?)
### What does success look like, and how can we measure that?
(What are the success factors and acceptance criteria? e.g. test cases, error margins)
### Links / references
(Links to literature, supporting information)
### Funding
(Does the functionality already exist/is sponsorship available?)
/label ~feature
.gitlab/merge_request_templates/new-features.md
0 → 100644
View file @
f3e10059
### Summary
(Summarize the changes concisely)
### Resolved bugs (If applicable)
(Links to issues)
### Details of new models (If applicable)
(New options, user inputs etc)
(Images are nice :))
### Risks
(Possible regressions?)
(Changes to user inputs?)
META-INFO/api-info
View file @
f3e10059
api=1812
patch=
0
patch=
190403
applications/solvers/combustion/XiFoam/XiEngineFoam/logSummary.H
View file @
f3e10059
Info
<<
"Mean pressure:"
<<
p
.
weightedAverage
(
mesh
.
V
()).
value
()
<<
endl
;
Info
<<
"Mean temperature:"
<<
thermo
.
T
()
.
weightedAverage
(
mesh
.
V
()).
value
()
<<
endl
;
Info
<<
"Mean u':"
<<
(
sqrt
((
2
.
0
/
3
.
0
)
*
turbulence
->
k
()))().
weightedAverage
(
mesh
.
V
()).
value
()
<<
endl
;
{
const
scalar
meanP
=
p
.
weightedAverage
(
mesh
.
V
()).
value
()
;
const
scalar
meanT
=
thermo
.
T
().
weightedAverage
(
mesh
.
V
()).
value
()
;
const
scalar
meanUp
=
(
sqrt
((
2
.
0
/
3
.
0
)
*
turbulence
->
k
()))().
weightedAverage
(
mesh
.
V
()).
value
()
;
const
scalar
meanB
=
b
.
weightedAverage
(
mesh
.
V
()).
value
()
;
logSummaryFile
()
<<
runTime
.
theta
()
<<
tab
<<
p
.
weightedAverage
(
mesh
.
V
()).
value
()
<<
tab
<<
thermo
.
T
().
weightedAverage
(
mesh
.
V
()).
value
()
<<
tab
<<
(
sqrt
((
2
.
0
/
3
.
0
)
*
turbulence
->
k
()))().
weightedAverage
(
mesh
.
V
()).
value
()
<<
tab
<<
1
-
b
.
weightedAverage
(
mesh
.
V
()).
value
()
<<
endl
;
Info
<<
"Mean pressure:"
<<
meanP
<<
nl
<<
"Mean temperature:"
<<
meanT
<<
nl
<<
"Mean u':"
<<
meanUp
<<
endl
;
if
(
Pstream
::
master
())
{
logSummaryFile
()
<<
runTime
.
theta
()
<<
tab
<<
meanP
<<
tab
<<
meanT
<<
tab
<<
meanUp
<<
tab
<<
1
-
meanB
<<
endl
;
}
}
applications/test/dictionary/testDictAPI
0 → 100644
View file @
f3e10059
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1812 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object testDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
_FOAM_API $FOAM_API;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
applications/test/ensightFoamReader/Make/files
deleted
100644 → 0
View file @
16fb52d4
udr_checker.c
EXE = $(FOAM_USER_APPBIN)/ensightFoamReader-udr_checker
applications/test/ensightFoamReader/Make/options
deleted
100644 → 0
View file @
16fb52d4
EXE_INC = \
-DUSERD_API_203
EXE_LIBS = \
-luserd-foam
applications/test/ensightFoamReader/README
deleted
100644 → 0
View file @
16fb52d4
udr_checker
-----------
udr_checker.c is a routine that can be used to debug EnSight User-defined
readers. It exists because of the difficulty of debugging dynamic shared
libraries when you don't have the source for the calling program (EnSight).
If udr_checker.c is compiled and linked with your reader source code (including
access to any libraries needed, and the global_extern.h file), it will exercise
most options of you reader, giving feedback as it goes. The resulting
executable can be debugged using your favorite debugger. And if you have
memory/bounds checking software (such as purify), you can (and should) run it
with this executable to make sure that you are not overwriting things. Readers
that bash memory will cause problems when run with EnSight!
You will note that the Makefile provided with the readers in the EnSight
distribution have a "checker" object. If you do a "make checker" instead of
just a "make", the "checker"executable will be produced. You may need to
modify these makefiles slightly if the locations of your reader files are
different than the normal.
--------------------------------------
Once the "checker" executable exists, you can run the checker program by simply
invoking it:
> checker
And you will be prompted for the type of information that you provide in the
EnSight Data Reader dialog, namely:
The path
filename_1
[filename_2] Only if your reader uses two fields
swapbytes flag
<toggle flags> Only if your reader implements extra GUI
<pulldown flags> one flag value per line
<field contents> one field string per line
There are certain command line options that you can use to control some aspects
of the checker program. One of the more useful is the ability to provide the
input just described in a file. This is done in this fashion:
> checker -p <playfile>
And <playfile> would be a simple ascii file with 3 [0r 4] lines:
line 1: the path
line 2: filename_1
line 3: [filename_2] (if two_fields is TRUE)
line 3 or 4: 0 or 1, for swapbytes (0 is FALSE, 1 is TRUE)
remaining lines 0 or 1 for toggle disable enabled
one line for each toggle
0 - num_pulldown_values for pulldown choice
one line for each pulldown
strings
one line for each field
example playfile for an EnSight Gold reader casefile (entitled cube.play)
could look something like the following: (Note: two_fields is FALSE)
-------------------
/usr/local/bin/data/ens
cube.case
0
And you would invoke checker as:
> checker -p check.play
Another example playfile
with swapbytes 0,
two enabled toggles,
three pulldowns with the value 0 chosen
and a single field "sample field value"
could look something like the following::
----------------------
/mydirectory/subdir/
myfile
0
1
1
0
0
0
sample field value
Other command line arguments are:
---------------------------------
-server_number For checking server number routines. If you use this
option, you will be prompted for the total number of
servers and the current server number. These will then be
used in the calls to the server number routines.
-gts # For specifying the geometry timestep to test. The default
is step 0.
The # is the (zero based) time step to read for geometry.
-vts # For specifying the variable timestep to test. The default
is step 0.
The # is the (zero based) time step to read for variables.
Testing optional routines using #defines
-----------------------------------------
For optional routines, such as the extra_gui, or var_extract_gui routines, you
must uncomment the proper #define in udr_checker.c
Currently the ones available are:
#define _EGS for extra gui routines
#define _VES for var extract gui routines
applications/test/ensightFoamReader/ensightFoamReaderTest
deleted
100755 → 0
View file @
16fb52d4
#!/bin/sh
#------------------------------------------------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
# \\/ M anipulation |
#-------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
#
# Script
# ensightFoamReaderTest
#
# Description
# start ensightFoamReader-udr_checker
#
#------------------------------------------------------------------------------
usage
()
{
while
[
"$#"
-ge
1
]
;
do
echo
"
$1
"
;
shift
;
done
cat
<<
USAGE
usage:
${
0
##*/
}
[OPTION]
options:
-case dir specify alternative case directory
* start ensightFoamReader-udr_checker
USAGE
exit
1
}
# parse options
while
[
"$#"
-gt
0
]
do
case
"
$1
"
in
-h
|
-help
)
usage
;;
-case
)
[
"$#"
-ge
2
]
||
usage
"'
$1
' option requires an argument"
cd
"
$2
"
2>/dev/null
||
usage
"directory does not exist: '
$2
'"
shift
2
;;
*
)
usage
"unknown option/argument: '
$*
'"
;;
esac
done
# check existence of essential files
for
check
in
system/controlDict system/fvSchemes system/fvSolution
do
[
-s
"
$check
"
]
||
usage
"file does not exist: '
$check
'"
done
# export values that might be needed
export
FOAM_CASE
=
$PWD
export
FOAM_CASENAME
=
${
PWD
##*/
}
pathName
=
${
PWD
%/*
}
playFile
=
/tmp/ensightFoamReader.
$$
trap
"rm -f
$playFile
2>/dev/null; exit 0"
EXIT TERM INT
cat
<<
PLAY_FILE
>
$playFile
$pathName
$FOAM_CASENAME
0
PLAY_FILE
echo
"ensightFoamReader-udr_checker -p
$playFile
"
ensightFoamReader-udr_checker
-p
$playFile
#------------------------------------------------------------------------------
applications/test/ensightFoamReader/global_extern.h
deleted
120000 → 0
View file @
16fb52d4
..
/
..
/
utilities
/
postProcessing
/
graphics
/
ensightFoamReader
/
global_extern
.
h
\ No newline at end of file
applications/test/ensightFoamReader/global_extern_proto.h
deleted
120000 → 0
View file @
16fb52d4
..
/
..
/
utilities
/
postProcessing
/
graphics
/
ensightFoamReader
/
global_extern_proto
.
h
\ No newline at end of file
applications/test/ensightFoamReader/udr_checker-80.c
deleted
100644 → 0
View file @
16fb52d4
This diff is collapsed.
Click to expand it.
applications/test/ensightFoamReader/udr_checker-90.c
deleted
100644 → 0
View file @
16fb52d4
This diff is collapsed.
Click to expand it.
applications/test/ensightFoamReader/udr_checker.c
deleted
120000 → 0
View file @
16fb52d4
udr_checker
-
80
.
c
\ No newline at end of file
applications/utilities/postProcessing/dataConversion/foamToEnsightParts/getTimeIndex.H
View file @
f3e10059
// Read time index from */uniform/time, but treat 0 and constant specially
// or simply increment from the '-index' option if it was supplied
label
timeIndex
=
0
;
label
timeIndex
=
0
;
{
if
(
optIndex
)
{
timeIndex
=
indexingNumber
++
;
...
...
@@ -37,7 +37,4 @@
continue
;
}
}
Info
<<
nl
<<
"Time ["
<<
timeIndex
<<
"] = "
<<
runTime
.
timeName
()
<<
nl
;
// end-of-file
}
applications/utilities/postProcessing/dataConversion/foamToVTK/convertLagrangian.H
View file @
f3e10059
...
...
@@ -94,7 +94,7 @@ if (doLagrangian)
);
Info
<<
" Lagrangian: "
<<
runTime
.
relativePath
(
writer
.
output
())
<<
nl
;
<<
args
.
relativePath
(
writer
.
output
())
<<
nl
;
writer
.
writeTimeValue
(
mesh
.
time
().
value
());
writer
.
writeGeometry
();
...
...
applications/utilities/postProcessing/dataConversion/foamToVTK/convertSurfaceFields.H
View file @
f3e10059
...
...
@@ -107,7 +107,7 @@ Description
);
Info
<<
" Surface : "
<<
runTime
.
relativePath
(
writer
.
output
())
<<
nl
;
<<
args
.
relativePath
(
writer
.
output
())
<<
nl
;
writer
.
writeTimeValue
(
timeValue
);
...
...
@@ -211,7 +211,7 @@ Description
);
Info
<<
" FaceZone : "
<<
runTime
.
relativePath
(
writer
.
output
())
<<
nl
;
<<
args
.
relativePath
(
writer
.
output
())
<<
nl
;
writer
.
beginFile
(
fz
.
name
());
...
...
applications/utilities/postProcessing/dataConversion/foamToVTK/convertTopoSet.H
View file @
f3e10059
...
...
@@ -42,7 +42,7 @@ if (faceSetName.size())
);
Info
<<
" faceSet : "
<<
runTime
.
relativePath
(
outputName
)
<<
nl
;
<<
args
.
relativePath
(
outputName
)
<<
nl
;
vtk
::
writeFaceSet
(
...
...
@@ -70,7 +70,7 @@ if (pointSetName.size())
);
Info
<<
" pointSet : "
<<
runTime
.
relativePath
(
outputName
)
<<
nl
;
<<
args
.
relativePath
(
outputName
)
<<
nl
;
vtk
::
writePointSet
(
...
...
applications/utilities/postProcessing/dataConversion/foamToVTK/convertVolumeFields.H
View file @
f3e10059
...
...
@@ -113,7 +113,7 @@ Description
);
Info
<<
" Internal : "
<<
runTime
.
relativePath
(
internalWriter
->
output
())
<<
nl
;
<<
args
.
relativePath
(
internalWriter
->
output
())
<<
nl
;
internalWriter
->
writeTimeValue
(
mesh
.
time
().
value
());
internalWriter
->
writeGeometry
();
...
...
@@ -163,7 +163,7 @@ Description
);
Info
<<
" Boundaries: "
<<
runTime
.
relativePath
(
writer
->
output
())
<<
nl
;
<<
args
.
relativePath
(
writer
->
output
())
<<
nl
;
writer
->
writeTimeValue
(
timeValue
);
writer
->
writeGeometry
();
...
...
@@ -229,7 +229,7 @@ Description
);
Info
<<
" Boundary : "
<<
runTime
.
relativePath
(
writer
->
output
())
<<
nl
;
<<
args
.
relativePath
(
writer
->
output
())
<<
nl
;
writer
->
writeTimeValue
(
timeValue
);
writer
->
writeGeometry
();
...
...
applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
View file @
f3e10059
...
...
@@ -575,7 +575,7 @@ int main(int argc, char *argv[])
fvMeshSubsetProxy
::
subsetType
cellSubsetType
=
fvMeshSubsetProxy
::
NONE
;
string
vtkName
=
runTime
.
globalCaseName
();
string
vtkName
=
args
.
globalCaseName
();
if
(
regionNames
.
size
()
==
1
)
{
...
...
@@ -628,7 +628,7 @@ int main(int argc, char *argv[])
// Sub-directory for output
const
word
vtkDirName
=
args
.
opt
<
word
>
(
"name"
,
"VTK"
);
const
fileName
outputDir
(
runTime
.
globalPath
()
/
vtkDirName
);
const
fileName
outputDir
(
args
.
globalPath
()
/
vtkDirName
);
if
(
Pstream
::
master
())
{
...
...
@@ -650,7 +650,7 @@ int main(int argc, char *argv[])
if
(
args
.
found
(
"overwrite"
)
&&
isDir
(
regionDir
))
{
Info
<<
"Removing old directory "
<<
runTime
.
relativePath
(
regionDir
)
<<
args
.
relativePath
(
regionDir
)
<<
nl
<<
endl
;
rmDir
(
regionDir
);
}
...
...
applications/utilities/postProcessing/graphics/PVReaders/vtkPVFoam/vtkPVFoam.C
View file @
f3e10059
...
...
@@ -30,6 +30,7 @@ License
#include "areaFaMesh.H"
#include "faMesh.H"
#include "fvMesh.H"
#include "foamVersion.H"
#include "Time.H"
#include "patchZones.H"
#include "IOobjectList.H"
...
...
@@ -314,6 +315,9 @@ Foam::vtkPVFoam::vtkPVFoam
fullCasePath
=
cwd
();
}
// OPENFOAM API
setEnv
(
"FOAM_API"
,
std
::
to_string
(
foamVersion
::
api
),
true
);
// The name of the executable, unless already present in the environment
setEnv
(
"FOAM_EXECUTABLE"
,
"paraview"
,
false
);
...
...
applications/utilities/postProcessing/graphics/PVReaders/vtkPVblockMesh/vtkPVblockMesh.C
View file @
f3e10059
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2017
-2019
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -29,6 +29,7 @@ License
// OpenFOAM includes
#include "blockMesh.H"
#include "blockMeshTools.H"
#include "foamVersion.H"
#include "Time.H"
#include "patchZones.H"
#include "StringStream.H"
...
...
@@ -206,6 +207,9 @@ Foam::vtkPVblockMesh::vtkPVblockMesh
fullCasePath
=
cwd
();
}