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
f19913af
Commit
f19913af
authored
3 years ago
by
Hkorb
Browse files
Options
Downloads
Patches
Plain Diff
build mockup actuator_line
parent
d0ff1af9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!81
fixed AL
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu
+352
-81
352 additions, 81 deletions
src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu
src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.h
+29
-3
29 additions, 3 deletions
src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.h
with
381 additions
and
84 deletions
src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu
+
352
−
81
View file @
f19913af
This diff is collapsed.
Click to expand it.
src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.h
+
29
−
3
View file @
f19913af
...
...
@@ -26,7 +26,7 @@ public:
level
(
_level
),
Visitor
()
{
this
->
mem_size_blades
=
sizeof
(
real
)
*
this
->
nBladeNodes
*
this
->
nBlades
;
this
->
numberOfNodes
=
this
->
nBladeNodes
*
this
->
nBlades
;
this
->
omega
=
0.0
f
;
this
->
azimuth
=
0.0
f
;
}
...
...
@@ -34,6 +34,9 @@ public:
virtual
~
ActuatorLine
()
{
this
->
freeBladeCoords
();
this
->
freeBladeVelocities
();
this
->
freeBladeForces
();
this
->
freeBladeIndices
();
this
->
freeSphereIndices
();
}
...
...
@@ -50,6 +53,23 @@ private:
void
freeBladeCoords
();
void
rotateBlades
(
real
angle
);
void
allocBladeVelocities
(
CudaMemoryManager
*
cudaManager
);
void
initBladeVelocities
();
void
copyBladeVelocitiesHtoD
();
void
copyBladeVelocitiesDtoH
();
void
freeBladeVelocities
();
void
allocBladeForces
(
CudaMemoryManager
*
cudaManager
);
void
initBladeForces
();
void
copyBladeForcesHtoD
();
void
copyBladeForcesDtoH
();
void
freeBladeForces
();
void
allocBladeIndices
(
CudaMemoryManager
*
cudaManager
);
void
initBladeIndices
(
Parameter
*
para
);
void
copyBladeIndicesHtoD
();
void
freeBladeIndices
();
void
allocSphereIndices
(
CudaMemoryManager
*
cudaManager
);
void
copySphereIndices
();
void
freeSphereIndices
();
...
...
@@ -57,8 +77,15 @@ private:
private
:
const
real
density
;
real
turbinePosX
,
turbinePosY
,
turbinePosZ
;
real
*
bladeRadii
;
real
*
bladeCoordsXH
,
*
bladeCoordsYH
,
*
bladeCoordsZH
;
real
*
bladeCoordsXD
,
*
bladeCoordsYD
,
*
bladeCoordsZD
;
real
*
bladeVelocitiesXH
,
*
bladeVelocitiesYH
,
*
bladeVelocitiesZH
;
real
*
bladeVelocitiesXD
,
*
bladeVelocitiesYD
,
*
bladeVelocitiesZD
;
real
*
bladeForcesXH
,
*
bladeForcesYH
,
*
bladeForcesZH
;
real
*
bladeForcesXD
,
*
bladeForcesYD
,
*
bladeForcesZD
;
uint
*
bladeIndicesH
;
uint
*
bladeIndicesD
;
int
*
boundingSphereIndicesH
,
*
boundingSphereIndicesD
;
real
omega
,
azimuth
;
const
real
diameter
;
...
...
@@ -67,8 +94,7 @@ private:
const
real
epsilon
;
// in m
const
int
level
;
int
numberOfIndices
;
size_t
mem_size_blades
;
size_t
mem_size_boundingSphere
;
int
numberOfNodes
;
unsigned
int
*
indicesBoundingBox
;
...
...
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