Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sven Schneider
urbanVIS
Commits
00ae6ce4
Commit
00ae6ce4
authored
Jan 24, 2021
by
Sven Schneider
Browse files
minor changes and added new thumbnail for particle demo in gallery
parent
fab6966c
Pipeline
#1889
passed with stages
in 15 seconds
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
public/StreamlinesMultipart.html
View file @
00ae6ce4
...
...
@@ -37,7 +37,7 @@
</header>
<!-- <script src="polylineStreams.js"></script> -->
<script
src=
"polyline
s_with_particle
s.js"
></script>
<script
src=
"polyline
Stream
s.js"
></script>
<div
id=
"cesiumContainer"
class=
"pagecesium"
>
<div
id=
"legend"
>
...
...
public/imgs/thumbnails/StreamlinesMultipart_particles.PNG
0 → 100644
View file @
00ae6ce4
252 KB
public/index.html
View file @
00ae6ce4
...
...
@@ -245,6 +245,25 @@
</div>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"card mb-4 shadow-sm extension"
>
<h5>
Streamlines with particles
</h5>
<!-- <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"><title>Placeholder</title><rect width="100%" height="100%" fill="#55595c"/><text x="50%" y="50%" fill="#eceeef" dy=".3em">Thumbnail</text></svg> -->
<img
class=
"thumbimg"
src=
"imgs/thumbnails/StreamlinesMultipart_particles.PNG"
alt=
""
>
<div
class=
"card-body"
>
<p
class=
"card-text"
>
Multipart streamlines with vertex coloring showing also particles moving along the streamslines in order to give a better impression of the wind field.
</p>
<!-- <small class="text-muted">9 mins</small> -->
</div>
<div
class=
"d-flex justify-content-between align-items-center btnGroupDiv"
>
<div
class=
"btn-group"
>
<form
action=
"SteamlineParticles.html"
class=
"form-signin"
method=
"GET"
>
<button
type=
"submit"
class=
"btn btn-sm btn-outline-secondary "
>
Explore
</button>
</form>
</div>
</div>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"card mb-4 shadow-sm extension"
>
<h5>
Under construction
</h5>
...
...
public/polylines_with_particles.js
View file @
00ae6ce4
...
...
@@ -171,13 +171,13 @@ $(function () {
},
point
:
{
color
:
{
rgba
:
[
255
,
255
,
255
,
128
],
rgba
:
[
0
,
0
,
0
,
250
],
},
outlineColor
:
{
rgba
:
[
255
,
0
,
0
,
128
],
},
outlineWidth
:
3
,
pixelSize
:
15
,
outlineWidth
:
1
,
pixelSize
:
6
,
},
},
];
...
...
@@ -223,7 +223,7 @@ $(function () {
// Create and draw a polyline with per vertex colors
/////////////////////////////////////////////////
const
heightOffset
=
120
;
for
(
var
line
=
2
;
line
<
uniqueStreamID
.
length
;
line
++
)
{
for
(
var
line
=
0
;
line
<
uniqueStreamID
.
length
;
line
++
)
{
let
positions
=
[];
let
positionsInDegrees
=
[];
let
colors
=
[];
...
...
@@ -278,8 +278,8 @@ $(function () {
// console.log(streamDist);
let
t
=
0
;
//
let dt = (individual_particle_pt_distance[0] / individual_particle_avg_velo[0])/
5
0;
let
dt
=
streamDist
/
individual_particle_avg_velo
[
0
]
/
500
;
let
dt
=
(
individual_particle_pt_distance
[
0
]
/
individual_particle_avg_velo
[
0
])
/
2
0
;
//
let dt = streamDist / individual_particle_avg_velo[0] / 500;
let
temp_pos
=
[];
for
(
i
=
0
;
i
<
positionsInDegrees
.
length
;
i
++
)
{
...
...
@@ -297,7 +297,7 @@ $(function () {
positionsInDegrees
[
i
][
1
],
positionsInDegrees
[
i
][
2
]
);
//
dt = individual_particle_pt_distance[i] /individual_particle_avg_velo[i] /
5
0;
dt
=
individual_particle_pt_distance
[
i
]
/
individual_particle_avg_velo
[
i
]
/
2
0
;
// console.log(individual_particle_pt_distance[i] + "/" + individual_particle_avg_velo[i] );
// console.log(dt);
}
...
...
public/results/polylines_with_velocity.csv
View file @
00ae6ce4
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment