Skip to content

Commit b39be6d

Browse files
committed
[WIP] Adding grabbing the scalar field
1 parent 887e10c commit b39be6d

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

test/test_private/test_terranigma/test_2025_2.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_2025_2():
9393
gpv.plot_3d(
9494
model=geo_model,
9595
ve=1,
96-
image=False,
96+
image=True,
9797
kwargs_pyvista_bounds={
9898
'show_xlabels': False,
9999
'show_ylabels': False,
@@ -119,18 +119,32 @@ def test_2025_2():
119119
backend=gp.data.AvailableBackends.numpy
120120
),
121121
)
122-
122+
123123
gpv.plot_3d(
124124
model=geo_model,
125125
ve=proper_rescale,
126126
show_lith=True,
127-
image=False,
127+
image=True,
128128
kwargs_pyvista_bounds={
129129
'show_xlabels': False,
130130
'show_ylabels': False,
131131
'show_zlabels': False,
132132
},
133133
)
134+
135+
136+
# region Exporting scalar field
137+
gpv.plot_2d(
138+
geo_model,
139+
show_scalar=True,
140+
series_n=0
141+
)
142+
143+
# * The scalar fields can be found for dense and octree grids:
144+
print(geo_model.solutions.raw_arrays.scalar_field_matrix)
145+
146+
# endregion
147+
134148

135149
if __name__ == "__main__":
136150
test_2025_2()

0 commit comments

Comments
 (0)