Skip to content

Commit cc6631a

Browse files
committed
minor stuff
1 parent 8cad31b commit cc6631a

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

iga/use_cases/external_boundary_circle_with_nurbs/plot_surrogate_boundaries.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@
9999
# plot gp, arrows, etc...
100100

101101

102-
103-
104102
# === ACTIVE GAUSS POINTS: FROM ELEMENT CENTERS ===
105103
mp = model["IgaModelPart.StructuralAnalysisDomain"]
106104
active_gauss_points = []

iga/use_cases/external_boundary_circle_with_nurbs/run_and_post.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ def InitializeSolutionStep(self):
1818

1919
# Define the analytical solution
2020
def analytical_temperature(x, y, t):
21-
# return x**2*y
2221
return -np.cos(x)*np.sinh(y)
23-
# return x**3+y**3
24-
# return x**2+y**2
25-
# return x+y
2622

2723
# Main simulation function
2824
if __name__ == "__main__":
@@ -61,25 +57,6 @@ def analytical_temperature(x, y, t):
6157
curr_temperature += N[0, i] * node.GetSolutionStepValue(KratosMultiphysics.DISPLACEMENT_X, 0)
6258
computed_temperature.append(curr_temperature)
6359

64-
65-
# # Loop over elements to gather computed solution
66-
# for cond in mp.Conditions:
67-
# geom = cond.GetGeometry()
68-
# N = geom.ShapeFunctionsValues()
69-
# center = geom.Center()
70-
# weight = elem.GetValue(KratosMultiphysics.INTEGRATION_WEIGHT)
71-
# weights.append(weight)
72-
# # Extract Gauss point (center) coordinates
73-
# x_coord.append(center.X)
74-
# y_coord.append(center.Y)
75-
76-
# # Initialize solution values at the center
77-
# curr_temperature = 0
78-
# # Compute nodal contributions using shape functions
79-
# for i, node in enumerate(geom):
80-
# curr_temperature += N[0, i] * node.GetSolutionStepValue(KratosMultiphysics.TEMPERATURE, 0)
81-
# computed_temperature.append(curr_temperature)
82-
8360
# Get the current time after simulation run
8461
current_time = simulation._GetSolver().GetComputingModelPart().ProcessInfo[KratosMultiphysics.TIME]
8562
print("Current time after simulation:", current_time)

0 commit comments

Comments
 (0)