Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raising error when the surface is not completely embedded inside FFDS. #181

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pygeo/mphys/mphys_dvgeo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import openmdao.api as om
from .. import DVGeometry, DVConstraints
from ..constraints.baseConstraint import LinearConstraint

try:
from .. import DVGeometryVSP
Expand Down
1 change: 0 additions & 1 deletion pygeo/parameterization/DVGeoSketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pygeo/parameterization/DVGeoVSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from .DVGeoSketch import DVGeoSketch
from pyspline.utils import searchQuads
from .designVars import vspDV
import copy

# openvsp python interface
try:
Expand Down
3 changes: 3 additions & 0 deletions pygeo/pyBlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down