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

Some adjustments to the skin friction drag solvers. #127

Merged
merged 5 commits into from
Feb 5, 2024
Merged
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
5 changes: 3 additions & 2 deletions aviary/subsystems/aerodynamics/flops_based/skin_friction.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def __init__(self, **kwargs):
self.TAW = 1.0
self.sea_level_pressure = 14.6959 * 144 # psi -> psf

self.nonlinear_solver = om.NewtonSolver(solve_subsystems=False)
self.nonlinear_solver = om.NewtonSolver(solve_subsystems=False,
atol=1e-12, rtol=1e-12)
self.linear_solver = om.DirectSolver()
self.nonlinear_solver.options['iprint'] = -1
self.linear_solver.options['iprint'] = -1
Expand Down Expand Up @@ -61,7 +62,7 @@ def setup(self):

self.add_output('cf_iter', np.ones((nn, nc)), units='unitless')
self.add_output('skin_friction_coeff', np.ones((nn, nc)), units='unitless')
self.add_output('Re', np.ones((nn, nc)), units='unitless')
self.add_output('Re', np.ones((nn, nc)), units='unitless', res_ref=1e6)
self.add_output('wall_temp', np.ones((nn, nc)), units='degR')

def setup_partials(self):
Expand Down
Loading