diff --git a/pygeo/mphys/mphys_dvgeo.py b/pygeo/mphys/mphys_dvgeo.py index bffe8226..ac886e72 100644 --- a/pygeo/mphys/mphys_dvgeo.py +++ b/pygeo/mphys/mphys_dvgeo.py @@ -1,6 +1,5 @@ import openmdao.api as om from .. import DVGeometry, DVConstraints -from ..constraints.baseConstraint import LinearConstraint try: from .. import DVGeometryVSP diff --git a/pygeo/parameterization/DVGeoSketch.py b/pygeo/parameterization/DVGeoSketch.py index ec2dbb4b..a77ec3ac 100644 --- a/pygeo/parameterization/DVGeoSketch.py +++ b/pygeo/parameterization/DVGeoSketch.py @@ -12,7 +12,6 @@ from abc import abstractmethod from collections import OrderedDict import numpy as np -import copy from mpi4py import MPI from .BaseDVGeo import BaseDVGeometry from .designVars import geoDVComposite diff --git a/pygeo/parameterization/DVGeoVSP.py b/pygeo/parameterization/DVGeoVSP.py index 6d1f3688..b4429bfb 100644 --- a/pygeo/parameterization/DVGeoVSP.py +++ b/pygeo/parameterization/DVGeoVSP.py @@ -9,7 +9,6 @@ from .DVGeoSketch import DVGeoSketch from pyspline.utils import searchQuads from .designVars import vspDV -import copy # openvsp python interface try: diff --git a/pygeo/pyBlock.py b/pygeo/pyBlock.py index f771bc16..a4bf4806 100644 --- a/pygeo/pyBlock.py +++ b/pygeo/pyBlock.py @@ -929,6 +929,9 @@ def projectPoints(self, x0, checkErrors, embTol, eps, nIter): badPts[i][1][2], ) ) + raise Error( + "The FFD box does not completely fit the surface mesh. Please regenerate the FFD points such that the whole surface mesh is embedded inside FFDs." + ) return volID, u, v, w, D