Skip to content

Commit

Permalink
Merge branch 'smdogroup:master' into radiation
Browse files Browse the repository at this point in the history
  • Loading branch information
bburke38 authored Oct 24, 2024
2 parents b6d7731 + 7f64922 commit 1aeae4c
Show file tree
Hide file tree
Showing 7 changed files with 444 additions and 138 deletions.
1 change: 1 addition & 0 deletions funtofem/driver/oneway_struct_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ def _transfer_fixed_aero_loads(self):
# the mesh for the new structural shape
body.transfer_loads(scenario)
body.transfer_heat_flux(scenario)

return

def solve_forward(self):
Expand Down
10 changes: 5 additions & 5 deletions funtofem/interface/fun3d_14_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def __init__(
coord_test_override=False,
debug=False,
external_mesh_morph=False,
forward_min_tolerance=1e-9,
forward_stop_tolerance=1e-6,
adjoint_min_tolerance=1e-8,
adjoint_stop_tolerance=1e-6,
forward_min_tolerance=1e-6,
forward_stop_tolerance=1e-9,
adjoint_min_tolerance=1e-6,
adjoint_stop_tolerance=1e-8,
):
"""
The instantiation of the FUN3D interface class will populate the model with the aerodynamic surface
Expand Down Expand Up @@ -1182,7 +1182,7 @@ def post_adjoint(self, scenario, bodies):
# throw a runtime error if adjoint didn't converge sufficiently
if abs(np.linalg.norm(resid).real) > self.adjoint_min_tolerance:
raise RuntimeError(
f"Funtofem/Fun3dInterface: fun3d forward adjoint residual = {resid} > {self.adjoint_tolerance:.2e}, is too large..."
f"Funtofem/Fun3dInterface: fun3d forward adjoint residual = {resid} > {self.adjoint_min_tolerance:.2e}, is too large..."
)
return

Expand Down
Loading

0 comments on commit 1aeae4c

Please sign in to comment.