Skip to content
Snippets Groups Projects
Verified Commit f9cd6574 authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(fix) Moved pygeo import in mda api.

parent 86f5fd63
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
...@@ -24,7 +24,6 @@ from fwk.coloring import ccolors ...@@ -24,7 +24,6 @@ from fwk.coloring import ccolors
import openmdao.api as om import openmdao.api as om
import blast import blast
import blast.blUtils as vutils import blast.blUtils as vutils
from pygeo import DVGeometryCST
from scipy.optimize import least_squares from scipy.optimize import least_squares
import fwk import fwk
...@@ -79,7 +78,7 @@ class BlasterSolver(om.ExplicitComponent): ...@@ -79,7 +78,7 @@ class BlasterSolver(om.ExplicitComponent):
self.coupler.run(write=False) self.coupler.run(write=False)
self.__write(sfx='baseline') self.__write(sfx='baseline')
self.coupler.reset() self.coupler.reset()
print('object created') print('BLASTER object created')
def setup(self): def setup(self):
self.add_input('aoa', val=0.0, desc='Flow angle of attack') self.add_input('aoa', val=0.0, desc='Flow angle of attack')
...@@ -205,6 +204,7 @@ class BlasterSolver(om.ExplicitComponent): ...@@ -205,6 +204,7 @@ class BlasterSolver(om.ExplicitComponent):
def getBoundaryFFDGeometry(self): def getBoundaryFFDGeometry(self):
"""Airfoil FFD geometry """Airfoil FFD geometry
""" """
from pygeo import DVGeometryCST
with open('surface_DVGeo.dat', 'w') as f: with open('surface_DVGeo.dat', 'w') as f:
for i, node_coord in enumerate(self.isol.vBnd[0][0].nodesCoord): for i, node_coord in enumerate(self.isol.vBnd[0][0].nodesCoord):
f.write(f"{node_coord[0]} {node_coord[1]}\n") f.write(f"{node_coord[0]} {node_coord[1]}\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment