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

Fix bugs in aflr_aim and oneway_aero_driver #353

Merged
merged 2 commits into from
Nov 1, 2024
Merged
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
24 changes: 12 additions & 12 deletions funtofem/driver/oneway_aero_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,18 +180,6 @@ def __init__(
"The mesh morphing does not require a remote driver! Make this driver regularly!"
)

if not self.is_remote:
if self.model.flow is not None:
if not self.is_paired and not self.model.flow.mesh_morph:
raise AssertionError(
"The nominal version of the driver only works for Fun3d mesh morphing not remeshing."
)

if self.change_shape and self.root_proc:
print(
f"Warning!! You are trying to remesh without using remote system calls of FUN3D, this will likely cause a FUN3D bug."
)

# check for unsteady problems
self._unsteady = any([not scenario.steady for scenario in model.scenarios])

Expand All @@ -210,6 +198,18 @@ def __init__(
self.flow_aim = model.flow.fun3d_aim
# TBD on new types

if not self.is_remote:
if self.model.flow is not None:
if not self.is_paired and not self.model.flow.mesh_morph:
raise AssertionError(
"The nominal version of the driver only works for Fun3d mesh morphing not remeshing."
)

if self.change_shape and self.root_proc:
print(
f"Warning!! You are trying to remesh without using remote system calls of FUN3D, this will likely cause a FUN3D bug."
)

self.transfer_settings = (
transfer_settings if transfer_settings is not None else TransferSettings()
)
Expand Down
4 changes: 2 additions & 2 deletions funtofem/interface/caps2fun/aflr_aim.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def set_boundary_layer(
self.aim.input.BL_Initial_Spacing = initial_spacing
self.aim.input.BL_Thickness = thickness
self.aim.input.BL_Max_Layers = max_layers
if use_quads and (thickness > 0.0):
self.aim.input.Mesh_Gen_Input_String = "-blc3"
if use_quads and (thickness > 0.0):
self.aim.input.Mesh_Gen_Input_String = "-blc3"
return self

def save_dict_options(self, dictOptions):
Expand Down
Loading