Commit ·
d0f8b3a
1
Parent(s): eebd130
stream surface --> stream ribbon, fix description of twoswirls
Browse files- eval_cases/paraview/main_cases.yaml +22 -22
- main/{mhd-magfield_streamsurface/GS/mhd-magfield_streamsurface_gs.png → mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.png} +0 -0
- main/{mhd-magfield_streamsurface/GS/mhd-magfield_streamsurface_gs.pvsm → mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.pvsm} +0 -0
- main/{mhd-magfield_streamsurface/GS/mhd-magfield_streamsurface_gs.py → mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.py} +10 -10
- main/{mhd-magfield_streamsurface/data/mhd-magfield_streamsurface.vti → mhd-magfield_streamribbon/data/mhd-magfield_streamribbon.vti} +0 -0
- main/mhd-magfield_streamribbon/task_description.txt +10 -0
- main/{rti-velocity_streamsurface → mhd-magfield_streamribbon}/visualization_goals.txt +3 -3
- main/mhd-magfield_streamsurface/task_description.txt +0 -10
- main/{rti-velocity_streamsurface/GS/rti-velocity_streamsurface_gs.png → rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.png} +0 -0
- main/{rti-velocity_streamsurface/GS/rti-velocity_streamsurface_gs.pvsm → rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.pvsm} +0 -0
- main/{rti-velocity_streamsurface/GS/rti-velocity_streamsurface_gs.py → rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.py} +6 -6
- main/{rti-velocity_streamsurface/data/rti-velocity_streamsurface.vti → rti-velocity_streamribbon/data/rti-velocity_streamribbon.vti} +0 -0
- main/{rti-velocity_streamsurface → rti-velocity_streamribbon}/task_description.txt +6 -6
- main/{mhd-magfield_streamsurface → rti-velocity_streamribbon}/visualization_goals.txt +3 -3
- main/twoswirls/GS/{twoswirls_streamsurface.png → twoswirls_streamribbon.png} +0 -0
- main/twoswirls/GS/{twoswirls_streamsurface.pvsm → twoswirls_streamribbon.pvsm} +2 -2
- main/twoswirls/GS/twoswirls_streamribbon.py +101 -0
- main/twoswirls/GS/twoswirls_streamsurface.py +0 -306
- main/twoswirls/task_description.txt +4 -5
- main/twoswirls/visualization_goals.txt +2 -2
eval_cases/paraview/main_cases.yaml
CHANGED
|
@@ -1026,7 +1026,7 @@
|
|
| 1026 |
|
| 1027 |
4. Color Mapping: Is the color distribution across all slices visually similar to the ground truth?
|
| 1028 |
|
| 1029 |
-
# 33. MHD Magnetic Field Stream
|
| 1030 |
# Isothermal magnetohydrodynamic (MHD) simulations capturing compressible turbulence phenomena relevant to astrophysical systems.
|
| 1031 |
# MHD turbulence is an essential component of the solar wind, galaxy formation, and interstellar medium (ISM) dynamics.
|
| 1032 |
# The simulations model fluid dynamics governed by conservation equations for mass, momentum, and magnetic fields, exploring MHD flows across multiple regimes—subsonic and supersonic velocities, as well as sub-Alfvénic and super-Alfvénic magnetic conditions.
|
|
@@ -1034,55 +1034,55 @@
|
|
| 1034 |
# Data source: The Well (Polymathic AI)
|
| 1035 |
- vars:
|
| 1036 |
question: |
|
| 1037 |
-
Load the MHD magnetic field dataset from "mhd-
|
| 1038 |
-
Generate a stream
|
| 1039 |
-
The stream
|
| 1040 |
-
Color the stream
|
| 1041 |
Add a color bar labeled 'Magnetic Field Magnitude'.
|
| 1042 |
Use a dark navy background (RGB: 0.0, 0.0, 0.12). Set an isometric camera view. Render at 1024x1024 resolution.
|
| 1043 |
-
Save the paraview state as "mhd-
|
| 1044 |
-
Save the visualization image as "mhd-
|
| 1045 |
-
(Optional, if use python script) Save the python script as "mhd-
|
| 1046 |
Do not save any other files, and always save the visualization image.
|
| 1047 |
assert:
|
| 1048 |
- type: llm-rubric
|
| 1049 |
subtype: vision
|
| 1050 |
value: |
|
| 1051 |
-
1. Overall Visualization Goal: Does the result match the ground truth stream
|
| 1052 |
|
| 1053 |
-
2. Surface Patterns: Does the stream
|
| 1054 |
|
| 1055 |
-
3. Surface Coverage: Is the spatial extent and shape of the stream
|
| 1056 |
|
| 1057 |
4. Color Mapping: Is the color distribution across the surface visually similar to the ground truth?
|
| 1058 |
|
| 1059 |
|
| 1060 |
-
# 34. Rayleigh-Taylor Instability Stream
|
| 1061 |
# Rayleigh-Taylor instability simulations examining how varying spectral characteristics and random phase components influence the development of turbulent mixing.
|
| 1062 |
# The simulations investigate three key physical aspects: the impact of coherence on randomized initial conditions, how initial energy spectrum shapes affect resulting flow structures, and the transition from Boussinesq to non-Boussinesq regimes where mixing becomes asymmetric.
|
| 1063 |
# The dataset captures the self-similar growth of the turbulent mixing zone, enabling validation of the dimensionless mixing parameter and observation of the characteristic energy cascade.
|
| 1064 |
# Data source: The Well (Polymathic AI)
|
| 1065 |
- vars:
|
| 1066 |
question: |
|
| 1067 |
-
Load the Rayleigh-Taylor instability velocity field dataset from "rti-
|
| 1068 |
-
Generate a stream
|
| 1069 |
-
Trace the stream
|
| 1070 |
Set surface opacity to 0.85 for slight transparency. Add a color bar labeled 'Vertical Velocity (vy)'.
|
| 1071 |
Use a black background (RGB: 0.0, 0.0, 0.0).
|
| 1072 |
Set camera to view at 45 degrees elevation to show the mushroom-shaped instability structures. Render at 1024x1024 resolution.
|
| 1073 |
-
Save the paraview state as "rti-
|
| 1074 |
-
Save the visualization image as "rti-
|
| 1075 |
-
(Optional, if use python script) Save the python script as "rti-
|
| 1076 |
Do not save any other files, and always save the visualization image
|
| 1077 |
assert:
|
| 1078 |
- type: llm-rubric
|
| 1079 |
subtype: vision
|
| 1080 |
value: |
|
| 1081 |
-
1. Overall Visualization Goal: Does the result match the ground truth stream
|
| 1082 |
|
| 1083 |
-
2. Surface Patterns: Does the stream
|
| 1084 |
|
| 1085 |
-
3. Surface Coverage: Is the spatial extent and shape of the stream
|
| 1086 |
|
| 1087 |
4. Color Mapping: Is the color distribution across the surface visually similar to the ground truth?
|
| 1088 |
|
|
@@ -1127,7 +1127,7 @@
|
|
| 1127 |
- vars:
|
| 1128 |
question: |
|
| 1129 |
Load the MHD turbulence velocity field time series from "mhd-turbulence_pathsurface/data/mhd-turbulence_pathsurface_{timestep}.vti", where "timestep" in {0000, 0010, 0020, 0030, 0040} (5 timesteps, VTI format, 128x128x128 grid each).
|
| 1130 |
-
Visualize the temporal evolution by generating stream
|
| 1131 |
Use a line seed along the z-axis at x=64, y=64 (from z=40 to z=88) with 20 seed points.
|
| 1132 |
Trace streamlines bidirectionally with maximum length 150. Create ribbon surfaces from the streamlines with width 0.8.
|
| 1133 |
Apply progressive opacity (0.3 for t=0, increasing to 0.9 for t=40) to show temporal layering. Color all surfaces by velocity magnitude using the 'Viridis (matplotlib)' colormap.
|
|
|
|
| 1026 |
|
| 1027 |
4. Color Mapping: Is the color distribution across all slices visually similar to the ground truth?
|
| 1028 |
|
| 1029 |
+
# 33. MHD Magnetic Field Stream Ribbon (t=20) (mhd-magfield_streamribbon)
|
| 1030 |
# Isothermal magnetohydrodynamic (MHD) simulations capturing compressible turbulence phenomena relevant to astrophysical systems.
|
| 1031 |
# MHD turbulence is an essential component of the solar wind, galaxy formation, and interstellar medium (ISM) dynamics.
|
| 1032 |
# The simulations model fluid dynamics governed by conservation equations for mass, momentum, and magnetic fields, exploring MHD flows across multiple regimes—subsonic and supersonic velocities, as well as sub-Alfvénic and super-Alfvénic magnetic conditions.
|
|
|
|
| 1034 |
# Data source: The Well (Polymathic AI)
|
| 1035 |
- vars:
|
| 1036 |
question: |
|
| 1037 |
+
Load the MHD magnetic field dataset from "mhd-magfield_streamribbon/data/mhd-magfield_streamribbon.vti" (VTI format, 128x128x128 grid with components bx, by, bz).
|
| 1038 |
+
Generate a stream ribbon seeded from a line source along the y-axis at x=64, z=64 (from y=20 to y=108), with 30 seed points.
|
| 1039 |
+
The stream ribbon should be traced in both forward and backward directions along the magnetic field lines.
|
| 1040 |
+
Color the stream ribbon by magnetic field magnitude using the 'Cool to Warm' colormap. Enable surface lighting with specular reflection for better 3D perception.
|
| 1041 |
Add a color bar labeled 'Magnetic Field Magnitude'.
|
| 1042 |
Use a dark navy background (RGB: 0.0, 0.0, 0.12). Set an isometric camera view. Render at 1024x1024 resolution.
|
| 1043 |
+
Save the paraview state as "mhd-magfield_streamribbon/results/{agent_mode}/mhd-magfield_streamribbon.pvsm".
|
| 1044 |
+
Save the visualization image as "mhd-magfield_streamribbon/results/{agent_mode}/mhd-magfield_streamribbon.png".
|
| 1045 |
+
(Optional, if use python script) Save the python script as "mhd-magfield_streamribbon/results/{agent_mode}/mhd-magfield_streamribbon.py".
|
| 1046 |
Do not save any other files, and always save the visualization image.
|
| 1047 |
assert:
|
| 1048 |
- type: llm-rubric
|
| 1049 |
subtype: vision
|
| 1050 |
value: |
|
| 1051 |
+
1. Overall Visualization Goal: Does the result match the ground truth stream ribbon visualization of the MHD magnetic field?
|
| 1052 |
|
| 1053 |
+
2. Surface Patterns: Does the stream ribbon show similar flow patterns and structures as the ground truth?
|
| 1054 |
|
| 1055 |
+
3. Surface Coverage: Is the spatial extent and shape of the stream ribbon similar to the ground truth?
|
| 1056 |
|
| 1057 |
4. Color Mapping: Is the color distribution across the surface visually similar to the ground truth?
|
| 1058 |
|
| 1059 |
|
| 1060 |
+
# 34. Rayleigh-Taylor Instability Stream Ribbon (t=60) (rti-velocity_streamribbon)
|
| 1061 |
# Rayleigh-Taylor instability simulations examining how varying spectral characteristics and random phase components influence the development of turbulent mixing.
|
| 1062 |
# The simulations investigate three key physical aspects: the impact of coherence on randomized initial conditions, how initial energy spectrum shapes affect resulting flow structures, and the transition from Boussinesq to non-Boussinesq regimes where mixing becomes asymmetric.
|
| 1063 |
# The dataset captures the self-similar growth of the turbulent mixing zone, enabling validation of the dimensionless mixing parameter and observation of the characteristic energy cascade.
|
| 1064 |
# Data source: The Well (Polymathic AI)
|
| 1065 |
- vars:
|
| 1066 |
question: |
|
| 1067 |
+
Load the Rayleigh-Taylor instability velocity field dataset from "rti-velocity_streamribbon/data/rti-velocity_streamribbon.vti" (VTI format, 128x128x128 grid).
|
| 1068 |
+
Generate a stream ribbon seeded from a circular ring at y=64 (the mixing interface), centered at x=64, z=64 with radius 30, using 40 seed points distributed around the circle.
|
| 1069 |
+
Trace the stream ribbon in both directions along the velocity field. Color the stream ribbon by the vy (vertical velocity) component using the 'Cool to Warm (Extended)' diverging colormap centered at zero.
|
| 1070 |
Set surface opacity to 0.85 for slight transparency. Add a color bar labeled 'Vertical Velocity (vy)'.
|
| 1071 |
Use a black background (RGB: 0.0, 0.0, 0.0).
|
| 1072 |
Set camera to view at 45 degrees elevation to show the mushroom-shaped instability structures. Render at 1024x1024 resolution.
|
| 1073 |
+
Save the paraview state as "rti-velocity_streamribbon/results/{agent_mode}/rti-velocity_streamribbon.pvsm".
|
| 1074 |
+
Save the visualization image as "rti-velocity_streamribbon/results/{agent_mode}/rti-velocity_streamribbon.png".
|
| 1075 |
+
(Optional, if use python script) Save the python script as "rti-velocity_streamribbon/results/{agent_mode}/rti-velocity_streamribbon.py".
|
| 1076 |
Do not save any other files, and always save the visualization image
|
| 1077 |
assert:
|
| 1078 |
- type: llm-rubric
|
| 1079 |
subtype: vision
|
| 1080 |
value: |
|
| 1081 |
+
1. Overall Visualization Goal: Does the result match the ground truth stream ribbon visualization of the RTI velocity field?
|
| 1082 |
|
| 1083 |
+
2. Surface Patterns: Does the stream ribbon show similar flow patterns and structures as the ground truth?
|
| 1084 |
|
| 1085 |
+
3. Surface Coverage: Is the spatial extent and shape of the stream ribbon similar to the ground truth?
|
| 1086 |
|
| 1087 |
4. Color Mapping: Is the color distribution across the surface visually similar to the ground truth?
|
| 1088 |
|
|
|
|
| 1127 |
- vars:
|
| 1128 |
question: |
|
| 1129 |
Load the MHD turbulence velocity field time series from "mhd-turbulence_pathsurface/data/mhd-turbulence_pathsurface_{timestep}.vti", where "timestep" in {0000, 0010, 0020, 0030, 0040} (5 timesteps, VTI format, 128x128x128 grid each).
|
| 1130 |
+
Visualize the temporal evolution by generating stream ribbons (ribbons) from each timestep with varying opacity.
|
| 1131 |
Use a line seed along the z-axis at x=64, y=64 (from z=40 to z=88) with 20 seed points.
|
| 1132 |
Trace streamlines bidirectionally with maximum length 150. Create ribbon surfaces from the streamlines with width 0.8.
|
| 1133 |
Apply progressive opacity (0.3 for t=0, increasing to 0.9 for t=40) to show temporal layering. Color all surfaces by velocity magnitude using the 'Viridis (matplotlib)' colormap.
|
main/{mhd-magfield_streamsurface/GS/mhd-magfield_streamsurface_gs.png → mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.png}
RENAMED
|
File without changes
|
main/{mhd-magfield_streamsurface/GS/mhd-magfield_streamsurface_gs.pvsm → mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.pvsm}
RENAMED
|
File without changes
|
main/{mhd-magfield_streamsurface/GS/mhd-magfield_streamsurface_gs.py → mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.py}
RENAMED
|
@@ -9,18 +9,18 @@ OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
|
|
| 9 |
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
reader.UpdatePipeline()
|
| 11 |
|
| 12 |
-
# Stream
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
|
| 22 |
# Create ribbon/surface from streamlines
|
| 23 |
-
ribbon = Ribbon(Input=
|
| 24 |
ribbon.Scalars = ['POINTS', 'magnitude']
|
| 25 |
ribbon.Width = 1.5
|
| 26 |
ribbon.UpdatePipeline()
|
|
|
|
| 9 |
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
reader.UpdatePipeline()
|
| 11 |
|
| 12 |
+
# Stream ribbon using StreamTracer with Line seed
|
| 13 |
+
streamRibbon = StreamTracer(Input=reader, SeedType='Line')
|
| 14 |
+
streamRibbon.SeedType.Point1 = [64.0, 20.0, 64.0]
|
| 15 |
+
streamRibbon.SeedType.Point2 = [64.0, 108.0, 64.0]
|
| 16 |
+
streamRibbon.SeedType.Resolution = 30
|
| 17 |
+
streamRibbon.Vectors = ['POINTS', 'vector']
|
| 18 |
+
streamRibbon.IntegrationDirection = 'BOTH'
|
| 19 |
+
streamRibbon.MaximumStreamlineLength = 300.0
|
| 20 |
+
streamRibbon.UpdatePipeline()
|
| 21 |
|
| 22 |
# Create ribbon/surface from streamlines
|
| 23 |
+
ribbon = Ribbon(Input=streamRibbon)
|
| 24 |
ribbon.Scalars = ['POINTS', 'magnitude']
|
| 25 |
ribbon.Width = 1.5
|
| 26 |
ribbon.UpdatePipeline()
|
main/{mhd-magfield_streamsurface/data/mhd-magfield_streamsurface.vti → mhd-magfield_streamribbon/data/mhd-magfield_streamribbon.vti}
RENAMED
|
File without changes
|
main/mhd-magfield_streamribbon/task_description.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Load the MHD magnetic field dataset from "mhd-magfield_streamribbon/data/mhd-magfield_streamribbon.vti" (VTI format, 128x128x128 grid with components bx, by, bz).
|
| 2 |
+
Generate a stream ribbon seeded from a line source along the y-axis at x=64, z=64 (from y=20 to y=108), with 30 seed points.
|
| 3 |
+
The stream ribbon should be traced in both forward and backward directions along the magnetic field lines.
|
| 4 |
+
Color the stream ribbon by magnetic field magnitude using the 'Cool to Warm' colormap. Enable surface lighting with specular reflection for better 3D perception.
|
| 5 |
+
Add a color bar labeled 'Magnetic Field Magnitude'.
|
| 6 |
+
Use a dark navy background (RGB: 0.0, 0.0, 0.12). Set an isometric camera view. Render at 1024x1024 resolution.
|
| 7 |
+
Save the paraview state as "mhd-magfield_streamribbon/results/{agent_mode}/mhd-magfield_streamribbon.pvsm".
|
| 8 |
+
Save the visualization image as "mhd-magfield_streamribbon/results/{agent_mode}/mhd-magfield_streamribbon.png".
|
| 9 |
+
(Optional, if use python script) Save the python script as "mhd-magfield_streamribbon/results/{agent_mode}/mhd-magfield_streamribbon.py".
|
| 10 |
+
Do not save any other files, and always save the visualization image.
|
main/{rti-velocity_streamsurface → mhd-magfield_streamribbon}/visualization_goals.txt
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
1. Overall Visualization Goal: Does the result match the ground truth stream
|
| 2 |
|
| 3 |
-
2. Surface Patterns: Does the stream
|
| 4 |
|
| 5 |
-
3. Surface Coverage: Is the spatial extent and shape of the stream
|
| 6 |
|
| 7 |
4. Color Mapping: Is the color distribution across the surface visually similar to the ground truth?
|
|
|
|
| 1 |
+
1. Overall Visualization Goal: Does the result match the ground truth stream ribbon visualization of the MHD magnetic field?
|
| 2 |
|
| 3 |
+
2. Surface Patterns: Does the stream ribbon show similar flow patterns and structures as the ground truth?
|
| 4 |
|
| 5 |
+
3. Surface Coverage: Is the spatial extent and shape of the stream ribbon similar to the ground truth?
|
| 6 |
|
| 7 |
4. Color Mapping: Is the color distribution across the surface visually similar to the ground truth?
|
main/mhd-magfield_streamsurface/task_description.txt
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
Load the MHD magnetic field dataset from "mhd-magfield_streamsurface/data/mhd-magfield_streamsurface.vti" (VTI format, 128x128x128 grid with components bx, by, bz).
|
| 2 |
-
Generate a stream surface seeded from a line source along the y-axis at x=64, z=64 (from y=20 to y=108), with 30 seed points.
|
| 3 |
-
The stream surface should be traced in both forward and backward directions along the magnetic field lines.
|
| 4 |
-
Color the stream surface by magnetic field magnitude using the 'Cool to Warm' colormap. Enable surface lighting with specular reflection for better 3D perception.
|
| 5 |
-
Add a color bar labeled 'Magnetic Field Magnitude'.
|
| 6 |
-
Use a dark navy background (RGB: 0.0, 0.0, 0.12). Set an isometric camera view. Render at 1024x1024 resolution.
|
| 7 |
-
Save the paraview state as "mhd-magfield_streamsurface/results/{agent_mode}/mhd-magfield_streamsurface.pvsm".
|
| 8 |
-
Save the visualization image as "mhd-magfield_streamsurface/results/{agent_mode}/mhd-magfield_streamsurface.png".
|
| 9 |
-
(Optional, if use python script) Save the python script as "mhd-magfield_streamsurface/results/{agent_mode}/mhd-magfield_streamsurface.py".
|
| 10 |
-
Do not save any other files, and always save the visualization image.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/{rti-velocity_streamsurface/GS/rti-velocity_streamsurface_gs.png → rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.png}
RENAMED
|
File without changes
|
main/{rti-velocity_streamsurface/GS/rti-velocity_streamsurface_gs.pvsm → rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.pvsm}
RENAMED
|
File without changes
|
main/{rti-velocity_streamsurface/GS/rti-velocity_streamsurface_gs.py → rti-velocity_streamribbon/GS/rti-velocity_streamribbon_gs.py}
RENAMED
|
@@ -30,14 +30,14 @@ output.SetPoints(points)
|
|
| 30 |
circleSource.UpdatePipeline()
|
| 31 |
|
| 32 |
# Stream tracer with point cloud seed from circle
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
# Create ribbon surface
|
| 40 |
-
ribbon = Ribbon(Input=
|
| 41 |
ribbon.Scalars = ['POINTS', 'vy']
|
| 42 |
ribbon.Width = 1.2
|
| 43 |
ribbon.UpdatePipeline()
|
|
|
|
| 30 |
circleSource.UpdatePipeline()
|
| 31 |
|
| 32 |
# Stream tracer with point cloud seed from circle
|
| 33 |
+
streamRibbon = StreamTracerWithCustomSource(Input=reader, SeedSource=circleSource)
|
| 34 |
+
streamRibbon.Vectors = ['POINTS', 'vector']
|
| 35 |
+
streamRibbon.IntegrationDirection = 'BOTH'
|
| 36 |
+
streamRibbon.MaximumStreamlineLength = 200.0
|
| 37 |
+
streamRibbon.UpdatePipeline()
|
| 38 |
|
| 39 |
# Create ribbon surface
|
| 40 |
+
ribbon = Ribbon(Input=streamRibbon)
|
| 41 |
ribbon.Scalars = ['POINTS', 'vy']
|
| 42 |
ribbon.Width = 1.2
|
| 43 |
ribbon.UpdatePipeline()
|
main/{rti-velocity_streamsurface/data/rti-velocity_streamsurface.vti → rti-velocity_streamribbon/data/rti-velocity_streamribbon.vti}
RENAMED
|
File without changes
|
main/{rti-velocity_streamsurface → rti-velocity_streamribbon}/task_description.txt
RENAMED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
Load the Rayleigh-Taylor instability velocity field dataset from "rti-
|
| 2 |
-
Generate a stream
|
| 3 |
-
Trace the stream
|
| 4 |
Set surface opacity to 0.85 for slight transparency. Add a color bar labeled 'Vertical Velocity (vy)'.
|
| 5 |
Use a black background (RGB: 0.0, 0.0, 0.0).
|
| 6 |
Set camera to view at 45 degrees elevation to show the mushroom-shaped instability structures. Render at 1024x1024 resolution.
|
| 7 |
-
Save the paraview state as "rti-
|
| 8 |
-
Save the visualization image as "rti-
|
| 9 |
-
(Optional, if use python script) Save the python script as "rti-
|
| 10 |
Do not save any other files, and always save the visualization image
|
|
|
|
| 1 |
+
Load the Rayleigh-Taylor instability velocity field dataset from "rti-velocity_streamribbon/data/rti-velocity_streamribbon.vti" (VTI format, 128x128x128 grid).
|
| 2 |
+
Generate a stream ribbon seeded from a circular ring at y=64 (the mixing interface), centered at x=64, z=64 with radius 30, using 40 seed points distributed around the circle.
|
| 3 |
+
Trace the stream ribbon in both directions along the velocity field. Color the stream ribbon by the vy (vertical velocity) component using the 'Cool to Warm (Extended)' diverging colormap centered at zero.
|
| 4 |
Set surface opacity to 0.85 for slight transparency. Add a color bar labeled 'Vertical Velocity (vy)'.
|
| 5 |
Use a black background (RGB: 0.0, 0.0, 0.0).
|
| 6 |
Set camera to view at 45 degrees elevation to show the mushroom-shaped instability structures. Render at 1024x1024 resolution.
|
| 7 |
+
Save the paraview state as "rti-velocity_streamribbon/results/{agent_mode}/rti-velocity_streamribbon.pvsm".
|
| 8 |
+
Save the visualization image as "rti-velocity_streamribbon/results/{agent_mode}/rti-velocity_streamribbon.png".
|
| 9 |
+
(Optional, if use python script) Save the python script as "rti-velocity_streamribbon/results/{agent_mode}/rti-velocity_streamribbon.py".
|
| 10 |
Do not save any other files, and always save the visualization image
|
main/{mhd-magfield_streamsurface → rti-velocity_streamribbon}/visualization_goals.txt
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
1. Overall Visualization Goal: Does the result match the ground truth stream
|
| 2 |
|
| 3 |
-
2. Surface Patterns: Does the stream
|
| 4 |
|
| 5 |
-
3. Surface Coverage: Is the spatial extent and shape of the stream
|
| 6 |
|
| 7 |
4. Color Mapping: Is the color distribution across the surface visually similar to the ground truth?
|
|
|
|
| 1 |
+
1. Overall Visualization Goal: Does the result match the ground truth stream ribbon visualization of the RTI velocity field?
|
| 2 |
|
| 3 |
+
2. Surface Patterns: Does the stream ribbon show similar flow patterns and structures as the ground truth?
|
| 4 |
|
| 5 |
+
3. Surface Coverage: Is the spatial extent and shape of the stream ribbon similar to the ground truth?
|
| 6 |
|
| 7 |
4. Color Mapping: Is the color distribution across the surface visually similar to the ground truth?
|
main/twoswirls/GS/{twoswirls_streamsurface.png → twoswirls_streamribbon.png}
RENAMED
|
File without changes
|
main/twoswirls/GS/{twoswirls_streamsurface.pvsm → twoswirls_streamribbon.pvsm}
RENAMED
|
@@ -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:ec066aa253c03220eb8e304ef99e44d8bedd949d46251a6dc64e4b0c14dbb37c
|
| 3 |
+
size 460317
|
main/twoswirls/GS/twoswirls_streamribbon.py
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from paraview.simple import *
|
| 3 |
+
|
| 4 |
+
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
+
RAW_PATH = '/home/dullpigeon/Desktop/SciVisAgentTask/SciVisAgentBench-tasks/main/twoswirls/data/twoswirls.raw'
|
| 6 |
+
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'twoswirls_streamribbon.png')
|
| 7 |
+
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'twoswirls_streamribbon.pvsm')
|
| 8 |
+
|
| 9 |
+
paraview.simple._DisableFirstRenderCameraReset()
|
| 10 |
+
|
| 11 |
+
# Load the Two Swirls vector field
|
| 12 |
+
imageReader1 = ImageReader(registrationName='ImageReader1', FileNames=[RAW_PATH])
|
| 13 |
+
imageReader1.DataScalarType = 'float'
|
| 14 |
+
imageReader1.DataByteOrder = 'LittleEndian'
|
| 15 |
+
imageReader1.NumberOfScalarComponents = 3
|
| 16 |
+
imageReader1.DataExtent = [0, 63, 0, 63, 0, 63]
|
| 17 |
+
|
| 18 |
+
# Stream Tracer 1: line seed from [16,10,32] to [16,54,32]
|
| 19 |
+
streamTracer1 = StreamTracer(registrationName='StreamTracer1', Input=imageReader1,
|
| 20 |
+
SeedType='Line')
|
| 21 |
+
streamTracer1.Vectors = ['POINTS', 'ImageFile']
|
| 22 |
+
streamTracer1.MaximumStreamlineLength = 200.0
|
| 23 |
+
streamTracer1.SeedType.Point1 = [16.0, 10.0, 32.0]
|
| 24 |
+
streamTracer1.SeedType.Point2 = [16.0, 54.0, 32.0]
|
| 25 |
+
streamTracer1.SeedType.Resolution = 25
|
| 26 |
+
|
| 27 |
+
# Ribbon 1 from Stream Tracer 1
|
| 28 |
+
ribbon1 = Ribbon(registrationName='Ribbon1', Input=streamTracer1)
|
| 29 |
+
ribbon1.Scalars = ['POINTS', 'IntegrationTime']
|
| 30 |
+
ribbon1.Vectors = ['POINTS', 'Normals']
|
| 31 |
+
ribbon1.Width = 2.5
|
| 32 |
+
|
| 33 |
+
# Stream Tracer 3: line seed from [48,10,32] to [48,54,32]
|
| 34 |
+
streamTracer3 = StreamTracer(registrationName='StreamTracer3', Input=imageReader1,
|
| 35 |
+
SeedType='Line')
|
| 36 |
+
streamTracer3.Vectors = ['POINTS', 'ImageFile']
|
| 37 |
+
streamTracer3.MaximumStreamlineLength = 200.0
|
| 38 |
+
streamTracer3.SeedType.Point1 = [48.0, 10.0, 32.0]
|
| 39 |
+
streamTracer3.SeedType.Point2 = [48.0, 54.0, 32.0]
|
| 40 |
+
streamTracer3.SeedType.Resolution = 25
|
| 41 |
+
|
| 42 |
+
# Ribbon 3 from Stream Tracer 3
|
| 43 |
+
ribbon3 = Ribbon(registrationName='Ribbon3', Input=streamTracer3)
|
| 44 |
+
ribbon3.Scalars = ['POINTS', 'IntegrationTime']
|
| 45 |
+
ribbon3.Vectors = ['POINTS', 'Normals']
|
| 46 |
+
ribbon3.Width = 2.5
|
| 47 |
+
|
| 48 |
+
# Setup render view
|
| 49 |
+
renderView1 = GetActiveViewOrCreate('RenderView')
|
| 50 |
+
renderView1.ViewSize = [1287, 991]
|
| 51 |
+
renderView1.Background = [1.0, 1.0, 1.0]
|
| 52 |
+
|
| 53 |
+
# Display Ribbon 1 (green, semi-transparent)
|
| 54 |
+
ribbon1Display = Show(ribbon1, renderView1, 'GeometryRepresentation')
|
| 55 |
+
ribbon1Display.Representation = 'Surface'
|
| 56 |
+
ribbon1Display.AmbientColor = [0.2, 0.7, 0.3]
|
| 57 |
+
ribbon1Display.ColorArrayName = ['POINTS', '']
|
| 58 |
+
ribbon1Display.DiffuseColor = [0.2, 0.7, 0.3]
|
| 59 |
+
ribbon1Display.Opacity = 0.35
|
| 60 |
+
ribbon1Display.Specular = 0.4
|
| 61 |
+
ribbon1Display.SpecularPower = 30.0
|
| 62 |
+
ribbon1Display.Ambient = 0.15
|
| 63 |
+
ribbon1Display.Diffuse = 0.75
|
| 64 |
+
|
| 65 |
+
# Display Ribbon 3 (blue, semi-transparent)
|
| 66 |
+
ribbon3Display = Show(ribbon3, renderView1, 'GeometryRepresentation')
|
| 67 |
+
ribbon3Display.Representation = 'Surface'
|
| 68 |
+
ribbon3Display.AmbientColor = [0.2, 0.4, 0.85]
|
| 69 |
+
ribbon3Display.ColorArrayName = ['POINTS', '']
|
| 70 |
+
ribbon3Display.DiffuseColor = [0.2, 0.4, 0.85]
|
| 71 |
+
ribbon3Display.Opacity = 0.35
|
| 72 |
+
ribbon3Display.Specular = 0.4
|
| 73 |
+
ribbon3Display.SpecularPower = 30.0
|
| 74 |
+
ribbon3Display.Ambient = 0.15
|
| 75 |
+
ribbon3Display.Diffuse = 0.75
|
| 76 |
+
|
| 77 |
+
# Display bounding box outline (black, opacity 0.3)
|
| 78 |
+
imageReader1Display = Show(imageReader1, renderView1, 'UniformGridRepresentation')
|
| 79 |
+
imageReader1Display.Representation = 'Outline'
|
| 80 |
+
imageReader1Display.AmbientColor = [0.0, 0.0, 0.0]
|
| 81 |
+
imageReader1Display.ColorArrayName = ['POINTS', '']
|
| 82 |
+
imageReader1Display.DiffuseColor = [0.0, 0.0, 0.0]
|
| 83 |
+
imageReader1Display.Opacity = 0.3
|
| 84 |
+
|
| 85 |
+
# Hide stream tracers (only show ribbons and outline)
|
| 86 |
+
Hide(streamTracer1, renderView1)
|
| 87 |
+
Hide(streamTracer3, renderView1)
|
| 88 |
+
|
| 89 |
+
# Camera
|
| 90 |
+
renderView1.CameraPosition = [30.506557822227478, -154.18388926659551, 144.98737090119556]
|
| 91 |
+
renderView1.CameraFocalPoint = [30.506557822227478, 31.5, 30.91251516342163]
|
| 92 |
+
renderView1.CameraViewUp = [0.0, 0.52999894000318, 0.847998304005088]
|
| 93 |
+
renderView1.CameraParallelScale = 56.403303005016504
|
| 94 |
+
|
| 95 |
+
Render()
|
| 96 |
+
|
| 97 |
+
SaveScreenshot(OUTPUT_IMG, renderView1, ImageResolution=[1287, 991])
|
| 98 |
+
print(f"Screenshot saved to: {OUTPUT_IMG}")
|
| 99 |
+
|
| 100 |
+
SaveState(OUTPUT_STATE)
|
| 101 |
+
print(f"State saved to: {OUTPUT_STATE}")
|
main/twoswirls/GS/twoswirls_streamsurface.py
DELETED
|
@@ -1,306 +0,0 @@
|
|
| 1 |
-
# state file generated using paraview version 5.12.1
|
| 2 |
-
import paraview
|
| 3 |
-
paraview.compatibility.major = 5
|
| 4 |
-
paraview.compatibility.minor = 12
|
| 5 |
-
|
| 6 |
-
#### import the simple module from the paraview
|
| 7 |
-
from paraview.simple import *
|
| 8 |
-
#### disable automatic camera reset on 'Show'
|
| 9 |
-
paraview.simple._DisableFirstRenderCameraReset()
|
| 10 |
-
|
| 11 |
-
# ----------------------------------------------------------------
|
| 12 |
-
# setup views used in the visualization
|
| 13 |
-
# ----------------------------------------------------------------
|
| 14 |
-
|
| 15 |
-
# get the material library
|
| 16 |
-
materialLibrary1 = GetMaterialLibrary()
|
| 17 |
-
|
| 18 |
-
# Create a new 'Render View'
|
| 19 |
-
renderView1 = CreateView('RenderView')
|
| 20 |
-
renderView1.ViewSize = [1287, 991]
|
| 21 |
-
renderView1.AxesGrid = 'Grid Axes 3D Actor'
|
| 22 |
-
renderView1.KeyLightWarmth = 0.5
|
| 23 |
-
renderView1.KeyLightIntensity = 0.9
|
| 24 |
-
renderView1.StereoType = 'Crystal Eyes'
|
| 25 |
-
renderView1.CameraPosition = [30.506557822227478, -154.18388926659551, 144.98737090119556]
|
| 26 |
-
renderView1.CameraFocalPoint = [30.506557822227478, 31.5, 30.91251516342163]
|
| 27 |
-
renderView1.CameraViewUp = [0.0, 0.52999894000318, 0.847998304005088]
|
| 28 |
-
renderView1.CameraFocalDisk = 1.0
|
| 29 |
-
renderView1.CameraParallelScale = 56.403303005016504
|
| 30 |
-
renderView1.LegendGrid = 'Legend Grid Actor'
|
| 31 |
-
renderView1.Background = [1.0, 1.0, 1.0]
|
| 32 |
-
renderView1.BackEnd = 'OSPRay raycaster'
|
| 33 |
-
renderView1.OSPRayMaterialLibrary = materialLibrary1
|
| 34 |
-
|
| 35 |
-
SetActiveView(None)
|
| 36 |
-
|
| 37 |
-
# ----------------------------------------------------------------
|
| 38 |
-
# setup view layouts
|
| 39 |
-
# ----------------------------------------------------------------
|
| 40 |
-
|
| 41 |
-
# create new layout object 'Layout'
|
| 42 |
-
layout = CreateLayout(name='Layout')
|
| 43 |
-
layout.AssignView(0, renderView1)
|
| 44 |
-
layout.SetSize(1287, 991)
|
| 45 |
-
|
| 46 |
-
# ----------------------------------------------------------------
|
| 47 |
-
# restore active view
|
| 48 |
-
SetActiveView(renderView1)
|
| 49 |
-
# ----------------------------------------------------------------
|
| 50 |
-
|
| 51 |
-
# ----------------------------------------------------------------
|
| 52 |
-
# setup the data processing pipelines
|
| 53 |
-
# ----------------------------------------------------------------
|
| 54 |
-
|
| 55 |
-
# create a new 'Image Reader'
|
| 56 |
-
imageReader1 = ImageReader(registrationName='ImageReader1', FileNames=['/home/dullpigeon/Desktop/SciVisAgentTask/twoswirls/twoswirls.raw'])
|
| 57 |
-
imageReader1.DataScalarType = 'float'
|
| 58 |
-
imageReader1.DataByteOrder = 'LittleEndian'
|
| 59 |
-
imageReader1.NumberOfScalarComponents = 3
|
| 60 |
-
imageReader1.DataExtent = [0, 63, 0, 63, 0, 63]
|
| 61 |
-
|
| 62 |
-
# create a new 'Stream Tracer'
|
| 63 |
-
streamTracer1 = StreamTracer(registrationName='StreamTracer1', Input=imageReader1,
|
| 64 |
-
SeedType='Line')
|
| 65 |
-
streamTracer1.Vectors = ['POINTS', 'ImageFile']
|
| 66 |
-
streamTracer1.MaximumStreamlineLength = 200.0
|
| 67 |
-
|
| 68 |
-
# init the 'Line' selected for 'SeedType'
|
| 69 |
-
streamTracer1.SeedType.Point1 = [16.0, 10.0, 32.0]
|
| 70 |
-
streamTracer1.SeedType.Point2 = [16.0, 54.0, 32.0]
|
| 71 |
-
streamTracer1.SeedType.Resolution = 25
|
| 72 |
-
|
| 73 |
-
# create a new 'Stream Tracer'
|
| 74 |
-
streamTracer3 = StreamTracer(registrationName='StreamTracer3', Input=imageReader1,
|
| 75 |
-
SeedType='Line')
|
| 76 |
-
streamTracer3.Vectors = ['POINTS', 'ImageFile']
|
| 77 |
-
streamTracer3.MaximumStreamlineLength = 200.0
|
| 78 |
-
|
| 79 |
-
# init the 'Line' selected for 'SeedType'
|
| 80 |
-
streamTracer3.SeedType.Point1 = [48.0, 10.0, 32.0]
|
| 81 |
-
streamTracer3.SeedType.Point2 = [48.0, 54.0, 32.0]
|
| 82 |
-
streamTracer3.SeedType.Resolution = 25
|
| 83 |
-
|
| 84 |
-
# create a new 'Ribbon'
|
| 85 |
-
ribbon3 = Ribbon(registrationName='Ribbon3', Input=streamTracer3)
|
| 86 |
-
ribbon3.Scalars = ['POINTS', 'IntegrationTime']
|
| 87 |
-
ribbon3.Vectors = ['POINTS', 'Normals']
|
| 88 |
-
ribbon3.Width = 2.5
|
| 89 |
-
|
| 90 |
-
# create a new 'Stream Tracer'
|
| 91 |
-
streamTracer4 = StreamTracer(registrationName='StreamTracer4', Input=imageReader1,
|
| 92 |
-
SeedType='Line')
|
| 93 |
-
streamTracer4.Vectors = ['POINTS', 'ImageFile']
|
| 94 |
-
streamTracer4.MaximumStreamlineLength = 200.0
|
| 95 |
-
|
| 96 |
-
# init the 'Line' selected for 'SeedType'
|
| 97 |
-
streamTracer4.SeedType.Point1 = [44.0, 32.0, 10.0]
|
| 98 |
-
streamTracer4.SeedType.Point2 = [44.0, 32.0, 54.0]
|
| 99 |
-
streamTracer4.SeedType.Resolution = 25
|
| 100 |
-
|
| 101 |
-
# create a new 'Ribbon'
|
| 102 |
-
ribbon4 = Ribbon(registrationName='Ribbon4', Input=streamTracer4)
|
| 103 |
-
ribbon4.Scalars = ['POINTS', 'IntegrationTime']
|
| 104 |
-
ribbon4.Vectors = ['POINTS', 'Normals']
|
| 105 |
-
ribbon4.Width = 2.5
|
| 106 |
-
|
| 107 |
-
# create a new 'Stream Tracer'
|
| 108 |
-
streamTracer2 = StreamTracer(registrationName='StreamTracer2', Input=imageReader1,
|
| 109 |
-
SeedType='Line')
|
| 110 |
-
streamTracer2.Vectors = ['POINTS', 'ImageFile']
|
| 111 |
-
streamTracer2.MaximumStreamlineLength = 200.0
|
| 112 |
-
|
| 113 |
-
# init the 'Line' selected for 'SeedType'
|
| 114 |
-
streamTracer2.SeedType.Point1 = [20.0, 32.0, 10.0]
|
| 115 |
-
streamTracer2.SeedType.Point2 = [20.0, 32.0, 54.0]
|
| 116 |
-
streamTracer2.SeedType.Resolution = 25
|
| 117 |
-
|
| 118 |
-
# create a new 'Ribbon'
|
| 119 |
-
ribbon2 = Ribbon(registrationName='Ribbon2', Input=streamTracer2)
|
| 120 |
-
ribbon2.Scalars = ['POINTS', 'IntegrationTime']
|
| 121 |
-
ribbon2.Vectors = ['POINTS', 'Normals']
|
| 122 |
-
ribbon2.Width = 2.5
|
| 123 |
-
|
| 124 |
-
# create a new 'Ribbon'
|
| 125 |
-
ribbon1 = Ribbon(registrationName='Ribbon1', Input=streamTracer1)
|
| 126 |
-
ribbon1.Scalars = ['POINTS', 'IntegrationTime']
|
| 127 |
-
ribbon1.Vectors = ['POINTS', 'Normals']
|
| 128 |
-
ribbon1.Width = 2.5
|
| 129 |
-
|
| 130 |
-
# ----------------------------------------------------------------
|
| 131 |
-
# setup the visualization in view 'renderView1'
|
| 132 |
-
# ----------------------------------------------------------------
|
| 133 |
-
|
| 134 |
-
# show data from ribbon1
|
| 135 |
-
ribbon1Display = Show(ribbon1, renderView1, 'GeometryRepresentation')
|
| 136 |
-
|
| 137 |
-
# trace defaults for the display properties.
|
| 138 |
-
ribbon1Display.Representation = 'Surface'
|
| 139 |
-
ribbon1Display.AmbientColor = [0.2, 0.7, 0.3]
|
| 140 |
-
ribbon1Display.ColorArrayName = ['POINTS', '']
|
| 141 |
-
ribbon1Display.DiffuseColor = [0.2, 0.7, 0.3]
|
| 142 |
-
ribbon1Display.Opacity = 0.35
|
| 143 |
-
ribbon1Display.Specular = 0.4
|
| 144 |
-
ribbon1Display.SpecularPower = 30.0
|
| 145 |
-
ribbon1Display.Ambient = 0.15
|
| 146 |
-
ribbon1Display.Diffuse = 0.75
|
| 147 |
-
ribbon1Display.SelectTCoordArray = 'None'
|
| 148 |
-
ribbon1Display.SelectNormalArray = 'None'
|
| 149 |
-
ribbon1Display.SelectTangentArray = 'None'
|
| 150 |
-
ribbon1Display.OSPRayScaleArray = 'ImageFile'
|
| 151 |
-
ribbon1Display.OSPRayScaleFunction = 'Piecewise Function'
|
| 152 |
-
ribbon1Display.Assembly = ''
|
| 153 |
-
ribbon1Display.SelectOrientationVectors = 'Normals'
|
| 154 |
-
ribbon1Display.ScaleFactor = 5.75545814037323
|
| 155 |
-
ribbon1Display.SelectScaleArray = 'ImageFile'
|
| 156 |
-
ribbon1Display.GlyphType = 'Arrow'
|
| 157 |
-
ribbon1Display.GlyphTableIndexArray = 'ImageFile'
|
| 158 |
-
ribbon1Display.GaussianRadius = 0.2877729070186615
|
| 159 |
-
ribbon1Display.SetScaleArray = ['POINTS', 'ImageFile']
|
| 160 |
-
ribbon1Display.ScaleTransferFunction = 'Piecewise Function'
|
| 161 |
-
ribbon1Display.OpacityArray = ['POINTS', 'ImageFile']
|
| 162 |
-
ribbon1Display.OpacityTransferFunction = 'Piecewise Function'
|
| 163 |
-
ribbon1Display.DataAxesGrid = 'Grid Axes Representation'
|
| 164 |
-
ribbon1Display.PolarAxes = 'Polar Axes Representation'
|
| 165 |
-
ribbon1Display.SelectInputVectors = ['POINTS', 'Normals']
|
| 166 |
-
ribbon1Display.WriteLog = ''
|
| 167 |
-
|
| 168 |
-
# init the 'Piecewise Function' selected for 'ScaleTransferFunction'
|
| 169 |
-
ribbon1Display.ScaleTransferFunction.Points = [-0.2651785612106323, 0.0, 0.5, 0.0, 0.4244382977485657, 1.0, 0.5, 0.0]
|
| 170 |
-
|
| 171 |
-
# init the 'Piecewise Function' selected for 'OpacityTransferFunction'
|
| 172 |
-
ribbon1Display.OpacityTransferFunction.Points = [-0.2651785612106323, 0.0, 0.5, 0.0, 0.4244382977485657, 1.0, 0.5, 0.0]
|
| 173 |
-
|
| 174 |
-
# show data from ribbon3
|
| 175 |
-
ribbon3Display = Show(ribbon3, renderView1, 'GeometryRepresentation')
|
| 176 |
-
|
| 177 |
-
# trace defaults for the display properties.
|
| 178 |
-
ribbon3Display.Representation = 'Surface'
|
| 179 |
-
ribbon3Display.AmbientColor = [0.2, 0.4, 0.85]
|
| 180 |
-
ribbon3Display.ColorArrayName = ['POINTS', '']
|
| 181 |
-
ribbon3Display.DiffuseColor = [0.2, 0.4, 0.85]
|
| 182 |
-
ribbon3Display.Opacity = 0.35
|
| 183 |
-
ribbon3Display.Specular = 0.4
|
| 184 |
-
ribbon3Display.SpecularPower = 30.0
|
| 185 |
-
ribbon3Display.Ambient = 0.15
|
| 186 |
-
ribbon3Display.Diffuse = 0.75
|
| 187 |
-
ribbon3Display.SelectTCoordArray = 'None'
|
| 188 |
-
ribbon3Display.SelectNormalArray = 'None'
|
| 189 |
-
ribbon3Display.SelectTangentArray = 'None'
|
| 190 |
-
ribbon3Display.OSPRayScaleArray = 'ImageFile'
|
| 191 |
-
ribbon3Display.OSPRayScaleFunction = 'Piecewise Function'
|
| 192 |
-
ribbon3Display.Assembly = ''
|
| 193 |
-
ribbon3Display.SelectOrientationVectors = 'Normals'
|
| 194 |
-
ribbon3Display.ScaleFactor = 6.492923521995545
|
| 195 |
-
ribbon3Display.SelectScaleArray = 'ImageFile'
|
| 196 |
-
ribbon3Display.GlyphType = 'Arrow'
|
| 197 |
-
ribbon3Display.GlyphTableIndexArray = 'ImageFile'
|
| 198 |
-
ribbon3Display.GaussianRadius = 0.32464617609977725
|
| 199 |
-
ribbon3Display.SetScaleArray = ['POINTS', 'ImageFile']
|
| 200 |
-
ribbon3Display.ScaleTransferFunction = 'Piecewise Function'
|
| 201 |
-
ribbon3Display.OpacityArray = ['POINTS', 'ImageFile']
|
| 202 |
-
ribbon3Display.OpacityTransferFunction = 'Piecewise Function'
|
| 203 |
-
ribbon3Display.DataAxesGrid = 'Grid Axes Representation'
|
| 204 |
-
ribbon3Display.PolarAxes = 'Polar Axes Representation'
|
| 205 |
-
ribbon3Display.SelectInputVectors = ['POINTS', 'Normals']
|
| 206 |
-
ribbon3Display.WriteLog = ''
|
| 207 |
-
|
| 208 |
-
# init the 'Piecewise Function' selected for 'ScaleTransferFunction'
|
| 209 |
-
ribbon3Display.ScaleTransferFunction.Points = [-0.332985520362854, 0.0, 0.5, 0.0, 0.2668702304363251, 1.0, 0.5, 0.0]
|
| 210 |
-
|
| 211 |
-
# init the 'Piecewise Function' selected for 'OpacityTransferFunction'
|
| 212 |
-
ribbon3Display.OpacityTransferFunction.Points = [-0.332985520362854, 0.0, 0.5, 0.0, 0.2668702304363251, 1.0, 0.5, 0.0]
|
| 213 |
-
|
| 214 |
-
# show data from imageReader1
|
| 215 |
-
imageReader1Display = Show(imageReader1, renderView1, 'UniformGridRepresentation')
|
| 216 |
-
|
| 217 |
-
# trace defaults for the display properties.
|
| 218 |
-
imageReader1Display.Representation = 'Outline'
|
| 219 |
-
imageReader1Display.AmbientColor = [0.0, 0.0, 0.0]
|
| 220 |
-
imageReader1Display.ColorArrayName = ['POINTS', '']
|
| 221 |
-
imageReader1Display.DiffuseColor = [0.0, 0.0, 0.0]
|
| 222 |
-
imageReader1Display.Opacity = 0.3
|
| 223 |
-
imageReader1Display.SelectTCoordArray = 'None'
|
| 224 |
-
imageReader1Display.SelectNormalArray = 'None'
|
| 225 |
-
imageReader1Display.SelectTangentArray = 'None'
|
| 226 |
-
imageReader1Display.OSPRayScaleArray = 'ImageFile'
|
| 227 |
-
imageReader1Display.OSPRayScaleFunction = 'Piecewise Function'
|
| 228 |
-
imageReader1Display.Assembly = ''
|
| 229 |
-
imageReader1Display.SelectOrientationVectors = 'ImageFile'
|
| 230 |
-
imageReader1Display.ScaleFactor = 6.300000000000001
|
| 231 |
-
imageReader1Display.SelectScaleArray = 'ImageFile'
|
| 232 |
-
imageReader1Display.GlyphType = 'Arrow'
|
| 233 |
-
imageReader1Display.GlyphTableIndexArray = 'ImageFile'
|
| 234 |
-
imageReader1Display.GaussianRadius = 0.315
|
| 235 |
-
imageReader1Display.SetScaleArray = ['POINTS', 'ImageFile']
|
| 236 |
-
imageReader1Display.ScaleTransferFunction = 'Piecewise Function'
|
| 237 |
-
imageReader1Display.OpacityArray = ['POINTS', 'ImageFile']
|
| 238 |
-
imageReader1Display.OpacityTransferFunction = 'Piecewise Function'
|
| 239 |
-
imageReader1Display.DataAxesGrid = 'Grid Axes Representation'
|
| 240 |
-
imageReader1Display.PolarAxes = 'Polar Axes Representation'
|
| 241 |
-
imageReader1Display.ScalarOpacityUnitDistance = 1.7320508075688774
|
| 242 |
-
imageReader1Display.OpacityArrayName = ['POINTS', 'ImageFile']
|
| 243 |
-
imageReader1Display.ColorArray2Name = ['POINTS', 'ImageFile']
|
| 244 |
-
imageReader1Display.IsosurfaceValues = [0.036316871643066406]
|
| 245 |
-
imageReader1Display.SliceFunction = 'Plane'
|
| 246 |
-
imageReader1Display.Slice = 31
|
| 247 |
-
imageReader1Display.SelectInputVectors = ['POINTS', 'ImageFile']
|
| 248 |
-
imageReader1Display.WriteLog = ''
|
| 249 |
-
|
| 250 |
-
# init the 'Piecewise Function' selected for 'ScaleTransferFunction'
|
| 251 |
-
imageReader1Display.ScaleTransferFunction.Points = [-0.3535566031932831, 0.0, 0.5, 0.0, 0.4261903464794159, 1.0, 0.5, 0.0]
|
| 252 |
-
|
| 253 |
-
# init the 'Piecewise Function' selected for 'OpacityTransferFunction'
|
| 254 |
-
imageReader1Display.OpacityTransferFunction.Points = [-0.3535566031932831, 0.0, 0.5, 0.0, 0.4261903464794159, 1.0, 0.5, 0.0]
|
| 255 |
-
|
| 256 |
-
# init the 'Plane' selected for 'SliceFunction'
|
| 257 |
-
imageReader1Display.SliceFunction.Origin = [31.5, 31.5, 31.5]
|
| 258 |
-
|
| 259 |
-
# ----------------------------------------------------------------
|
| 260 |
-
# setup animation scene, tracks and keyframes
|
| 261 |
-
# note: the Get..() functions create a new object, if needed
|
| 262 |
-
# ----------------------------------------------------------------
|
| 263 |
-
|
| 264 |
-
# get the time-keeper
|
| 265 |
-
timeKeeper1 = GetTimeKeeper()
|
| 266 |
-
|
| 267 |
-
# initialize the timekeeper
|
| 268 |
-
|
| 269 |
-
# get time animation track
|
| 270 |
-
timeAnimationCue1 = GetTimeTrack()
|
| 271 |
-
|
| 272 |
-
# initialize the animation track
|
| 273 |
-
|
| 274 |
-
# get animation scene
|
| 275 |
-
animationScene1 = GetAnimationScene()
|
| 276 |
-
|
| 277 |
-
# initialize the animation scene
|
| 278 |
-
animationScene1.ViewModules = renderView1
|
| 279 |
-
animationScene1.Cues = timeAnimationCue1
|
| 280 |
-
animationScene1.AnimationTime = 0.0
|
| 281 |
-
|
| 282 |
-
# initialize the animation scene
|
| 283 |
-
|
| 284 |
-
# ----------------------------------------------------------------
|
| 285 |
-
# restore active source
|
| 286 |
-
SetActiveSource(None)
|
| 287 |
-
# ----------------------------------------------------------------
|
| 288 |
-
|
| 289 |
-
# ============= Render and Save =============
|
| 290 |
-
Render()
|
| 291 |
-
|
| 292 |
-
OUTPUT_IMAGE = '/home/dullpigeon/Desktop/SciVisAgentTask/twoswirls/twoswirls_streamsurface.png'
|
| 293 |
-
OUTPUT_STATE = '/home/dullpigeon/Desktop/SciVisAgentTask/twoswirls/twoswirls_streamsurface.pvsm'
|
| 294 |
-
|
| 295 |
-
# Find the render view
|
| 296 |
-
renderView = GetActiveView()
|
| 297 |
-
if renderView is None:
|
| 298 |
-
views = GetViews()
|
| 299 |
-
if views:
|
| 300 |
-
renderView = views[0]
|
| 301 |
-
|
| 302 |
-
SaveScreenshot(OUTPUT_IMAGE, renderView, ImageResolution=renderView.ViewSize)
|
| 303 |
-
print(f"Screenshot saved to: {OUTPUT_IMAGE}")
|
| 304 |
-
|
| 305 |
-
SaveState(OUTPUT_STATE)
|
| 306 |
-
print(f"State saved to: {OUTPUT_STATE}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main/twoswirls/task_description.txt
CHANGED
|
@@ -6,11 +6,10 @@ Data Extent: 64x64x64
|
|
| 6 |
Number of Scalar Components: 3
|
| 7 |
Data loading is very important, make sure you correctly load the dataset according to their features.
|
| 8 |
|
| 9 |
-
Create four stream
|
| 10 |
-
- Stream
|
| 11 |
-
- Stream
|
| 12 |
-
|
| 13 |
-
- Stream Surface 4: Line seed from [44, 32, 10] to [44, 32, 54]. Ribbon with opacity 0.35.
|
| 14 |
|
| 15 |
Show the dataset bounding box as an outline (black, opacity 0.3).
|
| 16 |
|
|
|
|
| 6 |
Number of Scalar Components: 3
|
| 7 |
Data loading is very important, make sure you correctly load the dataset according to their features.
|
| 8 |
|
| 9 |
+
Create four stream ribbons using "Stream Tracer" filters with "Line" seed type (resolution 25 points each), and apply a "Ribbon" filter (width 2.5) to each:
|
| 10 |
+
- Stream Ribbon 1: Line seed from [16, 10, 32] to [16, 54, 32]. Ribbon colored solid green (RGB: 0.2, 0.7, 0.3) with opacity 0.35.
|
| 11 |
+
- Stream Ribbon 2: Line seed from [48, 10, 32] to [48, 54, 32]. Ribbon colored solid blue (RGB: 0.2, 0.4, 0.85) with opacity 0.35.
|
| 12 |
+
|
|
|
|
| 13 |
|
| 14 |
Show the dataset bounding box as an outline (black, opacity 0.3).
|
| 15 |
|
main/twoswirls/visualization_goals.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
vision:
|
| 2 |
1. Swirl Separation: Are there two visually distinct swirl structures (one on the left and one on the right), matching the spatial arrangement in the ground truth?
|
| 3 |
-
2. Stream
|
| 4 |
-
3. Color and Transparency: Are the stream
|
| 5 |
|
|
|
|
| 1 |
vision:
|
| 2 |
1. Swirl Separation: Are there two visually distinct swirl structures (one on the left and one on the right), matching the spatial arrangement in the ground truth?
|
| 3 |
+
2. Stream Ribbon Shape: Do the ribbon surfaces show wrapped, swirling sheet-like structures similar to the ground truth?
|
| 4 |
+
3. Color and Transparency: Are the stream ribbons rendered with distinct colors (green and blue) and semi-transparency, similar to the ground truth?
|
| 5 |
|