25 lines
532 B
Python
25 lines
532 B
Python
#!/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)
|
|
|
|
|