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
7ac8c4ea
Commit
7ac8c4ea
authored
5 years ago
by
Konstantin Kutscher
Browse files
Options
Downloads
Patches
Plain Diff
add to organ pipe setup new microphones
parent
047d2fad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/Applications/OrganPipe/OrganPipe.cpp
+28
-0
28 additions, 0 deletions
source/Applications/OrganPipe/OrganPipe.cpp
source/Applications/OrganPipe/config.txt
+3
-1
3 additions, 1 deletion
source/Applications/OrganPipe/config.txt
with
31 additions
and
1 deletion
source/Applications/OrganPipe/OrganPipe.cpp
+
28
−
0
View file @
7ac8c4ea
...
@@ -452,8 +452,36 @@ void run(string configname)
...
@@ -452,8 +452,36 @@ void run(string configname)
nodes
.
push_back
(
UbTupleFloat3
(
float
(
organPipeGeo
->
getX1Minimum
()
+
0.0719
),
float
(
0.0
),
float
(
organPipeGeo
->
getX3Maximum
()
+
0.05
)));
nodes
.
push_back
(
UbTupleFloat3
(
float
(
organPipeGeo
->
getX1Minimum
()
+
0.0719
),
float
(
0.0
),
float
(
organPipeGeo
->
getX3Maximum
()
+
0.05
)));
micCoProcessor
->
addMicrophone
(
Vector3D
(
organPipeGeo
->
getX1Maximum
()
+
0.05
,
0.0
,
organPipeGeo
->
getX3Centroid
()));
micCoProcessor
->
addMicrophone
(
Vector3D
(
organPipeGeo
->
getX1Maximum
()
+
0.05
,
0.0
,
organPipeGeo
->
getX3Centroid
()));
nodes
.
push_back
(
UbTupleFloat3
(
float
(
organPipeGeo
->
getX1Maximum
()
+
0.05
),
float
(
0.0
),
float
(
organPipeGeo
->
getX3Centroid
())));
nodes
.
push_back
(
UbTupleFloat3
(
float
(
organPipeGeo
->
getX1Maximum
()
+
0.05
),
float
(
0.0
),
float
(
organPipeGeo
->
getX3Centroid
())));
//additional mics for ray traysing
Vector3D
vec1
(
g_minX1
+
0.5
*
deltaXcoarse
,
g_minX2
+
0.5
*
deltaXcoarse
,
g_minX3
+
0.5
*
deltaXcoarse
);
micCoProcessor
->
addMicrophone
(
vec1
);
nodes
.
push_back
(
UbTupleFloat3
(
float
(
vec1
[
0
]),
float
(
vec1
[
1
]),
float
(
vec1
[
2
])));
Vector3D
vec2
(
g_minX1
+
0.5
*
deltaXcoarse
,
g_maxX2
-
0.5
*
deltaXcoarse
,
g_minX3
+
0.5
*
deltaXcoarse
);
micCoProcessor
->
addMicrophone
(
vec2
);
nodes
.
push_back
(
UbTupleFloat3
(
float
(
vec2
[
0
]),
float
(
vec2
[
1
]),
float
(
vec2
[
2
])));
Vector3D
vec3
(
g_minX1
+
0.5
*
deltaXcoarse
,
g_minX2
+
0.5
*
deltaXcoarse
,
g_maxX3
-
0.5
*
deltaXcoarse
);
micCoProcessor
->
addMicrophone
(
vec3
);
nodes
.
push_back
(
UbTupleFloat3
(
float
(
vec3
[
0
]),
float
(
vec3
[
1
]),
float
(
vec3
[
2
])));
Vector3D
vec4
(
g_minX1
+
0.5
*
deltaXcoarse
,
g_maxX2
-
0.5
*
deltaXcoarse
,
g_maxX3
-
0.5
*
deltaXcoarse
);
micCoProcessor
->
addMicrophone
(
vec4
);
nodes
.
push_back
(
UbTupleFloat3
(
float
(
vec4
[
0
]),
float
(
vec4
[
1
]),
float
(
vec4
[
2
])));
Vector3D
vec5
(
organPipeGeo
->
getX1Minimum
()
+
0.0719
,
0.0
,
organPipeGeo
->
getX3Maximum
());
micCoProcessor
->
addMicrophone
(
vec5
);
nodes
.
push_back
(
UbTupleFloat3
(
float
(
vec5
[
0
]),
float
(
vec5
[
1
]),
float
(
vec5
[
2
])));
Vector3D
vec6
(
organPipeGeo
->
getX1Maximum
(),
0.0
,
organPipeGeo
->
getX3Centroid
());
micCoProcessor
->
addMicrophone
(
vec6
);
nodes
.
push_back
(
UbTupleFloat3
(
float
(
vec6
[
0
]),
float
(
vec6
[
1
]),
float
(
vec6
[
2
])));
//////////////////////////////////////////////////////////////////
if
(
myid
==
0
)
WbWriterVtkXmlBinary
::
getInstance
()
->
writeNodes
(
pathOut
+
"/geo/mic"
,
nodes
);
if
(
myid
==
0
)
WbWriterVtkXmlBinary
::
getInstance
()
->
writeNodes
(
pathOut
+
"/geo/mic"
,
nodes
);
SPtr
<
UbScheduler
>
stepGhostLayer
(
new
UbScheduler
(
1
));
SPtr
<
UbScheduler
>
stepGhostLayer
(
new
UbScheduler
(
1
));
SPtr
<
Calculator
>
calculator
(
new
BasicCalculator
(
grid
,
stepGhostLayer
,
endTime
));
SPtr
<
Calculator
>
calculator
(
new
BasicCalculator
(
grid
,
stepGhostLayer
,
endTime
));
calculator
->
addCoProcessor
(
nupsCoProcessor
);
calculator
->
addCoProcessor
(
nupsCoProcessor
);
...
...
This diff is collapsed.
Click to expand it.
source/Applications/OrganPipe/config.txt
+
3
−
1
View file @
7ac8c4ea
pathOut = e:/temp/OrganPipe
pathOut = e:/temp/OrganPipe
pathGeo =
C
:/
Users/maini/Desktop/organflute
pathGeo =
d
:/
Projects/SFB880/OrganPipe/geo
availMem = 2e9
availMem = 2e9
logToFile = false
logToFile = false
QN = 67.5
newStart = true
newStart = true
restartStep = 250000
restartStep = 250000
...
...
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