Fri 16 May 23:06:54 CEST 2025
This commit is contained in:
parent
7f595a4369
commit
fc2237aed0
|
@ -1,3 +1,9 @@
|
||||||
|
#
|
||||||
|
# Create the simulation model: Scenario
|
||||||
|
#
|
||||||
|
# scenario.I is the material label matrix
|
||||||
|
# scenario.Iabs is the material label matrix with boundaries
|
||||||
|
#
|
||||||
__author__ = 'Miguel Molero'
|
__author__ = 'Miguel Molero'
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,7 +70,7 @@ class Scenario:
|
||||||
self.Width = int(self.N/float(self.Pixel_mm))
|
self.Width = int(self.N/float(self.Pixel_mm))
|
||||||
self.Height = int(self.N/float(self.Pixel_mm))
|
self.Height = int(self.N/float(self.Pixel_mm))
|
||||||
self.resetBoundary()
|
self.resetBoundary()
|
||||||
|
Label = 255
|
||||||
for boundary in boundaries:
|
for boundary in boundaries:
|
||||||
if boundary.BC == BC.AirLayer:
|
if boundary.BC == BC.AirLayer:
|
||||||
size = 1
|
size = 1
|
||||||
|
@ -131,6 +137,7 @@ class Scenario:
|
||||||
|
|
||||||
if obj.Name == "ellipse":
|
if obj.Name == "ellipse":
|
||||||
print("Adding ellipse to Scenario.")
|
print("Adding ellipse to Scenario.")
|
||||||
|
print(obj)
|
||||||
a = obj.a
|
a = obj.a
|
||||||
b = obj.b
|
b = obj.b
|
||||||
theta = obj.theta
|
theta = obj.theta
|
||||||
|
|
Loading…
Reference in New Issue
Block a user