Skip to content
Snippets Groups Projects

Correction of compilation warnings

Merged Boman Romain requested to merge adrien into master
9 files
+ 359
243
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 4
4
@@ -36,7 +36,7 @@ def main():
msh = gmsh.MeshLoader("../models/n0012.geo",__file__).execute(**pars)
pbl = f.Problem(msh, alpha0, M_inf, c_ref)
# create mesh deformation handler
mshDef = tbox.MshDeformation(msh, "internalField", ["upstream", "sideUp", "sideLw", "downstream", "airfoil"], ["wakeUp", "wakeLw"])
mshDef = tbox.MshDeformation(msh, "internalField", ["upstream", "sideUp", "sideLw", "downstream"], ["airfoil"], ["wakeUp", "wakeLw"])
# mesh the reference airfoil
pars = {'xLength' : 5, 'yLength' : 5, 'sEleFar' : 0.5, 'sEleAirfTE' : 0.01, 'sEleAirfLE' : 0.01, 'angle' : alfa}
msh_ref = gmsh.MeshLoader("../models/n0012rot.geo",__file__).execute(**pars)
@@ -85,7 +85,8 @@ def main():
# deform the mesh (dummy rotation + translation)
print ccolors.ANSI_BLUE + 'PyDeforming...' + ccolors.ANSI_RESET
#mshDef.savePos()
u.initMeshDeformer(mshDef)
mshDef.savePos()
rMat = np.matrix([[np.cos(alfa), np.sin(alfa)], [-np.sin(alfa), np.cos(alfa)]])
i = 0
size = airfoil.tag.elems.size()
@@ -102,8 +103,7 @@ def main():
i += 1
# smooth the mesh
tms["deform"].start()
mshDef.LaplaceSmoothing()
#mshDef.DeformElastic()
mshDef.deform()
tms["deform"].stop()
msh.save("n0012_def.msh")
Loading