diff options
| author | blendoit <blendoit@gmail.com> | 2019-10-07 02:18:34 -0700 |
|---|---|---|
| committer | blendoit <blendoit@gmail.com> | 2019-10-07 02:18:34 -0700 |
| commit | 445a834e6a5e790a7f37730d6e5d8824b8f598f4 (patch) | |
| tree | abd6b56bc912bfaa74bb74e2c88733eb84c7deae /example_airfoil.py | |
| parent | e05225247b4873fa1825a2adeee23f247c77ff03 (diff) | |
Component tree replaced with subcomponent list
Diffstat (limited to 'example_airfoil.py')
| -rw-r--r-- | example_airfoil.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/example_airfoil.py b/example_airfoil.py index 6c272a2..9626f6f 100644 --- a/example_airfoil.py +++ b/example_airfoil.py @@ -62,9 +62,11 @@ af2.add_naca(3412) spar3 = creator.wing.Spar(af2, 'spar3', 0.23) spar4 = creator.wing.Spar(af2, 'spar4', 0.67) -# eval.update_tree() -# ac2.update_tree() -print(ac2.tree) +for aircraft in eval.aircrafts: + print(aircraft.wing) + for spar in aircraft.wing.spars: + print(spar.material["name"]) + # eval.info_print(2) # # Create stringer instance |