diff options
author | blendoit <blendoit@gmail.com> | 2019-10-07 21:14:10 -0700 |
---|---|---|
committer | blendoit <blendoit@gmail.com> | 2019-10-07 21:14:10 -0700 |
commit | 1e8f2782753d70da35c2122f6d4441f94ee94ed6 (patch) | |
tree | eac0cf710854250b4a4b5d129908eb18c774032a /creator | |
parent | 76f3f92a300121f30998d60bd12b10f8c6fd0e2a (diff) |
Subcomponent tree and Evaluator analysis
Made very good progress on component tree representation,
and Evaluator analysis method.
Diffstat (limited to 'creator')
-rw-r--r-- | creator/base.py | 5 | ||||
-rw-r--r-- | creator/log_base.txt | 0 | ||||
-rw-r--r-- | creator/wing.py | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/creator/base.py b/creator/base.py index 33ea680..4a794b7 100644 --- a/creator/base.py +++ b/creator/base.py @@ -5,7 +5,7 @@ import sys import os.path import logging -logging.basicConfig(filename='log.txt', +logging.basicConfig(filename='log_base.txt', level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') @@ -34,6 +34,9 @@ class Component: self.material = None self.mass = float() + def __str__(self): + return self.name + def info_print(self, round): """Print all the component's coordinates to the terminal.""" name = f' CREATOR DATA FOR {str(self).upper()} ' diff --git a/creator/log_base.txt b/creator/log_base.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/creator/log_base.txt diff --git a/creator/wing.py b/creator/wing.py index b21a68c..7bf0b23 100644 --- a/creator/wing.py +++ b/creator/wing.py @@ -52,9 +52,6 @@ class Airfoil(base.Component): self.spars = [] self.stringers = [] - def __str__(self): - return self.name - def add_naca(self, naca_num=2412): """Generate surface geometry for a NACA airfoil. |