Fri 29 Nov 2024 04:30:50 PM CET
This commit is contained in:
parent
6f8e98c9e0
commit
734c378f49
24
src/SimNDT/core/boundary.py
Normal file
24
src/SimNDT/core/boundary.py
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# encoding: utf-8
|
||||||
|
"""
|
||||||
|
boundary.py
|
||||||
|
|
||||||
|
Created by Miguel Molero on 2013-09-14.
|
||||||
|
Copyright (c) 2013 MMolero. All rights reserved.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from SimNDT.core.constants import *
|
||||||
|
|
||||||
|
class Boundary:
|
||||||
|
def __init__(self, name="Top", BC=BC.AirLayer, size=0):
|
||||||
|
self.Name = name
|
||||||
|
self.BC = BC
|
||||||
|
self.Size = size
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return "Boundary: Name={}, BC={}, Size={}".format(self.Name, self.BC, self.Size)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "Boundary(name='{}', BC='{}', size={})".format(self.Name, self.BC, self.Size)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user