Commit ·
51ea51c
1
Parent(s): d0f8b3a
fix legend color
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- main/mhd-magfield_glyph/GS/mhd-magfield_glyph_gs.png +0 -3
- main/mhd-magfield_glyph/GS/mhd-magfield_glyph_gs.pvsm +0 -3
- main/mhd-magfield_glyph/GS/mhd-magfield_glyph_gs.py +0 -51
- main/mhd-magfield_glyph/data/mhd-magfield_glyph.vti +0 -3
- main/mhd-magfield_glyph/task_description.txt +0 -10
- main/mhd-magfield_glyph/visualization_goals.txt +0 -7
- main/mhd-magfield_isosurface/GS/mhd-magfield_isosurface_gs.png +0 -3
- main/mhd-magfield_isosurface/GS/mhd-magfield_isosurface_gs.pvsm +0 -3
- main/mhd-magfield_isosurface/GS/mhd-magfield_isosurface_gs.py +0 -41
- main/mhd-magfield_isosurface/data/mhd-magfield_isosurface.vti +0 -3
- main/mhd-magfield_isosurface/task_description.txt +0 -8
- main/mhd-magfield_isosurface/visualization_goals.txt +0 -7
- main/mhd-magfield_volvis/GS/mhd-magfield_volvis_gs.png +0 -3
- main/mhd-magfield_volvis/GS/mhd-magfield_volvis_gs.pvsm +0 -3
- main/mhd-magfield_volvis/GS/mhd-magfield_volvis_gs.py +0 -42
- main/mhd-magfield_volvis/data/mhd-magfield_volvis.vti +0 -3
- main/mhd-magfield_volvis/task_description.txt +0 -9
- main/mhd-magfield_volvis/visualization_goals.txt +0 -7
- main/mhd-turbulence_glyph/GS/mhd-turbulence_glyph_gs.png +0 -3
- main/mhd-turbulence_glyph/GS/mhd-turbulence_glyph_gs.pvsm +0 -3
- main/mhd-turbulence_glyph/GS/mhd-turbulence_glyph_gs.py +0 -51
- main/mhd-turbulence_glyph/data/mhd-turbulence_glyph.vti +0 -3
- main/mhd-turbulence_glyph/task_description.txt +0 -11
- main/mhd-turbulence_glyph/visualization_goals.txt +0 -7
- main/mhd-turbulence_vorticity/GS/mhd-turbulence_vorticity_gs.png +0 -3
- main/mhd-turbulence_vorticity/GS/mhd-turbulence_vorticity_gs.pvsm +0 -3
- main/mhd-turbulence_vorticity/GS/mhd-turbulence_vorticity_gs.py +0 -55
- main/mhd-turbulence_vorticity/data/mhd-turbulence_vorticity.vti +0 -3
- main/mhd-turbulence_vorticity/task_description.txt +0 -10
- main/mhd-turbulence_vorticity/visualization_goals.txt +0 -7
- main/rti-velocity_divergence/GS/rti-velocity_divergence_gs.png +0 -3
- main/rti-velocity_divergence/GS/rti-velocity_divergence_gs.pvsm +0 -3
- main/rti-velocity_divergence/GS/rti-velocity_divergence_gs.py +0 -49
- main/rti-velocity_divergence/data/rti-velocity_divergence.vti +0 -3
- main/rti-velocity_divergence/task_description.txt +0 -9
- main/rti-velocity_divergence/visualization_goals.txt +0 -7
- main/rti-velocity_glyph/GS/rti-velocity_glyph_gs.png +2 -2
- main/rti-velocity_glyph/GS/rti-velocity_glyph_gs.pvsm +2 -2
- main/rti-velocity_glyph/GS/rti-velocity_glyph_gs.py +6 -4
- main/rti-velocity_streakline/GS/rti-velocity_streakline_gs.png +2 -2
- main/rti-velocity_streakline/GS/rti-velocity_streakline_gs.pvsm +2 -2
- main/rti-velocity_streakline/GS/rti-velocity_streakline_gs.py +6 -4
- main/rti-velocity_streamline/GS/rti-velocity_streamline_gs.png +0 -3
- main/rti-velocity_streamline/GS/rti-velocity_streamline_gs.pvsm +0 -3
- main/rti-velocity_streamline/GS/rti-velocity_streamline_gs.py +0 -48
- main/rti-velocity_streamline/data/rti-velocity_streamline.vti +0 -3
- main/rti-velocity_streamline/task_description.txt +0 -9
- main/rti-velocity_streamline/visualization_goals.txt +0 -5
- main/rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.png +2 -2
- main/rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.pvsm +2 -2
main/mhd-magfield_glyph/GS/mhd-magfield_glyph_gs.png
DELETED
Git LFS Details
|
main/mhd-magfield_glyph/GS/mhd-magfield_glyph_gs.pvsm
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f4b40024a75558c00b6613fd74d9ef154246381d65c943230499de5adf15f970
|
| 3 |
-
size 288472
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_glyph/GS/mhd-magfield_glyph_gs.py
DELETED
|
@@ -1,51 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from paraview.simple import *
|
| 3 |
-
|
| 4 |
-
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'vti_data', 'MHD_magfield_0010.vti')
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
|
| 8 |
-
|
| 9 |
-
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
-
reader.UpdatePipeline()
|
| 11 |
-
|
| 12 |
-
sliceFilter = Slice(Input=reader)
|
| 13 |
-
sliceFilter.SliceType = 'Plane'
|
| 14 |
-
sliceFilter.SliceType.Origin = [64.0, 63.5, 63.5]
|
| 15 |
-
sliceFilter.SliceType.Normal = [1.0, 0.0, 0.0]
|
| 16 |
-
sliceFilter.UpdatePipeline()
|
| 17 |
-
|
| 18 |
-
glyph = Glyph(Input=sliceFilter, GlyphType='Arrow')
|
| 19 |
-
glyph.OrientationArray = ['POINTS', 'vector']
|
| 20 |
-
glyph.ScaleArray = ['POINTS', 'magnitude']
|
| 21 |
-
glyph.ScaleFactor = 5.0
|
| 22 |
-
glyph.MaximumNumberOfSamplePoints = 5000
|
| 23 |
-
glyph.GlyphMode = 'Every Nth Point'
|
| 24 |
-
glyph.Stride = 4
|
| 25 |
-
glyph.UpdatePipeline()
|
| 26 |
-
|
| 27 |
-
renderView = GetActiveViewOrCreate('RenderView')
|
| 28 |
-
renderView.ViewSize = [1024, 1024]
|
| 29 |
-
renderView.Background = [0.0, 0.0, 0.15]
|
| 30 |
-
|
| 31 |
-
glyphDisplay = Show(glyph, renderView)
|
| 32 |
-
glyphDisplay.Representation = 'Surface'
|
| 33 |
-
ColorBy(glyphDisplay, ('POINTS', 'magnitude'))
|
| 34 |
-
|
| 35 |
-
magLUT = GetColorTransferFunction('magnitude')
|
| 36 |
-
magLUT.ApplyPreset('Plasma (matplotlib)', True)
|
| 37 |
-
|
| 38 |
-
glyphDisplay.SetScalarBarVisibility(renderView, True)
|
| 39 |
-
colorBar = GetScalarBar(magLUT, renderView)
|
| 40 |
-
colorBar.Title = 'Magnetic Field Magnitude'
|
| 41 |
-
colorBar.ComponentTitle = ''
|
| 42 |
-
|
| 43 |
-
renderView.CameraPosition = [250.0, 63.5, 63.5]
|
| 44 |
-
renderView.CameraFocalPoint = [64.0, 63.5, 63.5]
|
| 45 |
-
renderView.CameraViewUp = [0.0, 0.0, 1.0]
|
| 46 |
-
renderView.ResetCamera()
|
| 47 |
-
Render()
|
| 48 |
-
|
| 49 |
-
SaveScreenshot(OUTPUT_IMG, renderView, ImageResolution=[1024, 1024])
|
| 50 |
-
SaveState(OUTPUT_STATE)
|
| 51 |
-
print(f"Task 04 done: {OUTPUT_IMG}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_glyph/data/mhd-magfield_glyph.vti
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1b891955b70e72bcc6e0e8976a7f587ff08206a1b153e613617251170886d581
|
| 3 |
-
size 78294594
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_glyph/task_description.txt
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
Load the MHD magnetic field dataset from "mhd-magfield_glyph/data/mhd-magfield_glyph.vti" (VTI format, 128x128x128 grid with components bx, by, bz).
|
| 2 |
-
Create a slice at x=64 through the volume.
|
| 3 |
-
Place arrow glyphs oriented by the magnetic field vector and scaled by field magnitude (scale factor 5.0).
|
| 4 |
-
Color the arrows using the 'Plasma (matplotlib)' colormap mapped to magnitude. Use stride of 4.
|
| 5 |
-
Add a color bar labeled 'Magnetic Field Magnitude'.
|
| 6 |
-
Use a dark navy background (RGB: 0.0, 0.0, 0.15). Set camera to view along the negative x-axis. Render at 1024x1024.
|
| 7 |
-
Save the paraview state as "mhd-magfield_glyph/results/{agent_mode}/mhd-magfield_glyph.pvsm".
|
| 8 |
-
Save the visualization image as "mhd-magfield_glyph/results/{agent_mode}/mhd-magfield_glyph.png".
|
| 9 |
-
(Optional, if use python script) Save the python script as "mhd-magfield_glyph/results/{agent_mode}/mhd-magfield_glyph.py".
|
| 10 |
-
Do not save any other files, and always save the visualization image.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_glyph/visualization_goals.txt
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
1. Overall Visualization Goal: Does the result match the ground truth glyph visualization of the MHD magnetic field?
|
| 2 |
-
|
| 3 |
-
2. Glyph Patterns: Do the arrow glyphs show similar orientation and spatial patterns as the ground truth?
|
| 4 |
-
|
| 5 |
-
3. Glyph Scaling: Do the glyphs show similar size variations as the ground truth, reflecting the field magnitude patterns?
|
| 6 |
-
|
| 7 |
-
4. Color Mapping: Is the color distribution across glyphs visually similar to the ground truth?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_isosurface/GS/mhd-magfield_isosurface_gs.png
DELETED
Git LFS Details
|
main/mhd-magfield_isosurface/GS/mhd-magfield_isosurface_gs.pvsm
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3cd46ff898531f2bb3b703a9b81b10b056852632d05531efc5934e907f71c1bf
|
| 3 |
-
size 277547
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_isosurface/GS/mhd-magfield_isosurface_gs.py
DELETED
|
@@ -1,41 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from paraview.simple import *
|
| 3 |
-
|
| 4 |
-
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'vti_data', 'MHD_magfield_0060.vti')
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
|
| 8 |
-
|
| 9 |
-
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
-
reader.UpdatePipeline()
|
| 11 |
-
|
| 12 |
-
contour = Contour(Input=reader)
|
| 13 |
-
contour.ContourBy = ['POINTS', 'magnitude']
|
| 14 |
-
contour.Isosurfaces = [0.8]
|
| 15 |
-
contour.UpdatePipeline()
|
| 16 |
-
|
| 17 |
-
renderView = GetActiveViewOrCreate('RenderView')
|
| 18 |
-
renderView.ViewSize = [1024, 1024]
|
| 19 |
-
renderView.Background = [0.0, 0.0, 0.1]
|
| 20 |
-
|
| 21 |
-
contourDisplay = Show(contour, renderView)
|
| 22 |
-
contourDisplay.Representation = 'Surface'
|
| 23 |
-
ColorBy(contourDisplay, ('POINTS', 'bx'))
|
| 24 |
-
|
| 25 |
-
bxLUT = GetColorTransferFunction('bx')
|
| 26 |
-
bxLUT.ApplyPreset('Turbo', True)
|
| 27 |
-
|
| 28 |
-
contourDisplay.SetScalarBarVisibility(renderView, True)
|
| 29 |
-
colorBar = GetScalarBar(bxLUT, renderView)
|
| 30 |
-
colorBar.Title = 'Bx Component'
|
| 31 |
-
colorBar.ComponentTitle = ''
|
| 32 |
-
|
| 33 |
-
renderView.CameraPosition = [200.0, 200.0, 200.0]
|
| 34 |
-
renderView.CameraFocalPoint = [63.5, 63.5, 63.5]
|
| 35 |
-
renderView.CameraViewUp = [0.0, 0.0, 1.0]
|
| 36 |
-
renderView.ResetCamera()
|
| 37 |
-
Render()
|
| 38 |
-
|
| 39 |
-
SaveScreenshot(OUTPUT_IMG, renderView, ImageResolution=[1024, 1024])
|
| 40 |
-
SaveState(OUTPUT_STATE)
|
| 41 |
-
print(f"Task 16 done: {OUTPUT_IMG}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_isosurface/data/mhd-magfield_isosurface.vti
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2d155a87cde138ba20a80ac91673e11e90f874504665085b9d34e9ea66c4c489
|
| 3 |
-
size 78294594
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_isosurface/task_description.txt
DELETED
|
@@ -1,8 +0,0 @@
|
|
| 1 |
-
Load the MHD magnetic field dataset from "mhd-magfield_isosurface/data/mhd-magfield_isosurface.vti" (VTI format, 128x128x128).
|
| 2 |
-
Extract an isosurface of magnetic field magnitude at threshold 0.8. Color the isosurface by the bx component using 'Turbo' colormap.
|
| 3 |
-
Add a color bar labeled 'Bx Component'.
|
| 4 |
-
Dark navy background (RGB: 0.0, 0.0, 0.1). Isometric camera view. Render at 1024x1024.
|
| 5 |
-
Save the paraview state as "mhd-magfield_isosurface/results/{agent_mode}/mhd-magfield_isosurface.pvsm".
|
| 6 |
-
Save the visualization image as "mhd-magfield_isosurface/results/{agent_mode}/mhd-magfield_isosurface.png".
|
| 7 |
-
(Optional, if use python script) Save the python script as "mhd-magfield_isosurface/results/{agent_mode}/mhd-magfield_isosurface.py".
|
| 8 |
-
Do not save any other files, and always save the visualization image.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_isosurface/visualization_goals.txt
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
1. Overall Visualization Goal: Does the result match the ground truth isosurface visualization of the MHD magnetic field?
|
| 2 |
-
|
| 3 |
-
2. Isosurface Structure: Does the isosurface show similar topology and shape as the ground truth?
|
| 4 |
-
|
| 5 |
-
3. Surface Features: Are key features and structures on the isosurface similar to the ground truth?
|
| 6 |
-
|
| 7 |
-
4. Color Mapping: Is the color distribution across the isosurface visually similar to the ground truth?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_volvis/GS/mhd-magfield_volvis_gs.png
DELETED
Git LFS Details
|
main/mhd-magfield_volvis/GS/mhd-magfield_volvis_gs.pvsm
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5fa7365acd796e0c92735e2fd76092b6d798342ed140f59c926285e22072c114
|
| 3 |
-
size 218985
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_volvis/GS/mhd-magfield_volvis_gs.py
DELETED
|
@@ -1,42 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from paraview.simple import *
|
| 3 |
-
|
| 4 |
-
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'vti_data', 'MHD_magfield_0040.vti')
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
|
| 8 |
-
|
| 9 |
-
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
-
reader.UpdatePipeline()
|
| 11 |
-
|
| 12 |
-
renderView = GetActiveViewOrCreate('RenderView')
|
| 13 |
-
renderView.ViewSize = [1024, 1024]
|
| 14 |
-
renderView.Background = [0.0, 0.0, 0.05]
|
| 15 |
-
|
| 16 |
-
display = Show(reader, renderView)
|
| 17 |
-
display.Representation = 'Volume'
|
| 18 |
-
ColorBy(display, ('POINTS', 'magnitude'))
|
| 19 |
-
|
| 20 |
-
magLUT = GetColorTransferFunction('magnitude')
|
| 21 |
-
magLUT.ApplyPreset('Cool to Warm', True)
|
| 22 |
-
|
| 23 |
-
magPWF = GetOpacityTransferFunction('magnitude')
|
| 24 |
-
magPWF.Points = [0.0, 0.0, 0.5, 0.0,
|
| 25 |
-
0.5, 0.05, 0.5, 0.0,
|
| 26 |
-
1.0, 0.4, 0.5, 0.0,
|
| 27 |
-
1.5, 1.0, 0.5, 0.0]
|
| 28 |
-
|
| 29 |
-
display.SetScalarBarVisibility(renderView, True)
|
| 30 |
-
colorBar = GetScalarBar(magLUT, renderView)
|
| 31 |
-
colorBar.Title = 'B Magnitude'
|
| 32 |
-
colorBar.ComponentTitle = ''
|
| 33 |
-
|
| 34 |
-
renderView.CameraPosition = [200.0, 200.0, 200.0]
|
| 35 |
-
renderView.CameraFocalPoint = [63.5, 63.5, 63.5]
|
| 36 |
-
renderView.CameraViewUp = [0.0, 0.0, 1.0]
|
| 37 |
-
renderView.ResetCamera()
|
| 38 |
-
Render()
|
| 39 |
-
|
| 40 |
-
SaveScreenshot(OUTPUT_IMG, renderView, ImageResolution=[1024, 1024])
|
| 41 |
-
SaveState(OUTPUT_STATE)
|
| 42 |
-
print(f"Task 09 done: {OUTPUT_IMG}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_volvis/data/mhd-magfield_volvis.vti
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f5784edd7ad06e6defa543330de8fcc36fa1ac1d2258085322a024f79c9409bb
|
| 3 |
-
size 78294594
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_volvis/task_description.txt
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
Load the MHD magnetic field dataset from "mhd-magfield_volvis/data/mhd-magfield_volvis.vti" (VTI format, 128x128x128 grid).
|
| 2 |
-
Compute the magnetic field magnitude from components (bx, by, bz). Perform volume rendering of the magnitude field.
|
| 3 |
-
Use the 'Cool to Warm' colormap with an opacity transfer function that makes low-magnitude regions transparent and high-magnitude regions opaque.
|
| 4 |
-
Add a color bar labeled 'B Magnitude'.
|
| 5 |
-
Use a dark background (RGB: 0.0, 0.0, 0.05). Set an isometric camera view. Render at 1024x1024.
|
| 6 |
-
Save the paraview state as "mhd-magfield_volvis/results/{agent_mode}/mhd-magfield_volvis.pvsm".
|
| 7 |
-
Save the visualization image as "mhd-magfield_volvis/results/{agent_mode}/mhd-magfield_volvis.png".
|
| 8 |
-
(Optional, if use python script) Save the python script as "mhd-magfield_volvis/results/{agent_mode}/mhd-magfield_volvis.py".
|
| 9 |
-
Do not save any other files, and always save the visualization image.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-magfield_volvis/visualization_goals.txt
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
1. Overall Visualization Goal: Does the result match the ground truth volume rendering of the MHD magnetic field magnitude?
|
| 2 |
-
|
| 3 |
-
2. Volume Structure: Are the internal structures and features visible in the volume rendering similar to the ground truth?
|
| 4 |
-
|
| 5 |
-
3. Opacity Distribution: Does the transparency/opacity distribution appear similar to the ground truth, showing the same depth and internal features?
|
| 6 |
-
|
| 7 |
-
4. Color Mapping: Is the color distribution throughout the volume visually similar to the ground truth?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_glyph/GS/mhd-turbulence_glyph_gs.png
DELETED
Git LFS Details
|
main/mhd-turbulence_glyph/GS/mhd-turbulence_glyph_gs.pvsm
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:98d7b71a0df23246ea06c9bfec9a520c4838404726b7ac71acc50a84cba88947
|
| 3 |
-
size 237519
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_glyph/GS/mhd-turbulence_glyph_gs.py
DELETED
|
@@ -1,51 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from paraview.simple import *
|
| 3 |
-
|
| 4 |
-
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'vti_data', 'MHD_velocity_0010.vti')
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
|
| 8 |
-
|
| 9 |
-
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
-
reader.UpdatePipeline()
|
| 11 |
-
|
| 12 |
-
sliceFilter = Slice(Input=reader)
|
| 13 |
-
sliceFilter.SliceType = 'Plane'
|
| 14 |
-
sliceFilter.SliceType.Origin = [63.5, 63.5, 64.0]
|
| 15 |
-
sliceFilter.SliceType.Normal = [0.0, 0.0, 1.0]
|
| 16 |
-
sliceFilter.UpdatePipeline()
|
| 17 |
-
|
| 18 |
-
glyph = Glyph(Input=sliceFilter, GlyphType='Arrow')
|
| 19 |
-
glyph.OrientationArray = ['POINTS', 'vector']
|
| 20 |
-
glyph.ScaleArray = ['POINTS', 'magnitude']
|
| 21 |
-
glyph.ScaleFactor = 5.0
|
| 22 |
-
glyph.MaximumNumberOfSamplePoints = 5000
|
| 23 |
-
glyph.GlyphMode = 'Every Nth Point'
|
| 24 |
-
glyph.Stride = 4
|
| 25 |
-
glyph.UpdatePipeline()
|
| 26 |
-
|
| 27 |
-
renderView = GetActiveViewOrCreate('RenderView')
|
| 28 |
-
renderView.ViewSize = [1024, 1024]
|
| 29 |
-
renderView.Background = [0.1, 0.1, 0.15]
|
| 30 |
-
|
| 31 |
-
glyphDisplay = Show(glyph, renderView)
|
| 32 |
-
glyphDisplay.Representation = 'Surface'
|
| 33 |
-
ColorBy(glyphDisplay, ('POINTS', 'magnitude'))
|
| 34 |
-
|
| 35 |
-
magLUT = GetColorTransferFunction('magnitude')
|
| 36 |
-
magLUT.ApplyPreset('Cool to Warm', True)
|
| 37 |
-
|
| 38 |
-
glyphDisplay.SetScalarBarVisibility(renderView, True)
|
| 39 |
-
colorBar = GetScalarBar(magLUT, renderView)
|
| 40 |
-
colorBar.Title = 'Velocity Magnitude'
|
| 41 |
-
colorBar.ComponentTitle = ''
|
| 42 |
-
|
| 43 |
-
renderView.CameraPosition = [63.5, 63.5, 250.0]
|
| 44 |
-
renderView.CameraFocalPoint = [63.5, 63.5, 64.0]
|
| 45 |
-
renderView.CameraViewUp = [0.0, 1.0, 0.0]
|
| 46 |
-
renderView.ResetCamera()
|
| 47 |
-
Render()
|
| 48 |
-
|
| 49 |
-
SaveScreenshot(OUTPUT_IMG, renderView, ImageResolution=[1024, 1024])
|
| 50 |
-
SaveState(OUTPUT_STATE)
|
| 51 |
-
print(f"Task 01 done: {OUTPUT_IMG}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_glyph/data/mhd-turbulence_glyph.vti
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:823282fcbb627582c8d6bac7edc7cb8f87801ba65ff92d65a1d06df7444fd54e
|
| 3 |
-
size 78294594
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_glyph/task_description.txt
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
Load the MHD turbulence velocity field dataset from "mhd-turbulence_glyph/data/mhd-turbulence_glyph.vti" (VTI format, 128x128x128 grid).
|
| 2 |
-
Create a slice at z=64 through the volume. On this slice, place arrow glyphs oriented by the velocity vector field and scaled by velocity magnitude.
|
| 3 |
-
Color the arrows using the 'Cool to Warm' colormap mapped to velocity magnitude.
|
| 4 |
-
Use a sampling stride of 4 to avoid overcrowding. Set the glyph scale factor to 5.0.
|
| 5 |
-
Add a color bar labeled 'Velocity Magnitude'.
|
| 6 |
-
Use a dark background (RGB: 0.1, 0.1, 0.15).
|
| 7 |
-
Set the camera to a top-down view looking along the negative z-axis. Render at 1024x1024 resolution.
|
| 8 |
-
Save the paraview state as "mhd-turbulence_glyph/results/{agent_mode}/mhd-turbulence_glyph.pvsm".
|
| 9 |
-
Save the visualization image as "mhd-turbulence_glyph/results/{agent_mode}/mhd-turbulence_glyph.png".
|
| 10 |
-
(Optional, if use python script) Save the python script as "mhd-turbulence_glyph/results/{agent_mode}/mhd-turbulence_glyph.py".
|
| 11 |
-
Do not save any other files, and always save the visualization image.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_glyph/visualization_goals.txt
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
1. Overall Visualization Goal: Does the result match the ground truth glyph visualization of the MHD turbulence velocity field?
|
| 2 |
-
|
| 3 |
-
2. Glyph Patterns: Do the arrow glyphs show similar orientation and spatial patterns as the ground truth?
|
| 4 |
-
|
| 5 |
-
3. Glyph Scaling: Do the glyphs show similar size variations as the ground truth, reflecting the velocity magnitude patterns?
|
| 6 |
-
|
| 7 |
-
4. Color Mapping: Is the color distribution across glyphs visually similar to the ground truth?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_vorticity/GS/mhd-turbulence_vorticity_gs.png
DELETED
Git LFS Details
|
main/mhd-turbulence_vorticity/GS/mhd-turbulence_vorticity_gs.pvsm
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cccdf68dc512311a488ad73f41c63b2ce921728d0de8e54b357da33a739d5c82
|
| 3 |
-
size 278782
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_vorticity/GS/mhd-turbulence_vorticity_gs.py
DELETED
|
@@ -1,55 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from paraview.simple import *
|
| 3 |
-
|
| 4 |
-
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'vti_data', 'MHD_velocity_0050.vti')
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
|
| 8 |
-
|
| 9 |
-
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
-
reader.UpdatePipeline()
|
| 11 |
-
|
| 12 |
-
gradient = GradientOfUnstructuredDataSet(Input=reader)
|
| 13 |
-
gradient.ScalarArray = ['POINTS', 'vector']
|
| 14 |
-
gradient.ComputeVorticity = 1
|
| 15 |
-
gradient.ComputeGradient = 0
|
| 16 |
-
gradient.VorticityArrayName = 'Vorticity'
|
| 17 |
-
gradient.UpdatePipeline()
|
| 18 |
-
|
| 19 |
-
calc = Calculator(Input=gradient)
|
| 20 |
-
calc.Function = 'mag(Vorticity)'
|
| 21 |
-
calc.ResultArrayName = 'VorticityMagnitude'
|
| 22 |
-
calc.UpdatePipeline()
|
| 23 |
-
|
| 24 |
-
renderView = GetActiveViewOrCreate('RenderView')
|
| 25 |
-
renderView.ViewSize = [1024, 1024]
|
| 26 |
-
renderView.Background = [0.0, 0.0, 0.0]
|
| 27 |
-
|
| 28 |
-
display = Show(calc, renderView)
|
| 29 |
-
display.Representation = 'Volume'
|
| 30 |
-
ColorBy(display, ('POINTS', 'VorticityMagnitude'))
|
| 31 |
-
|
| 32 |
-
vorLUT = GetColorTransferFunction('VorticityMagnitude')
|
| 33 |
-
vorLUT.ApplyPreset('Plasma (matplotlib)', True)
|
| 34 |
-
|
| 35 |
-
vorPWF = GetOpacityTransferFunction('VorticityMagnitude')
|
| 36 |
-
vorPWF.Points = [0.0, 0.0, 0.5, 0.0,
|
| 37 |
-
0.1, 0.0, 0.5, 0.0,
|
| 38 |
-
0.3, 0.1, 0.5, 0.0,
|
| 39 |
-
0.6, 0.5, 0.5, 0.0,
|
| 40 |
-
1.0, 1.0, 0.5, 0.0]
|
| 41 |
-
|
| 42 |
-
display.SetScalarBarVisibility(renderView, True)
|
| 43 |
-
colorBar = GetScalarBar(vorLUT, renderView)
|
| 44 |
-
colorBar.Title = 'Vorticity Magnitude'
|
| 45 |
-
colorBar.ComponentTitle = ''
|
| 46 |
-
|
| 47 |
-
renderView.CameraPosition = [200.0, 200.0, 200.0]
|
| 48 |
-
renderView.CameraFocalPoint = [63.5, 63.5, 63.5]
|
| 49 |
-
renderView.CameraViewUp = [0.0, 0.0, 1.0]
|
| 50 |
-
renderView.ResetCamera()
|
| 51 |
-
Render()
|
| 52 |
-
|
| 53 |
-
SaveScreenshot(OUTPUT_IMG, renderView, ImageResolution=[1024, 1024])
|
| 54 |
-
SaveState(OUTPUT_STATE)
|
| 55 |
-
print(f"Task 12 done: {OUTPUT_IMG}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_vorticity/data/mhd-turbulence_vorticity.vti
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a4052ecaeecb8d89bfd3559d89873b93847f899018e754083871bbb7d4f82d56
|
| 3 |
-
size 78294594
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_vorticity/task_description.txt
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
Load the MHD turbulence velocity field dataset "mhd-turbulence_vorticity/data/mhd-turbulence_vorticity.vti" (VTI format, 128x128x128 grid).
|
| 2 |
-
Compute the vorticity field (curl of velocity) using the Gradient filter with 'Compute Vorticity' enabled.
|
| 3 |
-
Then compute vorticity magnitude. Perform volume rendering of vorticity magnitude using the 'Plasma (matplotlib)' colormap.
|
| 4 |
-
Set opacity to highlight high-vorticity regions.
|
| 5 |
-
Add a color bar labeled 'Vorticity Magnitude'.
|
| 6 |
-
Black background. Isometric camera. Render at 1024x1024.
|
| 7 |
-
Save the paraview state as "mhd-turbulence_vorticity/results/{agent_mode}/mhd-turbulence_vorticity.pvsm".
|
| 8 |
-
Save the visualization image as "mhd-turbulence_vorticity/results/{agent_mode}/mhd-turbulence_vorticity.png".
|
| 9 |
-
(Optional, if use python script) Save the python script as "mhd-turbulence_vorticity/results/{agent_mode}/mhd-turbulence_vorticity.py".
|
| 10 |
-
Do not save any other files, and always save the visualization image.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/mhd-turbulence_vorticity/visualization_goals.txt
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
1. Overall Visualization Goal: Does the result match the ground truth volume rendering of the MHD turbulence vorticity field?
|
| 2 |
-
|
| 3 |
-
2. Vorticity Patterns: Are the vorticity structures and patterns visible in the result similar to the ground truth?
|
| 4 |
-
|
| 5 |
-
3. Volume Features: Are high-vorticity regions highlighted with similar opacity and visibility as the ground truth?
|
| 6 |
-
|
| 7 |
-
4. Color Mapping: Is the color distribution throughout the volume visually similar to the ground truth?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_divergence/GS/rti-velocity_divergence_gs.png
DELETED
Git LFS Details
|
main/rti-velocity_divergence/GS/rti-velocity_divergence_gs.pvsm
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6c44c7ae1f4c43061ef3f1a96da69d20d30f22eaa8d36e438297f323c1fb6175
|
| 3 |
-
size 225407
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_divergence/GS/rti-velocity_divergence_gs.py
DELETED
|
@@ -1,49 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from paraview.simple import *
|
| 3 |
-
|
| 4 |
-
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'vti_data', 'RTI_velocity_0040.vti')
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
|
| 8 |
-
|
| 9 |
-
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
-
reader.UpdatePipeline()
|
| 11 |
-
|
| 12 |
-
gradient = GradientOfUnstructuredDataSet(Input=reader)
|
| 13 |
-
gradient.ScalarArray = ['POINTS', 'vector']
|
| 14 |
-
gradient.ComputeDivergence = 1
|
| 15 |
-
gradient.ComputeGradient = 0
|
| 16 |
-
gradient.DivergenceArrayName = 'Divergence'
|
| 17 |
-
gradient.UpdatePipeline()
|
| 18 |
-
|
| 19 |
-
sliceFilter = Slice(Input=gradient)
|
| 20 |
-
sliceFilter.SliceType = 'Plane'
|
| 21 |
-
sliceFilter.SliceType.Origin = [63.5, 63.5, 64.0]
|
| 22 |
-
sliceFilter.SliceType.Normal = [0.0, 0.0, 1.0]
|
| 23 |
-
sliceFilter.UpdatePipeline()
|
| 24 |
-
|
| 25 |
-
renderView = GetActiveViewOrCreate('RenderView')
|
| 26 |
-
renderView.ViewSize = [1024, 1024]
|
| 27 |
-
renderView.Background = [1.0, 1.0, 1.0]
|
| 28 |
-
|
| 29 |
-
sliceDisplay = Show(sliceFilter, renderView)
|
| 30 |
-
sliceDisplay.Representation = 'Surface'
|
| 31 |
-
ColorBy(sliceDisplay, ('POINTS', 'Divergence'))
|
| 32 |
-
|
| 33 |
-
divLUT = GetColorTransferFunction('Divergence')
|
| 34 |
-
divLUT.ApplyPreset('Cool to Warm', True)
|
| 35 |
-
|
| 36 |
-
sliceDisplay.SetScalarBarVisibility(renderView, True)
|
| 37 |
-
colorBar = GetScalarBar(divLUT, renderView)
|
| 38 |
-
colorBar.Title = 'Velocity Divergence'
|
| 39 |
-
colorBar.ComponentTitle = ''
|
| 40 |
-
|
| 41 |
-
renderView.CameraPosition = [63.5, 63.5, 250.0]
|
| 42 |
-
renderView.CameraFocalPoint = [63.5, 63.5, 64.0]
|
| 43 |
-
renderView.CameraViewUp = [0.0, 1.0, 0.0]
|
| 44 |
-
renderView.ResetCamera()
|
| 45 |
-
Render()
|
| 46 |
-
|
| 47 |
-
SaveScreenshot(OUTPUT_IMG, renderView, ImageResolution=[1024, 1024])
|
| 48 |
-
SaveState(OUTPUT_STATE)
|
| 49 |
-
print(f"Task 13 done: {OUTPUT_IMG}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_divergence/data/rti-velocity_divergence.vti
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d9e278b27f5ee9af8dfa9cc5073d865633ccf7dc9cc6c52d1ebbbf4c751ebec1
|
| 3 |
-
size 78294594
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_divergence/task_description.txt
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
Load the Rayleigh-Taylor instability velocity field from "rti-velocity_divergence/data/rti-velocity_divergence.vti" (VTI format, 128x128x128).
|
| 2 |
-
Compute the divergence of the velocity field using the Gradient filter with 'Compute Divergence' enabled.
|
| 3 |
-
Extract a slice at z=64 and color it by divergence using the 'Cool to Warm' diverging colormap (centered at 0).
|
| 4 |
-
Add a color bar labeled 'Velocity Divergence'.
|
| 5 |
-
White background. Top-down camera view along negative z-axis. Render at 1024x1024.
|
| 6 |
-
Save the paraview state as "rti-velocity_divergence/results/{agent_mode}/rti-velocity_divergence.pvsm".
|
| 7 |
-
Save the visualization image as "rti-velocity_divergence/results/{agent_mode}/rti-velocity_divergence.png".
|
| 8 |
-
(Optional, if use python script) Save the python script as "rti-velocity_divergence/results/{agent_mode}/rti-velocity_divergence.py".
|
| 9 |
-
Do not save any other files, and always save the visualization image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_divergence/visualization_goals.txt
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
1. Overall Visualization Goal: Does the result match the ground truth visualization of the RTI velocity divergence field?
|
| 2 |
-
|
| 3 |
-
2. Divergence Patterns: Are the divergence patterns and structures visible in the result similar to the ground truth?
|
| 4 |
-
|
| 5 |
-
3. Spatial Distribution: Does the spatial distribution of positive and negative divergence regions match the ground truth?
|
| 6 |
-
|
| 7 |
-
4. Color Mapping: Is the color distribution visually similar to the ground truth, showing similar divergence values?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_glyph/GS/rti-velocity_glyph_gs.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
main/rti-velocity_glyph/GS/rti-velocity_glyph_gs.pvsm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d1e8b0d845ee37765be8fc08796cbe220dff6a4e9d8a5ed8aa7ca7aacc7d58a
|
| 3 |
+
size 288017
|
main/rti-velocity_glyph/GS/rti-velocity_glyph_gs.py
CHANGED
|
@@ -2,9 +2,9 @@ import os
|
|
| 2 |
from paraview.simple import *
|
| 3 |
|
| 4 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', '
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, '
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, '
|
| 8 |
|
| 9 |
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
reader.UpdatePipeline()
|
|
@@ -37,8 +37,10 @@ magLUT.ApplyPreset('Viridis (matplotlib)', True)
|
|
| 37 |
|
| 38 |
glyphDisplay.SetScalarBarVisibility(renderView, True)
|
| 39 |
colorBar = GetScalarBar(magLUT, renderView)
|
| 40 |
-
colorBar.Title = '
|
| 41 |
colorBar.ComponentTitle = ''
|
|
|
|
|
|
|
| 42 |
|
| 43 |
renderView.CameraPosition = [63.5, 250.0, 63.5]
|
| 44 |
renderView.CameraFocalPoint = [63.5, 64.0, 63.5]
|
|
|
|
| 2 |
from paraview.simple import *
|
| 3 |
|
| 4 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
+
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'data', 'rti-velocity_glyph.vti')
|
| 6 |
+
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'rti-velocity_glyph_gs.png')
|
| 7 |
+
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'rti-velocity_glyph_gs.pvsm')
|
| 8 |
|
| 9 |
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
reader.UpdatePipeline()
|
|
|
|
| 37 |
|
| 38 |
glyphDisplay.SetScalarBarVisibility(renderView, True)
|
| 39 |
colorBar = GetScalarBar(magLUT, renderView)
|
| 40 |
+
colorBar.Title = ''
|
| 41 |
colorBar.ComponentTitle = ''
|
| 42 |
+
colorBar.TitleColor = [0.0, 0.0, 0.0]
|
| 43 |
+
colorBar.LabelColor = [0.0, 0.0, 0.0]
|
| 44 |
|
| 45 |
renderView.CameraPosition = [63.5, 250.0, 63.5]
|
| 46 |
renderView.CameraFocalPoint = [63.5, 64.0, 63.5]
|
main/rti-velocity_streakline/GS/rti-velocity_streakline_gs.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
main/rti-velocity_streakline/GS/rti-velocity_streakline_gs.pvsm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a91b48041e5913c3e608996dcc5fca9822a03c519c2ad511ff2045f70a6daab1
|
| 3 |
+
size 849385
|
main/rti-velocity_streakline/GS/rti-velocity_streakline_gs.py
CHANGED
|
@@ -3,9 +3,9 @@ import glob
|
|
| 3 |
from paraview.simple import *
|
| 4 |
|
| 5 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 6 |
-
VTI_FILES = sorted(glob.glob(os.path.join(SCRIPT_DIR, '
|
| 7 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, '
|
| 8 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, '
|
| 9 |
|
| 10 |
# Streaklines: show streamlines from injection points at multiple timesteps
|
| 11 |
|
|
@@ -76,8 +76,10 @@ vyLUT.ApplyPreset('Cool to Warm', True)
|
|
| 76 |
|
| 77 |
vyDisplay.SetScalarBarVisibility(renderView, True)
|
| 78 |
colorBar = GetScalarBar(vyLUT, renderView)
|
| 79 |
-
colorBar.Title = '
|
| 80 |
colorBar.ComponentTitle = ''
|
|
|
|
|
|
|
| 81 |
|
| 82 |
# Elevated camera
|
| 83 |
import math
|
|
|
|
| 3 |
from paraview.simple import *
|
| 4 |
|
| 5 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 6 |
+
VTI_FILES = sorted(glob.glob(os.path.join(SCRIPT_DIR, '..', 'data', 'rti-velocity_streakline_*.vti')))
|
| 7 |
+
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'rti-velocity_streakline_gs.png')
|
| 8 |
+
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'rti-velocity_streakline_gs.pvsm')
|
| 9 |
|
| 10 |
# Streaklines: show streamlines from injection points at multiple timesteps
|
| 11 |
|
|
|
|
| 76 |
|
| 77 |
vyDisplay.SetScalarBarVisibility(renderView, True)
|
| 78 |
colorBar = GetScalarBar(vyLUT, renderView)
|
| 79 |
+
colorBar.Title = ''
|
| 80 |
colorBar.ComponentTitle = ''
|
| 81 |
+
colorBar.TitleColor = [0.0, 0.0, 0.0]
|
| 82 |
+
colorBar.LabelColor = [0.0, 0.0, 0.0]
|
| 83 |
|
| 84 |
# Elevated camera
|
| 85 |
import math
|
main/rti-velocity_streamline/GS/rti-velocity_streamline_gs.png
DELETED
Git LFS Details
|
main/rti-velocity_streamline/GS/rti-velocity_streamline_gs.pvsm
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:32e8c07f9298d42f9e18c5a3cb490a5dd71ad2990575a9601cf7d390842ad6af
|
| 3 |
-
size 230654
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_streamline/GS/rti-velocity_streamline_gs.py
DELETED
|
@@ -1,48 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from paraview.simple import *
|
| 3 |
-
|
| 4 |
-
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'vti_data', 'RTI_velocity_0070.vti')
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
|
| 8 |
-
|
| 9 |
-
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
-
reader.UpdatePipeline()
|
| 11 |
-
|
| 12 |
-
stream = StreamTracer(Input=reader, SeedType='Line')
|
| 13 |
-
stream.SeedType.Point1 = [0.0, 64.0, 0.0]
|
| 14 |
-
stream.SeedType.Point2 = [127.0, 64.0, 127.0]
|
| 15 |
-
stream.SeedType.Resolution = 200
|
| 16 |
-
stream.Vectors = ['POINTS', 'vector']
|
| 17 |
-
stream.MaximumStreamlineLength = 200.0
|
| 18 |
-
stream.UpdatePipeline()
|
| 19 |
-
|
| 20 |
-
tube = Tube(Input=stream)
|
| 21 |
-
tube.Radius = 0.4
|
| 22 |
-
tube.UpdatePipeline()
|
| 23 |
-
|
| 24 |
-
renderView = GetActiveViewOrCreate('RenderView')
|
| 25 |
-
renderView.ViewSize = [1024, 1024]
|
| 26 |
-
renderView.Background = [0.02, 0.02, 0.05]
|
| 27 |
-
|
| 28 |
-
tubeDisplay = Show(tube, renderView)
|
| 29 |
-
tubeDisplay.Representation = 'Surface'
|
| 30 |
-
ColorBy(tubeDisplay, ('POINTS', 'vz'))
|
| 31 |
-
|
| 32 |
-
vzLUT = GetColorTransferFunction('vz')
|
| 33 |
-
vzLUT.ApplyPreset('Cool to Warm (Extended)', True)
|
| 34 |
-
|
| 35 |
-
tubeDisplay.SetScalarBarVisibility(renderView, True)
|
| 36 |
-
colorBar = GetScalarBar(vzLUT, renderView)
|
| 37 |
-
colorBar.Title = 'Vz Component'
|
| 38 |
-
colorBar.ComponentTitle = ''
|
| 39 |
-
|
| 40 |
-
renderView.CameraPosition = [200.0, 200.0, 200.0]
|
| 41 |
-
renderView.CameraFocalPoint = [63.5, 63.5, 63.5]
|
| 42 |
-
renderView.CameraViewUp = [0.0, 0.0, 1.0]
|
| 43 |
-
renderView.ResetCamera()
|
| 44 |
-
Render()
|
| 45 |
-
|
| 46 |
-
SaveScreenshot(OUTPUT_IMG, renderView, ImageResolution=[1024, 1024])
|
| 47 |
-
SaveState(OUTPUT_STATE)
|
| 48 |
-
print(f"Task 06 done: {OUTPUT_IMG}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_streamline/data/rti-velocity_streamline.vti
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2d4e97f14322a56df10aa5bb46156b2f68af485df51513c07264bd0dc48f3d40
|
| 3 |
-
size 78294594
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_streamline/task_description.txt
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
Load the Rayleigh-Taylor instability velocity field dataset from "rti-velocity_streamline/data/rti-velocity_streamline.vti" (VTI format, 128x128x128 grid).
|
| 2 |
-
Generate streamlines seeded from a plane at y=64 (using a Point Cloud seed with 200 points distributed on the xz-plane at y=64).
|
| 3 |
-
Color the streamlines by the vz component using a 'Cool to Warm (Extended)' diverging colormap. Render streamlines as tubes with radius 0.4.
|
| 4 |
-
Add a color bar labeled 'Vz Component'.
|
| 5 |
-
Dark background (RGB: 0.02, 0.02, 0.05). Use an isometric camera view. Render at 1024x1024.
|
| 6 |
-
Save the paraview state as "rti-velocity_streamline/results/{agent_mode}/rti-velocity_streamline.pvsm".
|
| 7 |
-
Save the visualization image as "rti-velocity_streamline/results/{agent_mode}/rti-velocity_streamline.png".
|
| 8 |
-
(Optional, if use python script) Save the python script as "rti-velocity_streamline/results/{agent_mode}/rti-velocity_streamline.py".
|
| 9 |
-
Do not save any other files, and always save the visualization image.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_streamline/visualization_goals.txt
DELETED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
1) Streamlines seeded from y=64 plane region, with similar pattern compared to groundtruth
|
| 2 |
-
2) Streamlines rendered as tubes
|
| 3 |
-
3) Color by vz with Cool to Warm diverging colormap
|
| 4 |
-
4) Color bar labeled 'Vz Component'
|
| 5 |
-
5) Dark background, Isometric camera view, Output resolution 1024x1024
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
main/rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.pvsm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27ffa5bd05e97f0376bf53e108958b5b1484fc683edc9ac60c84b4d131d998a2
|
| 3 |
+
size 229459
|