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
1597a488
Commit
1597a488
authored
1 year ago
by
Anna Wellmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'regressionTests' into testNodeNumberInBCs
parents
ef983743
608a771b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!223
Use the correct number of nodes for boundary conditions in GridGenerator
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/gpu/LBM/SphereGPU/Sphere.cpp
+5
-5
5 additions, 5 deletions
apps/gpu/LBM/SphereGPU/Sphere.cpp
regression-tests/sphere_in_channel_test.sh
+16
-0
16 additions, 0 deletions
regression-tests/sphere_in_channel_test.sh
with
21 additions
and
5 deletions
apps/gpu/LBM/SphereGPU/Sphere.cpp
+
5
−
5
View file @
1597a488
...
...
@@ -84,17 +84,17 @@ int main(int argc, char *argv[])
const
real
L
=
1.0
;
const
real
dSphere
=
0.2
;
const
real
Re
=
10
00.0
;
// related to the sphere's diameter
const
real
Re
=
3
00.0
;
// related to the sphere's diameter
const
real
velocity
=
1.0
;
const
real
dt
=
(
real
)
0.5e-3
;
const
uint
nx
=
64
;
const
uint
nx
=
50
;
const
uint
timeStepOut
=
1000
;
const
uint
timeStepOut
=
1000
0
;
const
uint
timeStepEnd
=
10000
;
//////////////////////////////////////////////////////////////////////////
// setup simulation parameters (with or without config file)
//////////////////////////
////////////////////////////////////////////////
//////////////////////////
vf
::
gpu
::
Communicator
&
communicator
=
vf
::
gpu
::
Communicator
::
getInstance
();;
SPtr
<
Parameter
>
para
;
...
...
@@ -123,7 +123,7 @@ int main(int argc, char *argv[])
real
dx
=
L
/
real
(
nx
);
gridBuilder
->
addCoarseGrid
(
-
1.0
*
L
,
-
0.6
*
L
,
-
0.6
*
L
,
8
.0
*
L
,
0.6
*
L
,
0.6
*
L
,
dx
);
3
.0
*
L
,
0.6
*
L
,
0.6
*
L
,
dx
);
// use primitive
// auto sphere = std::make_shared<Sphere>(0.0, 0.0, 0.0, dSphere / 2.0);
...
...
This diff is collapsed.
Click to expand it.
regression-tests/sphere_in_channel_test.sh
0 → 100644
+
16
−
0
View file @
1597a488
source
./regression-tests/__regression_test_executer.sh
# 1. set reference data directory (must match the folder structure in https://github.com/irmb/test_data)
REFERENCE_DATA_DIR
=
regression_tests/gpu/SphereInChannel
# 2. set cmake flags for the build of VirtualFluids
CMAKE_FLAGS
=
"--preset=make_gpu -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=75"
# 3. define the application to be executed
APPLICATION
=
./build/bin/SphereGPU
# 4. set the path to the produced data
RESULT_DATA_DIR
=
output/Sphere
run_regression_test
"
$REFERENCE_DATA_DIR
"
"
$CMAKE_FLAGS
"
"
$APPLICATION
"
"
$RESULT_DATA_DIR
"
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