Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/test_merge' into test_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sduess committed Sep 19, 2023
2 parents a18a5e7 + d8d7780 commit 6ae2156
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions sharpy/aero/utils/uvlmlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ def vlm_solver(ts_info, options):
ts_info.remove_ctypes_pointers()

def vlm_solver_nonlifting_body(ts_info, options):
run_VLM_nonlifting = UvlmLib.run_VLM_nonlifting_body
run_linear_source_panel_method = UvlmLib.run_linear_source_panel_method_body

vmopts = VMopts()
vmopts.set_options(options, n_surfaces_nonlifting = ts_info.n_surf)

flightconditions = FlightConditions(options['rho'], ts_info.u_ext[0][:, 0, 0])

ts_info.generate_ctypes_pointers()
run_VLM_nonlifting(ct.byref(vmopts),
run_linear_source_panel_method(ct.byref(vmopts),
ct.byref(flightconditions),
ts_info.ct_p_dimensions,
ts_info.ct_p_zeta,
Expand All @@ -261,7 +261,7 @@ def vlm_solver_nonlifting_body(ts_info, options):
ts_info.remove_ctypes_pointers()

def vlm_solver_lifting_and_nonlifting_bodies(ts_info_lifting, ts_info_nonlifting, options):
run_VLM_lifting_and_nonlifting = UvlmLib.run_VLM_lifting_and_nonlifting_bodies
run_VLM_coupled_with_LSPM = UvlmLib.run_VLM_coupled_with_LSPM_bodies

vmopts = VMopts()
vmopts.set_options(options, n_surfaces = ts_info_lifting.n_surf, n_surfaces_nonlifting = ts_info_nonlifting.n_surf)
Expand All @@ -272,7 +272,7 @@ def vlm_solver_lifting_and_nonlifting_bodies(ts_info_lifting, ts_info_nonlifting
p_centre_rot = options['centre_rot_g'].ctypes.data_as(ct.POINTER(ct.c_double))
ts_info_lifting.generate_ctypes_pointers()
ts_info_nonlifting.generate_ctypes_pointers()
run_VLM_lifting_and_nonlifting(ct.byref(vmopts),
run_VLM_coupled_with_LSPM(ct.byref(vmopts),
ct.byref(flightconditions),
ts_info_lifting.ct_p_dimensions,
ts_info_lifting.ct_p_dimensions_star,
Expand Down Expand Up @@ -354,7 +354,7 @@ def uvlm_solver_lifting_and_nonlifting(i_iter, ts_info, ts_info_nonlifting, stru
convect_wake = convect_wake,
n_span_panels_wo_u_ind=4)
uvmopts.only_lifting = ct.c_bool(False)
run_UVLM = UvlmLib.run_UVLM_lifting_and_nonlifting
run_UVLM = UvlmLib.run_UVLM_coupled_with_LSPM

flightconditions = FlightConditions(options['rho'], ts_info.u_ext[0][:, 0, 0])

Expand Down

0 comments on commit 6ae2156

Please sign in to comment.