|
85 | 85 | print("\nModel Metadata:")
|
86 | 86 | print(f"Name: {model.meta.name}")
|
87 | 87 | print(f"Creation Date: {model.meta.creation_date}")
|
88 |
| -print(f"Last Modified: {model.meta.last_modification_date}") |
| 88 | +print(f"Last Modified: {model.meta.last_modification_date}") # TODO: This does not update here when running. In 03 you have a current date time setter |
89 | 89 |
|
90 | 90 | print("\nStructural Groups:")
|
91 | 91 | print(model.structural_frame)
|
|
100 | 100 | )
|
101 | 101 |
|
102 | 102 | # Save the computed model
|
| 103 | +# TODO: This is identical to the file saved before computation (no results stored) |
103 | 104 | JsonIO.save_model_to_json(model, computed_json_file)
|
104 | 105 | print(f"\nSaved computed model to: {os.path.abspath(computed_json_file)}")
|
105 | 106 |
|
| 107 | +#%% |
| 108 | + |
106 | 109 | # Plot the results
|
107 | 110 | print("\nGenerating plots...")
|
108 | 111 |
|
| 112 | + |
109 | 113 | # 2D plots
|
110 |
| -gpv.plot_2d(model, direction=['y'], show_results=False) |
111 |
| -gpv.plot_2d(model, direction='y', show_data=True, show_boundaries=True) |
112 |
| -gpv.plot_2d(model, direction='x', show_data=True) |
113 |
| - |
114 |
| -# Plot the blocks accounting for fault blocks |
115 |
| -gpv.plot_2d( |
116 |
| - model=model, |
117 |
| - override_regular_grid=model.solutions.raw_arrays.litho_faults_block, |
118 |
| - show_data=True, kwargs_lithology={'cmap': 'Set1', 'norm': None} |
119 |
| -) |
| 114 | +gpv.plot_2d(model, direction='y', show_results=False) |
| 115 | +# gpv.plot_2d(model, direction='y', show_data=True, show_boundaries=True) |
| 116 | +# gpv.plot_2d(model, direction='x', show_data=True) |
| 117 | +# |
| 118 | +# # Plot the blocks accounting for fault blocks |
| 119 | +# gpv.plot_2d( |
| 120 | +# model=model, |
| 121 | +# override_regular_grid=model.solutions.raw_arrays.litho_faults_block, |
| 122 | +# show_data=True, kwargs_lithology={'cmap': 'Set1', 'norm': None} |
| 123 | +# ) |
120 | 124 |
|
121 | 125 | # 3D plot
|
122 | 126 | gpv.plot_3d(model)
|
|
0 commit comments