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

(format) Renamed OpenMDAO api

parent 11878b92
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
......@@ -23,7 +23,7 @@ import numpy as np
from fwk.coloring import ccolors
import openmdao.api as om
import blast
import blast.utils as viscUtils
import blast.utils as vutils
from pygeo import DVGeometryCST
from scipy.optimize import least_squares
import fwk
......@@ -185,7 +185,7 @@ class BlasterSolver(om.ExplicitComponent):
def __write(self, sfx='0'):
sfx = '_'+sfx
viscUtils.getSolution(self.isol.sec, write=True, toW=['x', 'y', 'cf'], sfx=sfx) # Boundary layer
vutils.getSolution(self.isol.sec, write=True, toW=['x', 'y', 'cf'], sfx=sfx) # Boundary layer
self.isol.writeCp(sfx=sfx) # Cp
self.isol.iobj['wrt'].save(self.isol.iobj['pbl'].msh.name + sfx) # Mesh
self.isol.save(sfx) # Solution
......@@ -473,12 +473,6 @@ class BlasterFFDGeometry(om.ExplicitComponent):
# Fit circle to leading edge points
center, radius = self.fit_circle(le_points_combined[:, 0], le_points_combined[:, 1])
# print('Upper shape', inputs['upper_shape'])
# print('Lower shape', inputs['lower_shape'])
# print('Max thickness', round(maxThickness, 4))
# print('Center:', center)
# print('Radius:', radius)
# Go back to normal mesh
x_aero_out = np.zeros(len(inputs['x_aero0']))
for i, val in enumerate(self.options['nodeRows']):
......
import blast.utils as viscUtils
import blast.utils as vutils
import numpy as np
from fwk.wutils import parseargs
......@@ -6,8 +6,8 @@ import fwk
from fwk.testing import *
from fwk.coloring import ccolors
from blast.api.mdaAPI import BlasterSolver
from blast.api.mdaAPI import BlasterModeUpdater
from blast.api.mda_api import BlasterSolver
from blast.api.mda_api import BlasterModeUpdater
import openmdao.api as om
......
import blast.utils as viscUtils
import blast.utils as vutils
import numpy as np
from fwk.wutils import parseargs
......@@ -6,8 +6,8 @@ import fwk
from fwk.testing import *
from fwk.coloring import ccolors
from blast.api.mdaAPI import BlasterSolver
from blast.api.mdaAPI import BlasterModeUpdater
from blast.api.mda_api import BlasterSolver
from blast.api.mda_api import BlasterModeUpdater
import openmdao.api as om
......@@ -34,7 +34,6 @@ def cfgInviscid(nthrds, verb):
'Wake' : 'wake', # LIST of names of physical group containing the wake
'WakeTip' : 'wakeTip', # LIST of names of physical group containing the edge of the wake
'Te' : 'te', # LIST of names of physical group containing the trailing edge
'dbc' : False,
'Upstream' : 'upstream',
# Freestream
'M_inf' : 0.1, # freestream Mach number
......
import blast.utils as viscUtils
import blast.utils as vutils
import numpy as np
from fwk.wutils import parseargs
......@@ -6,8 +6,8 @@ import fwk
from fwk.testing import *
from fwk.coloring import ccolors
from blast.api.mdaAPI import BlasterSolver
from blast.api.mdaAPI import BlasterModeUpdater
from blast.api.mda_api import BlasterSolver
from blast.api.mda_api import BlasterModeUpdater
import openmdao.api as om
......@@ -34,7 +34,6 @@ def cfgInviscid(nthrds, verb):
'Wake' : 'wake', # LIST of names of physical group containing the wake
'WakeTip' : 'wakeTip', # LIST of names of physical group containing the edge of the wake
'Te' : 'te', # LIST of names of physical group containing the trailing edge
'dbc' : False,
'Upstream' : 'upstream',
# Freestream
'M_inf' : 0.78, # freestream Mach number
......
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