Skip to content

Commit f8bab62

Browse files
authored
Update drivers to import FUN3D v14 interface. (#351)
1 parent efbc996 commit f8bab62

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

funtofem/driver/funtofem_shape_driver.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class methods FuntofemShapeDriver.remesh and FuntofemShapeDriver.analysis which
3030
- Construct the FUNtoFEMmodel
3131
- Construct the bodies and scenarios
3232
- Register aerodynamic DVs to the scenarios/bodies (no shape variables added and no AIMs here)
33-
- Construct the Fun3dInterface
33+
- Construct the Fun3d14Interface
3434
- Construct the solvers (SolverManager), and set solvers.flow = my_fun3d_interface
3535
- Construct the a fun3d oneway driver with class method FuntofemShapeDriver.analysis
3636
- Run solve_forward() and solve_adjoint() on the FuntofemShapeDriver
@@ -49,7 +49,7 @@ class methods FuntofemShapeDriver.remesh and FuntofemShapeDriver.analysis which
4949
fun3d_loader = importlib.util.find_spec("fun3d")
5050
tacs_loader = importlib.util.find_spec("tacs")
5151
if fun3d_loader is not None: # check whether we can import FUN3D
52-
from funtofem.interface import Fun3dInterface, Fun3dModel
52+
from funtofem.interface import Fun3d14Interface, Fun3dModel
5353
if tacs_loader is not None:
5454
from funtofem.interface import (
5555
TacsSteadyInterface,
@@ -211,7 +211,7 @@ def __init__(
211211
self._flow_solver_type = None
212212
if model.flow is None:
213213
if fun3d_loader is not None:
214-
if isinstance(solvers.flow, Fun3dInterface):
214+
if isinstance(solvers.flow, Fun3d14Interface):
215215
self._flow_solver_type = "fun3d"
216216
# TBD on new types
217217
else: # check with shape change

funtofem/driver/oneway_aero_driver.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class methods OnewayAeroDriver.remote and OnewayAeroDriver.analysis which build
5454
- Construct the FUNtoFEMmodel
5555
- Construct the bodies and scenarios
5656
- Register aerodynamic DVs to the scenarios/bodies (no shape variables added and no AIMs here)
57-
- Construct the Fun3dInterface
57+
- Construct the Fun3d14Interface
5858
- Construct the solvers (SolverManager), and set solvers.flow = my_fun3d_interface
5959
- Construct the a fun3d oneway driver with class method OnewayAeroDriver.analysis
6060
- Run solve_forward() and solve_adjoint() on the Fun3dOnewayAnalyzer
@@ -75,7 +75,7 @@ class methods OnewayAeroDriver.remote and OnewayAeroDriver.analysis which build
7575
# 1) FUN3D
7676
fun3d_loader = importlib.util.find_spec("fun3d")
7777
if fun3d_loader is not None: # check whether we can import FUN3D
78-
from funtofem.interface import Fun3dInterface, Fun3dModel
78+
from funtofem.interface import Fun3d14Interface, Fun3dModel
7979

8080
# 2) TBD
8181
# -----------------------------------------------------
@@ -200,7 +200,7 @@ def __init__(
200200
self._flow_solver_type = None
201201
if model.flow is None:
202202
if fun3d_loader is not None:
203-
if isinstance(solvers.flow, Fun3dInterface):
203+
if isinstance(solvers.flow, Fun3d14Interface):
204204
self._flow_solver_type = "fun3d"
205205
# TBD on new types
206206
else: # check with shape change

0 commit comments

Comments
 (0)