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
36039fcb
Commit
36039fcb
authored
1 year ago
by
Martin Schönherr
Browse files
Options
Downloads
Patches
Plain Diff
Sphererefined app fixed
parent
9e9fa32b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!256
Kernel names changed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMake/cmake_config_files/MOLLOK.config.cmake
+2
-1
2 additions, 1 deletion
CMake/cmake_config_files/MOLLOK.config.cmake
apps/gpu/LBM/SphereRefined/SphereRefined.cpp
+11
-10
11 additions, 10 deletions
apps/gpu/LBM/SphereRefined/SphereRefined.cpp
with
13 additions
and
11 deletions
CMake/cmake_config_files/MOLLOK.config.cmake
+
2
−
1
View file @
36039fcb
#################################################################################
# VirtualFluids MACHINE FILE
# Responsible: Martin Schoenherr
# OS: Windows 1
0
# OS: Windows 1
1
#################################################################################
# cuda compute capability
...
...
@@ -14,3 +14,4 @@ list(APPEND VF_COMPILER_DEFINITION "PATH_NUMERICAL_TESTS=${PATH_NUMERICAL_TESTS}
# add invidual apps here
list
(
APPEND USER_APPS
"apps/gpu/LBM/WTG_RUB"
)
list
(
APPEND USER_APPS
"apps/gpu/LBM/TGV_3D_GridRef"
)
list
(
APPEND USER_APPS
"apps/gpu/LBM/SphereRefined"
)
This diff is collapsed.
Click to expand it.
apps/gpu/LBM/SphereRefined/SphereRefined.cpp
+
11
−
10
View file @
36039fcb
...
...
@@ -75,7 +75,8 @@
int
main
()
{
try
{
vf
::
logging
::
Logger
::
initializeLogger
();
vf
::
gpu
::
Communicator
&
communicator
=
vf
::
gpu
::
MpiCommunicator
::
getInstance
();
vf
::
logging
::
Logger
::
initializeLogger
();
//////////////////////////////////////////////////////////////////////////
// Simulation parameters
//////////////////////////////////////////////////////////////////////////
...
...
@@ -86,11 +87,11 @@ int main()
const
real
dSphere
=
0.2
;
const
real
Re
=
300.0
;
const
real
velocity
=
1.0
;
const
real
velocityLB
=
(
real
)
0.5e-
3
;
// LB units
const
uint
nx
=
64
;
const
real
velocityLB
=
(
real
)
0.5e-
2
;
// LB units
const
uint
nx
=
50
;
const
uint
timeStepOut
=
10000
;
const
uint
timeStepEnd
=
10000
0
;
const
uint
timeStepEnd
=
10000
;
//////////////////////////////////////////////////////////////////////////
// setup gridGenerator
...
...
@@ -114,17 +115,18 @@ int main()
//////////////////////////////////////////////////////////////////////////
gridBuilder
->
addCoarseGrid
(
-
1.0
*
L
,
-
0.6
*
L
,
-
0.6
*
L
,
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);
2.0
*
L
,
0.6
*
L
,
0.6
*
L
,
dx
);
// add fine grid
//
gridBuilder->addGrid(std::make_shared<Sphere>(0., 0., 0., 0.3),
3
);
gridBuilder
->
addGrid
(
std
::
make_shared
<
Sphere
>
(
0.
,
0.
,
0.
,
0.3
),
2
);
GridScalingFactory
scalingFactory
=
GridScalingFactory
();
scalingFactory
.
setScalingFactory
(
GridScalingFactory
::
GridScaling
::
ScaleCompressible
);
// use primitive
// auto sphere = std::make_shared<Sphere>(0.0, 0.0, 0.0, dSphere / 2.0);
// use stl
std
::
string
stlPath
=
"C:
\\
Users
\\
schoen
\\
Desktop
\\
git
\\
VirtualFluids_dev_rz
\\
apps
\\
gpu
\\
LBM
\\
SphereRefined
\\
sphere02.stl"
;
auto
sphere
=
std
::
make_shared
<
TriangularMesh
>
(
stlPath
);
gridBuilder
->
addGeometry
(
sphere
);
...
...
@@ -178,7 +180,6 @@ int main()
// set copy mesh to simulation
//////////////////////////////////////////////////////////////////////////
vf
::
gpu
::
Communicator
&
communicator
=
vf
::
gpu
::
MpiCommunicator
::
getInstance
();
auto
cudaMemoryManager
=
std
::
make_shared
<
CudaMemoryManager
>
(
para
);
SPtr
<
GridProvider
>
gridGenerator
=
...
...
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