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
8d5718c6
Commit
8d5718c6
authored
2 years ago
by
Anna Wellmann
Browse files
Options
Downloads
Patches
Plain Diff
Change bcs for flow around sphere
parent
c221b979
No related branches found
No related tags found
1 merge request
!112
Synchronize OpenSource GridGenerator and Develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/gpu/FlowAroundSphere/FlowAroundSphere.cpp
+11
-12
11 additions, 12 deletions
apps/gpu/FlowAroundSphere/FlowAroundSphere.cpp
with
11 additions
and
12 deletions
apps/gpu/FlowAroundSphere/FlowAroundSphere.cpp
+
11
−
12
View file @
8d5718c6
...
...
@@ -28,7 +28,7 @@
//
//! \file LidDrivenCavity.cpp
//! \ingroup Applications
//! \author Martin Schoenherr, Stephan Lenz
//! \author Martin Schoenherr, Stephan Lenz
, Anna Wellmann
//=======================================================================================
#define _USE_MATH_DEFINES
#include
<exception>
...
...
@@ -83,8 +83,8 @@ int main(int argc, char *argv[])
const
real
dt
=
(
real
)
0.5e-3
;
const
uint
nx
=
64
;
const
uint
timeStepOut
=
10
000
;
const
uint
timeStepEnd
=
2500
00
;
const
uint
timeStepOut
=
10
;
const
uint
timeStepEnd
=
1
00
;
//////////////////////////////////////////////////////////////////////////
// setup logger
...
...
@@ -131,8 +131,7 @@ int main(int argc, char *argv[])
const
real
velocityLB
=
velocity
*
dt
/
dx
;
// LB units
const
real
vx
=
velocityLB
/
sqrt
(
2.0
);
// LB units
const
real
vy
=
velocityLB
/
sqrt
(
2.0
);
// LB units
const
real
vxLB
=
velocityLB
/
sqrt
(
2.0
);
// LB units
const
real
viscosityLB
=
nx
*
velocityLB
/
Re
;
// LB units
...
...
@@ -162,13 +161,13 @@ int main(int argc, char *argv[])
// set boundary conditions
//////////////////////////////////////////////////////////////////////////
gridBuilder
->
setNoSlipBoundaryCondition
(
SideType
::
PX
);
gridBuilder
->
setNoSlipBoundaryCondition
(
SideType
::
MX
);
gridBuilder
->
setNoSlipBoundaryCondition
(
SideType
::
PY
);
gridBuilder
->
setNoSlipBoundaryCondition
(
SideType
::
MY
);
gridBuilder
->
setVelocityBoundaryCondition
(
SideType
::
PZ
,
vx
,
vy
,
0.0
);
gridBuilder
->
setNoSlipBoundaryCondition
(
SideType
::
MZ
);
gridBuilder
->
setVelocityBoundaryCondition
(
SideType
::
MX
,
vxLB
,
0.0
,
0.0
);
gridBuilder
->
setVelocityBoundaryCondition
(
SideType
::
MY
,
0.0
,
0.0
,
0.0
);
gridBuilder
->
setVelocityBoundaryCondition
(
SideType
::
PY
,
vxLB
,
0.0
,
0.0
);
gridBuilder
->
setVelocityBoundaryCondition
(
SideType
::
MZ
,
vxLB
,
0.0
,
0.0
);
gridBuilder
->
setVelocityBoundaryCondition
(
SideType
::
PZ
,
vxLB
,
0.0
,
0.0
);
gridBuilder
->
setVelocityBoundaryCondition
(
SideType
::
GEOMETRY
,
0.0
,
0.0
,
0.0
);
gridBuilder
->
setPressureBoundaryCondition
(
SideType
::
PX
,
0.0
);
// set pressure BC after velocity BCs
//////////////////////////////////////////////////////////////////////////
// set copy mesh to simulation
...
...
@@ -187,7 +186,7 @@ int main(int argc, char *argv[])
sim
.
init
(
para
,
gridGenerator
,
fileWriter
,
cudaMemoryManager
);
sim
.
run
();
sim
.
free
();
}
catch
(
const
std
::
bad_alloc
&
e
)
{
*
logging
::
out
<<
logging
::
Logger
::
LOGGER_ERROR
<<
"Bad Alloc:"
<<
e
.
what
()
<<
"
\n
"
;
}
catch
(
const
std
::
exception
&
e
)
{
...
...
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