Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
iRMB
VirtualFluids
Commits
89e3ade8
Commit
89e3ade8
authored
2 years ago
by
Hkorb
Browse files
Options
Downloads
Patches
Plain Diff
small updates to probe
parent
5a51b26b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!170
Kernel templetization and efficiency improvements
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/Probe.h
+8
-7
8 additions, 7 deletions
...u/VirtualFluids_GPU/PreCollisionInteractor/Probes/Probe.h
src/lbm/constants/NumericConstants.h
+1
-0
1 addition, 0 deletions
src/lbm/constants/NumericConstants.h
with
9 additions
and
7 deletions
src/gpu/VirtualFluids_GPU/PreCollisionInteractor/Probes/Probe.h
+
8
−
7
View file @
89e3ade8
...
...
@@ -5,8 +5,7 @@
#include
"PreCollisionInteractor/PreCollisionInteractor.h"
#include
"PointerDefinitions.h"
#include
"WbWriter.h"
#include
"WbWriterVtkXMLBinary.h"
#include
"WbWriterVtkXmlBinary.h"
enum
class
PostProcessingVariable
{
// HowTo add new PostProcessingVariable: Add enum here, LAST has to stay last
...
...
@@ -20,6 +19,9 @@ enum class PostProcessingVariable{
LAST
,
};
std
::
vector
<
std
::
string
>
getPostProcessingVariableNames
(
PostProcessingVariable
variable
);
struct
ProbeStruct
{
uint
nPoints
,
nArrays
,
vals
;
uint
*
pointIndicesH
,
*
pointIndicesD
;
...
...
@@ -68,8 +70,8 @@ public:
void
addPostProcessingVariable
(
PostProcessingVariable
_variable
);
pr
ivate
:
virtual
WbWriter
*
getWriter
(){
return
WbWriterVtkXmlBinary
::
getInstance
();
};
pr
otected
:
virtual
WbWriter
VtkXmlBinary
*
getWriter
(){
return
WbWriterVtkXmlBinary
::
getInstance
();
};
virtual
void
findPoints
(
Parameter
*
para
,
GridProvider
*
gridProvider
,
std
::
vector
<
int
>&
probeIndices_level
,
std
::
vector
<
real
>&
distX_level
,
std
::
vector
<
real
>&
distY_level
,
std
::
vector
<
real
>&
distZ_level
,
std
::
vector
<
real
>&
pointCoordsX_level
,
std
::
vector
<
real
>&
pointCoordsY_level
,
std
::
vector
<
real
>&
pointCoordsZ_level
,
...
...
@@ -87,8 +89,8 @@ private:
std
::
vector
<
std
::
string
>
getVarNames
();
std
::
string
makeGridFileName
(
int
level
,
int
id
,
int
t
,
uint
part
);
std
::
string
makeParallelFileName
(
int
id
,
int
t
);
pr
ivate
:
pr
otected
:
const
std
::
string
probeName
;
const
std
::
string
outputPath
;
...
...
@@ -100,7 +102,6 @@ private:
uint
tStartAvg
;
uint
tStartOut
;
uint
tOut
;
};
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/lbm/constants/NumericConstants.h
+
1
−
0
View file @
89e3ade8
...
...
@@ -228,6 +228,7 @@ static constexpr float c290o1 = 290.0f;
static
constexpr
float
c367o1
=
367.0
f
;
static
constexpr
float
Op0000002
=
0.0000002
f
;
static
constexpr
float
c4o10
=
0.4
f
;
static
constexpr
float
c10eM30
=
1e-30
f
;
static
constexpr
float
c10eM10
=
1e-10
f
;
static
constexpr
float
smallSingle
=
0.0000000002
f
;
...
...
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